diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2009-12-15 22:04:41 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-12-16 07:53:49 +0000 |
| commit | c410a33887c17cac95ed8b0d860cdfb5c087a7d8 (patch) | |
| tree | 54fe6ed5ac64ff77763ff686af58bd36b04e73d6 /tools/perf/builtin-annotate.c | |
| parent | perf symbols: Adopt the strlists for dso, comm (diff) | |
| download | kernel-c410a33887c17cac95ed8b0d860cdfb5c087a7d8.tar.gz kernel-c410a33887c17cac95ed8b0d860cdfb5c087a7d8.zip | |
perf symbols: Move symbol filtering to event__preprocess_sample()
So that --dsos, --comm, --symbols can bem used in more tools,
like in perf diff:
$ perf record -f find / > /dev/null
$ perf record -f find / > /dev/null
$ perf diff --dsos /lib64/libc-2.10.1.so | head -5
1 +22392124 /lib64/libc-2.10.1.so _IO_vfprintf_internal
2 +6410655 /lib64/libc-2.10.1.so __GI_memmove
3 +1 +9192692 /lib64/libc-2.10.1.so _int_malloc
4 -1 -15158605 /lib64/libc-2.10.1.so _int_free
5 +45669 /lib64/libc-2.10.1.so _IO_new_file_xsputn
$
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frédéric Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
| -rw-r--r-- | tools/perf/builtin-annotate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index 645d58058431..593ff25006de 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c @@ -141,7 +141,7 @@ static int process_sample_event(event_t *event, struct perf_session *session) return -1; } - if (perf_session__add_hist_entry(session, &al, 1)) { + if (!al.filtered && perf_session__add_hist_entry(session, &al, 1)) { fprintf(stderr, "problem incrementing symbol count, " "skipping event\n"); return -1; |
