lkml.org 
[lkml]   [2018]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH V2 17/19] perf scripts python: exported-sql-viewer.py: Add All branches report
From
Date
On 23/10/18 11:31 PM, Adrian Hunter wrote:
> On 23/10/18 11:02 PM, Arnaldo Carvalho de Melo wrote:
>> Em Tue, Oct 23, 2018 at 07:57:17PM +0000, Hunter, Adrian escreveu:
>>>> -----Original Message-----
>>>> From: Arnaldo Carvalho de Melo [mailto:acme@kernel.org]
>>>> Sent: Tuesday, October 23, 2018 10:30 PM
>>>> To: Hunter, Adrian <adrian.hunter@intel.com>
>>>> Cc: Jiri Olsa <jolsa@redhat.com>; Andi Kleen <ak@linux.intel.com>; linux-
>>>> kernel@vger.kernel.org
>>>> Subject: Re: [PATCH V2 17/19] perf scripts python: exported-sql-viewer.py:
>>>> Add All branches report
>>>>
>>>> Em Tue, Oct 23, 2018 at 06:41:17PM +0000, Hunter, Adrian escreveu:
>>>>>> -----Original Message-----
>>>>>> From: Arnaldo Carvalho de Melo [mailto:acme@kernel.org]
>>>>>> So, I followed the instructions then ended up with:
>>>>>>
>>>>>> [acme@seventh perf]$ find /usr/local -name "*xed*" | head
>>>>>> /usr/local/lib/libxed.so /usr/local/lib/libxed.a
>>>>>> /usr/local/lib/libxed-ild.so /usr/local/lib/libxed-ild.a
>>>>>> /usr/local/include/xed /usr/local/include/xed/xed- syntax-enum.h
>>>>>> /usr/local/include/xed/xed-attributes.h
>>>>>> /usr/local/include/xed/xed-build-defines.h
>>>>>> /usr/local/include/xed/xed-cpuid-rec.h
>>>>>> /usr/local/include/xed/xed-flags.h
>>>>>> [acme@seventh perf]$
>>>>>>
>>>>>> Ran ldconfig as root, etc:
>>>>>>
>>>>>> [acme@seventh perf]$ ldconfig -v -N | grep xed
>>>
>>> What about:
>>> ldconfig -p | grep xed
>>
>> $ ldconfig -p | grep xed
>> $ echo $LD_LIBRARY_PATH
>> /usr/local/lib
>> $ ls -la /usr/local/lib/libxed*so
>> -r--r--r--. 1 root root 132840 Oct 23 14:52 /usr/local/lib/libxed-ild.so
>> -r--r--r--. 2 root root 6842688 Oct 23 14:52 /usr/local/lib/libxed.so
>> $ ldconfig -p | grep xed
>> $
>>
>
> A short term solution might be to add /usr/local/lib with ldconfig i.e.
>
> sudo ldconfig /usr/local/lib

That worked for me, but I will look at making the script work even if
/usr/local/lib is not in /etc/ld.so.conf or /etc/ld.do.conf.d/*

However I found kernel disassembly doesn't work, I think due to:

commit edeb0c90df3581b821a764052d185df985f8b8dc
perf tools: Stop fallbacking to kallsyms for vdso symbols lookup

As I mentioned here:


https://lore.kernel.org/lkml/4c682937-3cee-6974-0970-68610e13ad37@intel.com/T/#u

So I will look at a fix for that also.

\
 
 \ /
  Last update: 2018-10-24 15:58    [W:0.086 / U:15.188 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site