From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16605 invoked by alias); 21 Jan 2010 03:21:18 -0000 Received: (qmail 16558 invoked by uid 48); 21 Jan 2010 03:21:07 -0000 Date: Thu, 21 Jan 2010 03:21:00 -0000 Message-ID: <20100121032107.16557.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/msg00210.txt.bz2 ------- 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.