]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
perf diff: Don't add the period for unresolved symbols
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 29 Dec 2009 00:48:35 +0000 (22:48 -0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Dec 2009 10:59:59 +0000 (11:59 +0100)
Since we don't add histograms buckets for them, this way the sum
of baselines should be 100%.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1262047716-23171-4-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-diff.c

index 1cbecaf029fa09c35dde438e269eb8fcdebc3057..876a4b981be8e79209fd2fb451afc49782030e8d 100644 (file)
@@ -51,12 +51,12 @@ static int diff__process_sample_event(event_t *event, struct perf_session *sessi
                return -1;
        }
 
-       if (al.filtered)
+       if (al.filtered || al.sym == NULL)
                return 0;
 
        event__parse_sample(event, session->sample_type, &data);
 
-       if (al.sym && perf_session__add_hist_entry(session, &al, data.period)) {
+       if (perf_session__add_hist_entry(session, &al, data.period)) {
                pr_warning("problem incrementing symbol count, skipping event\n");
                return -1;
        }