From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752025AbcGPUof (ORCPT ); Sat, 16 Jul 2016 16:44:35 -0400 Received: from terminus.zytor.com ([198.137.202.10]:38458 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751770AbcGPUod (ORCPT ); Sat, 16 Jul 2016 16:44:33 -0400 Date: Sat, 16 Jul 2016 13:44:23 -0700 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: acme@redhat.com, namhyung@kernel.org, cphlipot0@gmail.com, adrian.hunter@intel.com, hpa@zytor.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, jolsa@kernel.org, wangnan0@huawei.com, mingo@kernel.org, dsahern@gmail.com Reply-To: hpa@zytor.com, tglx@linutronix.de, acme@redhat.com, namhyung@kernel.org, adrian.hunter@intel.com, cphlipot0@gmail.com, mingo@kernel.org, dsahern@gmail.com, linux-kernel@vger.kernel.org, jolsa@kernel.org, wangnan0@huawei.com To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Just pr_debug() about not being able to read cacheline_size Git-Commit-ID: 8811e8ea14c1056b09c794c67836b8a84584ddef 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: 8811e8ea14c1056b09c794c67836b8a84584ddef Gitweb: http://git.kernel.org/tip/8811e8ea14c1056b09c794c67836b8a84584ddef Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 15 Jul 2016 10:05:19 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 15 Jul 2016 10:08:29 -0300 perf tools: Just pr_debug() about not being able to read cacheline_size So far the cacheline_size is only useful for the "dcacheline" --sort order, i.e. if that is not used, which is the norm, then the user shouldn't care that he is running this, say, on an Android system where sysconf(_SC_LEVEL1_DCACHE_LINESIZE) and the /sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size sysfs file isn't available. An upcoming patch will emit an warning only for "--sort ...,dcacheline,...". Cc: Adrian Hunter Cc: Chris Phlipot Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-580cnkvftunyvt9n7unsholi@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/perf.c b/tools/perf/perf.c index 4b2ff02..64c0696 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c @@ -503,7 +503,7 @@ void pthread__unblock_sigwinch(void) static void cache_line_size(int *cacheline_sizep) { if (sysfs__read_int("devices/system/cpu/cpu0/cache/index0/coherency_line_size", cacheline_sizep)) - perror("cannot determine cache line size"); + pr_debug("cannot determine cache line size"); } #endif