From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756222Ab2JEOq6 (ORCPT ); Fri, 5 Oct 2012 10:46:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24646 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756166Ab2JEOp3 (ORCPT ); Fri, 5 Oct 2012 10:45:29 -0400 From: Jiri Olsa To: linux-kernel@vger.kernel.org Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Paul Mackerras , Corey Ashford , Frederic Weisbecker , Namhyung Kim , Andi Kleen , Jiri Olsa Subject: [PATCH 7/8] perf diff: Include samples without symbol in overall stats Date: Fri, 5 Oct 2012 16:44:46 +0200 Message-Id: <1349448287-18919-8-git-send-email-jolsa@redhat.com> In-Reply-To: <1349448287-18919-1-git-send-email-jolsa@redhat.com> References: <1349448287-18919-1-git-send-email-jolsa@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently we omit samples without symbols. This way we get different and confusing numbers for samples than from report command. Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Paul Mackerras Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Namhyung Kim Cc: Andi Kleen Signed-off-by: Jiri Olsa --- tools/perf/builtin-diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index dd9c064..b4db513 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c @@ -269,7 +269,7 @@ static int diff__process_sample_event(struct perf_tool *tool __maybe_unused, return -1; } - if (al.filtered || al.sym == NULL) + if (al.filtered) return 0; if (hists__add_entry(&evsel->hists, &al, sample->period)) { -- 1.7.11.4