[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4D38472D.100@hitachi.com>
Date: Thu, 20 Jan 2011 23:31:09 +0900
From: Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
To: Arnaldo Carvalho de Melo <acme@...hat.com>
Cc: Ingo Molnar <mingo@...e.hu>, Steven Rostedt <rostedt@...dmis.org>,
Srikar Dronamraju <srikar@...ux.vnet.ibm.com>,
Franck Bui-Huu <fbuihuu@...il.com>,
linux-kernel@...r.kernel.org, 2nddept-manager@....hitachi.co.jp,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Paul Mackerras <paulus@...ba.org>,
Arnaldo Carvalho de Melo <acme@...stprotocols.net>
Subject: Re: [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@...achi.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists