From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13616 invoked by alias); 16 Nov 2007 23:40:42 -0000 Received: (qmail 13587 invoked by uid 48); 16 Nov 2007 23:40:33 -0000 Date: Fri, 16 Nov 2007 23:40:00 -0000 Message-ID: <20071116234033.13586.qmail@sourceware.org> From: "mhiramat at redhat dot com" To: systemtap@sources.redhat.com In-Reply-To: <20070817183537.4935.fche@redhat.com> References: <20070817183537.4935.fche@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/4935] support on-the-fly probe enable/disable syntax 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: 2007-q4/txt/msg00367.txt.bz2 ------- Additional Comments From mhiramat at redhat dot com 2007-11-16 23:40 ------- Created an attachment (id=2095) --> (http://sourceware.org/bugzilla/attachment.cgi?id=2095&action=view) on-the-fly enable/disable probes patch for parser and elabolator I developed a patch for the parser and the elabolator to support this syntax. Currently, this just translates the next script; --- probe ALIAS=PROBEPOINT if (expr1) { stmt1 } probe ALIAS if (expr2) { stmt2 } --- to below; --- probe PROBEPOINT { if (!((expr2)&&(expr1))) next stmt1 stmt2 } --- This patch adds "if (..)" condition to the PROBEPOINT instead of "probe". So, you can write the below script with this patch; --- probe PP1 if (expr1), PP2 if (expr2) {stmt} --- This is translated to below; --- probe PP1 { if (!expr1) next stmt } probe PP2 { if (!expr2) next stmt } --- This is the first step of this feature, since this patch does not include optimization code. Thanks, -- http://sourceware.org/bugzilla/show_bug.cgi?id=4935 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.