From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753353AbcEMO1e (ORCPT ); Fri, 13 May 2016 10:27:34 -0400 Received: from mail-ig0-f196.google.com ([209.85.213.196]:36012 "EHLO mail-ig0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751531AbcEMO1c (ORCPT ); Fri, 13 May 2016 10:27:32 -0400 Subject: Re: [PATCH v3 3/7] perf tools: Remove the logical that skip buildid cache if symfs is given To: Hekuang , Arnaldo Carvalho de Melo References: <1463042596-61703-1-git-send-email-hekuang@huawei.com> <1463042596-61703-4-git-send-email-hekuang@huawei.com> <20160512130925.GG20258@kernel.org> <5734E649.80505@gmail.com> <57358003.3020203@huawei.com> Cc: peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, wangnan0@huawei.com, jpoimboe@redhat.com, ak@linux.intel.com, eranian@google.com, namhyung@kernel.org, adrian.hunter@intel.com, sukadev@linux.vnet.ibm.com, masami.hiramatsu.pt@hitachi.com, tumanova@linux.vnet.ibm.com, kan.liang@intel.com, penberg@kernel.org, linux-kernel@vger.kernel.org From: David Ahern Message-ID: <6108abe8-4508-c440-969f-5f9d8ee83131@gmail.com> Date: Fri, 13 May 2016 08:27:29 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <57358003.3020203@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/13/16 1:19 AM, Hekuang wrote: >> What about putting the build id cache under the symfs? so instead of >> dropping the symfs check and it to the path for the build id cache. >> >> > I think your intention is to reference symbol files in one place > instead of two. So there're two possible approaches, one is all > in buildid-cache, but in practice, I found lots of binaries in > symfs even not contains valid buildid, so this way is not work. > > The other one is all in symfs. It seems ok, but one problem I > should point out, with my test environment as an example, the > symfsdir is $(TARGET_ROOTFS),and by default buildid_dir is > $(TARGET_ROOTFS)/$(HOME)/.debug/, host perf does not know > $(HOME) folder in target and we should copy the debug folder > to $(TARGET_ROOTFS), which is readonly in the target. For me, it's > easier to use 'buildid-cache -a vdso-xxxx' to add that into host > buildid-cache than copy debug folder from $(HOME) to readonly > $(TARGET_ROOTFS). > > Without the stale concern, I prefer the two places(buildid-dir in > host and target symfs) way. The intention of symfs is every single file opened by perf is relative to that directory. As I recall when I added that option in early 2011 I made sure that statement is true. I think it is best to maintain that design.