Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753481Ab1BUVCp (ORCPT ); Mon, 21 Feb 2011 16:02:45 -0500 Received: from sj-iport-2.cisco.com ([171.71.176.71]:55507 "EHLO sj-iport-2.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753126Ab1BUVCj (ORCPT ); Mon, 21 Feb 2011 16:02:39 -0500 X-IronPort-AV: E=Sophos;i="4.62,202,1297036800"; d="scan'208";a="313370367" From: David Ahern To: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: acme@ghostprotocols.net, mingo@elte.hu, peterz@infradead.org, fweisbec@gmail.com, paulus@samba.org, tglx@linutronix.de, David Ahern Subject: [PATCH 4/4] perf stat: treat realtime-clock as nsec counter Date: Mon, 21 Feb 2011 14:02:30 -0700 Message-Id: <1298322150-15505-5-git-send-email-daahern@cisco.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1298322150-15505-1-git-send-email-daahern@cisco.com> References: <1298322150-15505-1-git-send-email-daahern@cisco.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1094 Lines: 31 Based on patch from Arnaldo Carvalho de Melo Signed-off-by: David Ahern --- tools/perf/builtin-stat.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 21c0252..35d45b4 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -184,8 +184,9 @@ static int create_perf_stat_counter(struct perf_evsel *evsel) */ static inline int nsec_counter(struct perf_evsel *evsel) { - if (perf_evsel__match(evsel, SOFTWARE, SW_CPU_CLOCK) || - perf_evsel__match(evsel, SOFTWARE, SW_TASK_CLOCK)) + if (perf_evsel__match(evsel, SOFTWARE, SW_CPU_CLOCK) || + perf_evsel__match(evsel, SOFTWARE, SW_TASK_CLOCK) || + perf_evsel__match(evsel, SOFTWARE, SW_REALTIME_CLOCK)) return 1; return 0; -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/