Re: [PATCH V2 17/19] perf scripts python: exported-sql-viewer.py: Add All branches report

From: Adrian Hunter
Date: Wed Oct 24 2018 - 09:57:49 EST


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@xxxxxxxxxx]
>>>> Sent: Tuesday, October 23, 2018 10:30 PM
>>>> To: Hunter, Adrian <adrian.hunter@xxxxxxxxx>
>>>> Cc: Jiri Olsa <jolsa@xxxxxxxxxx>; Andi Kleen <ak@xxxxxxxxxxxxxxx>; linux-
>>>> kernel@xxxxxxxxxxxxxxx
>>>> 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@xxxxxxxxxx]
>>>>>> 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@xxxxxxxxx/T/#u

So I will look at a fix for that also.