From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S977048AbdDXVMY (ORCPT ); Mon, 24 Apr 2017 17:12:24 -0400 Received: from terminus.zytor.com ([65.50.211.136]:45649 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965885AbdDXVMP (ORCPT ); Mon, 24 Apr 2017 17:12:15 -0400 Date: Mon, 24 Apr 2017 14:10:02 -0700 From: tip-bot for Andi Kleen Message-ID: Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, ak@linux.intel.com, tglx@linutronix.de, mingo@kernel.org, acme@redhat.com, eranian@google.com, jolsa@kernel.org Reply-To: jolsa@kernel.org, eranian@google.com, linux-kernel@vger.kernel.org, hpa@zytor.com, ak@linux.intel.com, mingo@kernel.org, tglx@linutronix.de, acme@redhat.com In-Reply-To: <20170419174940.13641-1-andi@firstfloor.org> References: <20170419174940.13641-1-andi@firstfloor.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf mem: Fix display of data source snoop indication Git-Commit-ID: 166ebdd2442660e7f942d657fc5e629000e58ec3 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 166ebdd2442660e7f942d657fc5e629000e58ec3 Gitweb: http://git.kernel.org/tip/166ebdd2442660e7f942d657fc5e629000e58ec3 Author: Andi Kleen AuthorDate: Wed, 19 Apr 2017 10:49:40 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 24 Apr 2017 12:33:32 -0300 perf mem: Fix display of data source snoop indication 'perf mem report' doesn't display the data source snoop indication correctly. In the kernel API the definition is: #define PERF_MEM_SNOOP_NONE 0x02 /* no snoop */ #define PERF_MEM_SNOOP_HIT 0x04 /* snoop hit */ #define PERF_MEM_SNOOP_MISS 0x08 /* snoop miss */ but the table used by the perf tools exchanged "Hit" and "Miss": "None", "Miss", "Hit", Fix the table in perf. Signed-off-by: Andi Kleen Cc: Jiri Olsa Cc: Stephane Eranian Link: http://lkml.kernel.org/r/20170419174940.13641-1-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/mem-events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/mem-events.c b/tools/perf/util/mem-events.c index c56d52f..06f5a3a 100644 --- a/tools/perf/util/mem-events.c +++ b/tools/perf/util/mem-events.c @@ -206,8 +206,8 @@ int perf_mem__lvl_scnprintf(char *out, size_t sz, struct mem_info *mem_info) static const char * const snoop_access[] = { "N/A", "None", - "Miss", "Hit", + "Miss", "HitM", };