• Li Zefan's avatar
    perf trace: Add filter Suppport · c171b552
    Li Zefan authored
    Add a new option "--filter <filter_str>" to perf record, and
    it should be right after "-e trace_point":
    
     #./perf record -R -f -e irq:irq_handler_entry --filter irq==18
     ^C
     # ./perf trace
                perf-4303  ... irq_handler_entry: irq=18 handler=eth0
                init-0     ... irq_handler_entry: irq=18 handler=eth0
                init-0     ... irq_handler_entry: irq=18 handler=eth0
                init-0     ... irq_handler_entry: irq=18 handler=eth0
                init-0     ... irq_handler_entry: irq=18 handler=eth0
    
    See Documentation/trace/events.txt for the syntax of filter
    expressions.
    Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
    Acked-by: default avatarPeter Zijlstra <peterz@infradead.org>
    Acked-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Tom Zanussi <tzanussi@gmail.com>
    LKML-Reference: <4AD6955F.90602@cn.fujitsu.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    c171b552
parse-events.h 850 Bytes