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]

[Bug translator/6711] need script syntax for extending blacklist


------- Additional Comments From wenji dot huang at oracle dot com  2010-01-25 07:52 -------
Created an attachment (id=4553)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4553&action=view)
patch v2

According to the top words on the bug page, seems no
intention to replace current static black list, just additional 
script-syntax adding entries on the fly.

Updated patch is to achieve that. Currently it only filters
dwarf_derived_probe,
easy to extend other probe types. Also Api function defined on tapset is
convenient.

$ ./stap -l 'kernel.function("sys_write*")'
kernel.function("sys_write@fs/read_write.c:390")
kernel.function("sys_writev@fs/read_write.c:714")

$ cat /tmp/noprobe.stp 
noprobe kernel.function("sys_writev"), kernel.function("no_such")

probe kernel.function("sys_write*") {}

probe process("/home/wjhuang/systemtap/stap").function("main"){}

$ ./stap -wp2 /tmp/noprobe.stp 
# probes
kernel.function("sys_write@fs/read_write.c:390") /* pc=_stext+0xf39f5 */ /* <-
kernel.function("sys_write*") */
process("/home/wjhuang/systemtap/stap").function("main@/home/wjhuang/systemtap/main.cxx:439")
/* pc=.absolute+0x40acd0 */ /* <-
process("/home/wjhuang/systemtap/stap").function("main") */

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #4544 is|0                           |1
           obsolete|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=6711

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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