This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/6711] need script syntax for extending blacklist
- From: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 21 Jan 2010 03:21:07 -0000
- Subject: [Bug translator/6711] need script syntax for extending blacklist
- References: <20080630230203.6711.fche@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From wenji dot huang at oracle dot com 2010-01-21 03:21 -------
Created an attachment (id=4544)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4544&action=view)
Updated patch
Provide new keyword "fobid" to define those forbidden probe, also
permit mistake in declaration
Example:
$ cat /tmp/1.stp
global i
forbid kernel.function("sys_w*"), kernel.function("no_such")
probe kernel.function("sys_write") {
println("wrong")
exit()
}
probe kernel.function("sys_read") {
println("read")
i++
if (i==10)
exit()
}
$ sudo ./stap -v /tmp/1.stp
Pass 1: parsed user script and 66 library script(s) using
19380virt/11996res/2064shr kb, in 290usr/90sys/1052real ms.
Pass 2: analyzed script: 2 probe(s), 1 function(s), 0 embed(s), 1 global(s)
using 151584virt/94252res/69620shr kb, in 620usr/370sys/2296real ms.
Pass 3: translated to C into
"/tmp/stapRiEEEE/stap_b9885eca01bebd2a8ff16a3ae4a3e8e1_890.c" using
151584virt/95372res/70740shr kb, in 970usr/90sys/1122real ms.
Pass 4: compiled C into "stap_b9885eca01bebd2a8ff16a3ae4a3e8e1_890.ko" in
6990usr/4990sys/19043real ms.
Pass 5: starting run.
read
read
read
read
read
read
read
read
read
read
Pass 5: run completed in 10usr/70sys/434real ms.
--
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.