lkml.org 
[lkml]   [2011]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -perf/perf/core v2 1/3] perf: Add strfilter for general purpose string filter
(2011/01/20 23:15), Masami Hiramatsu wrote:
> Add strfilter for general purpose string filter.
> Every filter rules are descrived by glob matching pattern
> and '!' prefix which means Logical NOT.
> A strfilter consists of those filter rules connected
> with '&' and '|'. A set of rules can be folded by using
> '(' and ')'. It also accepts spaces around rules and those
> operators.
>
> Format:
> <rule> ::= <glob-exp> | "!" <rule> | <rule> <op> <rule> | "(" <rule> ")"
> <op> ::= "&" | "|"
>
> e.g.
> "(add* | del*) & *timer" filter rules pass strings which
> start with add or del and end with timer.
>
> This will be used by perf probe --filter.
>
> Changes in V2:
> - Fix to check result of strdup() and strfilter__alloc().
> - Encapsulate and simplify interfaces as like as regex(3).

Hi Arnaldo,
Finally, I decided not to support partial node deletion, because
it's hard to modify a part of rule tree. Instead, I encapsulated
each node and simplified interfaces.

Thank you,

--
Masami HIRAMATSU
2nd Dept. Linux Technology Center
Hitachi, Ltd., Systems Development Laboratory
E-mail: masami.hiramatsu.pt@hitachi.com


\
 
 \ /
  Last update: 2011-01-20 15:33    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean