From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10187 invoked by alias); 25 Jan 2010 07:52:27 -0000 Received: (qmail 10153 invoked by uid 48); 25 Jan 2010 07:52:16 -0000 Date: Mon, 25 Jan 2010 07:52:00 -0000 Message-ID: <20100125075216.10152.qmail@sourceware.org> From: "wenji dot huang at oracle dot com" To: systemtap@sources.redhat.com In-Reply-To: <20080630230203.6711.fche@redhat.com> References: <20080630230203.6711.fche@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/6711] need script syntax for extending blacklist X-Bugzilla-Reason: AssignedTo Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2010-q1/txt/msg00250.txt.bz2 ------- 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.