Re: request to add trace off and trace on with events

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frederic Weisbecker
Date: Monday, April 19, 2010 - 2:29 pm

On Mon, Apr 19, 2010 at 04:44:06PM -0400, Steven Rostedt wrote:


The problem with having triggers defined in the filter file is that
you couldn't set a normal filter plus a trigger.

That said a filter itself could be a trigger.

if (cond) filter

This is going to break some ABI though.

In fact having one file per trigger type is going to make the
things much easier if you don't want to encumber with syntax parsing,
and just reuse the filtering code as is with very few modification.
This is going to be also easier for the users as they don't have to
remember the syntax or the available triggers.

Say you are in an event directory:

$ ls triggers/

filter
tracing_off
tracing_on
dump_trace

$ echo "(a == 1 && b == 2)" > tracing_off

So in the above example, you just reuse the filtering code,
no need to parse an if or a command.
The filter becomes a command. I've listed it in the triggers
directory but this just to express the fact it can be treated
like whatever trigger command, this is just an implementation
POV. In fact we can just keep it in the event directory.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
request to add trace off and trace on with events, Steven Rostedt, (Mon Apr 19, 1:04 pm)
Re: request to add trace off and trace on with events, Steven Rostedt, (Mon Apr 19, 1:44 pm)
Re: request to add trace off and trace on with events, Steven Rostedt, (Mon Apr 19, 2:10 pm)
Re: request to add trace off and trace on with events, Frederic Weisbecker, (Mon Apr 19, 2:29 pm)
Re: request to add trace off and trace on with events, Steven Rostedt, (Mon Apr 19, 2:37 pm)
Re: request to add trace off and trace on with events, Frederic Weisbecker, (Mon Apr 19, 3:04 pm)
Re: request to add trace off and trace on with events, Steven Rostedt, (Mon Apr 19, 3:13 pm)
Re: request to add trace off and trace on with events, Frederic Weisbecker, (Mon Apr 19, 4:04 pm)
Re: request to add trace off and trace on with events, Steven Rostedt, (Mon Apr 19, 4:59 pm)
Re: request to add trace off and trace on with events, Tom Zanussi, (Mon Apr 19, 10:07 pm)
Re: request to add trace off and trace on with events, Tom Zanussi, (Mon Apr 19, 11:52 pm)