From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754988Ab3K0IKy (ORCPT ); Wed, 27 Nov 2013 03:10:54 -0500 Received: from mga09.intel.com ([134.134.136.24]:12948 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752433Ab3K0IKx (ORCPT ); Wed, 27 Nov 2013 03:10:53 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,780,1378882800"; d="scan'208";a="442888873" Message-ID: <5295AACE.2080606@intel.com> Date: Wed, 27 Nov 2013 10:18:22 +0200 From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Ingo Molnar CC: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org, David Ahern , Frederic Weisbecker , Jiri Olsa , Mike Galbraith , Namhyung Kim , Paul Mackerras , Stephane Eranian Subject: Re: [PATCH] perf tools: Fix not finding kcore in buildid cache References: <1385471964-4037-1-git-send-email-adrian.hunter@intel.com> <20131126161553.GB7775@gmail.com> In-Reply-To: <20131126161553.GB7775@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/11/13 18:15, Ingo Molnar wrote: > > * Adrian Hunter wrote: > >> The logic was not looking in the buildid cache for kcore >> if the host kernel buildid did not match the recorded >> kernel buildid. > > It would be nice to also include the specific failure mode in the > changelog: exactly how can users run into this. That will be more > useful to most people reading these changelogs than a more abstract > bug description. The preconditions for the problem are that kcore is in the buildid cache and that the running kernel has a different buildid e.g. $ perf buildid-list | grep kernel.kallsyms b18fbe769dea12513028a4287dae02efc1582c29 [kernel.kallsyms] $ perf record -o /tmp/junk true >/dev/null 2>&1 ; perf buildid-list -i /tmp/junk | grep kernel.kallsyms 504f9fd9328c40714995ce76fe1354c6e90136ce [kernel.kallsyms] Before the patch: $ perf script -v >out.txt build id event received for [kernel.kallsyms]: b18fbe769dea12513028a4287dae02efc1582c29 Using /home/ahunter/.debug/[kernel.kallsyms]/b18fbe769dea12513028a4287dae02efc1582c29 for symbols perf script stopped After the patch: $ perf script -v >out.txt build id event received for [kernel.kallsyms]: b18fbe769dea12513028a4287dae02efc1582c29 Using /home/ahunter/.debug/[kernel.kcore]/b18fbe769dea12513028a4287dae02efc1582c29/2013112617084061/kcore for kernel object code Using /home/ahunter/.debug/[kernel.kcore]/b18fbe769dea12513028a4287dae02efc1582c29/2013112617084061/kallsyms for symbols perf script stopped