This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Systemtap with kernel markers?


So in attempt to help out Arjan van de Ven on a recent problem that he
posted on LKML, I patched ext4 with some markers (see attached patch).
The markers are definitely found in the in the kernel:

% nm /boot/vmlinux-2.6.27-rc7 | grep "__mark" | grep "\(ext4\)\|\(jbd2\)"
c0749b50 d __mark_ext4_sync_file.26899
c0749b70 d __mark_ext4_sync_fs.30089
c0749bd0 d __mark_jbd2_checkpoint.21365
c0749b90 d __mark_jbd2_end_commit.22202
c0749bb0 d __mark_jbd2_start_commit.22151

But when I try to use stap (the very latest bleeding edge), it doesn't work:

% stap -vvvvvvvvvv ext4-marker.stp
SystemTap translator/driver (version 0.7.1/0.131 git branch master, commit 06af1f31)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: i686 release: 2.6.27-rc7
Created temporary directory "/tmp/stapGA9lOa"
Searched '/usr/local/share/systemtap/tapset/i686/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 43
Pass 1: parsed user script and 45 library script(s) in 320usr/20sys/340real ms.
'' '' ' '
semantic error: no match while resolving probe point kernel.mark("ext4_sync_file")
semantic error: no match while resolving probe point kernel.mark("ext4_sync_fs")
semantic error: no match while resolving probe point kernel.mark("jbd2_start_commit")
semantic error: no match while resolving probe point kernel.mark("jbd2_exit_commit")
semantic error: no match while resolving probe point kernel.mark("jbd2_checkpoint")
mark_builder releasing cache
semantic error: no probes found
Pass 2: analyzed script: 0 probe(s), 0 function(s), 0 embed(s), 0 global(s) in 10usr/0sys/5real ms.
Pass 2: analysis failed.  Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stapGA9lOa

Any suggestions what I did wrong?

							- Ted


Attachment: add-debugging-markers
Description: Text document

Attachment: ext4-marker.stp
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]