lkml.org 
[lkml]   [2013]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [for-next][PATCH 08/12] tracing: Add binary & filter for events
From
Date
On Thu, 2013-06-20 at 10:09 +0200, Arend van Spriel wrote:
> On 06/20/2013 05:35 AM, Steven Rostedt wrote:
> > By allowing a binary '&' operation, this gives the user the ability to
> > test a bit.
> >
> > Note, a binary '|' is not added, as it doesn't make sense as fields must
> > be compared to constants (for now), and ORing a constant will always return
> > true.
> >
> > Link:http://lkml.kernel.org/r/1371057385.9844.261.camel@gandalf.local.home
> >
> > Suggested-by: Arend van Spriel<arend@broadcom.com>
>
> Actually, my attempt was triggered by the trace-cmd manual page:
>
> "-f filter
> Specify a filter for the previous event. This must come after a -e. This
> will filter what events get recorded based on the content of the event.
> Filtering is passed to the kernel directly so what filtering is allowed
> may depend on what version of the kernel you have. Basically, it will
> let you use C notation to check if an event should be processed or not.
>
> ==, >=, <=, >, <, &, |, && and ||
>
> The above are usually safe to use to compare fields."

Ah thanks. That needs to be updated. Not sure why I wrote all of them.
Perhaps because the report side handles them and I just assumed the
kernel did too.

-- Steve

>
> > Tested-by: Arend van Spriel<arend@broadcom.com>
> > Signed-off-by: Steven Rostedt<rostedt@goodmis.org>
>
> Regards,
> Arend




\
 
 \ /
  Last update: 2013-06-20 15:01    [W:0.081 / U:1.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site