[RFC] [PATCH] Add statement ranges to kernel.statement
Stan Cox
scox@redhat.com
Fri Jun 20 22:26:00 GMT 2008
This adds two types of statement ranges to kernel.statement:
kernel.statement("bio_put@fs/bio.c:*")
kernel.statement("bio_put@fs/bio.c:212-219"
e.g. Given: probe kernel.statement("bio_put@fs/bio.c:212-219") {printf
("%s\n", pp())}
Results:
kernel.statement("bio_put@fs/bio.c:213")
kernel.statement("bio_put@fs/bio.c:212")
kernel.statement("bio_put@fs/bio.c:218")
kernel.statement("bio_put@fs/bio.c:219")
kernel.statement("bio_put@fs/bio.c:213")
kernel.statement("bio_put@fs/bio.c:212")
kernel.statement("bio_put@fs/bio.c:218")
kernel.statement("bio_put@fs/bio.c:219")
This patch converts tapsets.cxx#iterate_over_srcfile_lines into a loop
where every kernel.statement is assumed to have a line range, with :212
assumed to be the range 212-212. The :* case explicitly sets the start
to the beginning of the function and checks when the end of the function
is reached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stap-4904.patch
Type: text/x-patch
Size: 4935 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20080620/54ec66e7/attachment.bin>
More information about the Systemtap
mailing list