public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* request to add trace off and trace on with events
@ 2010-04-19 20:04 Steven Rostedt
  2010-04-19 20:39 ` Tim Bird
  2010-04-20  5:07 ` Tom Zanussi
  0 siblings, 2 replies; 14+ messages in thread
From: Steven Rostedt @ 2010-04-19 20:04 UTC (permalink / raw)
  To: Tom Zanussi
  Cc: Ingo Molnar, Frederic Weisbecker, Thomas Gleixner, Chase Douglas,
	LKML

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-04-20  6:52 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-19 20:04 request to add trace off and trace on with events Steven Rostedt
2010-04-19 20:39 ` Tim Bird
2010-04-19 20:44   ` Steven Rostedt
2010-04-19 20:56     ` Tim Bird
2010-04-19 21:10       ` Steven Rostedt
2010-04-19 21:32         ` Tim Bird
2010-04-19 21:29     ` Frederic Weisbecker
2010-04-19 21:37       ` Steven Rostedt
2010-04-19 22:04         ` Frederic Weisbecker
2010-04-19 22:13           ` Steven Rostedt
2010-04-19 23:04             ` Frederic Weisbecker
2010-04-19 23:59               ` Steven Rostedt
2010-04-20  6:52                 ` Tom Zanussi
2010-04-20  5:07 ` Tom Zanussi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox