Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753793Ab0DSUEI (ORCPT ); Mon, 19 Apr 2010 16:04:08 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.124]:59314 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750939Ab0DSUEG (ORCPT ); Mon, 19 Apr 2010 16:04:06 -0400 X-Authority-Analysis: v=1.1 cv=LStmOzECkPR9xsMk4mw8zTEuC0H5p2ZSOXz5TIvtHNE= c=1 sm=0 a=CClWbPM6pFEA:10 a=7U3hwN5JcxgA:10 a=Q9fys5e9bTEA:10 a=gMqfjgEr1zLu/65IO0LwxA==:17 a=Sck7_hbBIXWJDcgNemwA:9 a=Bej4rFqY4zzNahAgF6Ipi6A7P_AA:4 a=PUjeQqilurYA:10 a=gMqfjgEr1zLu/65IO0LwxA==:117 X-Cloudmark-Score: 0 X-Originating-IP: 74.67.89.75 Subject: request to add trace off and trace on with events From: Steven Rostedt Reply-To: rostedt@goodmis.org To: Tom Zanussi Cc: Ingo Molnar , Frederic Weisbecker , Thomas Gleixner , Chase Douglas , LKML Content-Type: text/plain; charset="ISO-8859-15" Organization: Kihon Technologies Inc. Date: Mon, 19 Apr 2010 16:04:04 -0400 Message-ID: <1271707444.10448.12.camel@gandalf.stny.rr.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1170 Lines: 40 Hi Tom, Could you add a way to do a call to tracing_on() or tracing_off() via the filters. I would like to do something like: echo 'if (pid == 1234) traceoff' > events/sched/sched_wakeup/filter Where, if the sched_wakeup event is hit with pid == 1234 it will turn tracing off. I would also like to do just: echo 'traceoff' > events/sched/sched_wakeup/filter to disable tracing every time the event is hit. Perhaps you can just add a call back where the kernel could register something to be called if a command is used in the filter. register_event_command("traceoff", trace_off_cb); where the trace_off_cb is a function that is called by the event if the traceoff command is hit. This would allow other commands to be added later. Would something like this be doable, I was looking at the code, and it certain looks feasible, but it would take me longer to implement it than it would you :-) Thanks, -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/