Re: [PATCH v2] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Li Zhijian
The input file is from lizhijian@haswell-OptiPlex-9020:~/lkp/linux/tools/perf/tests/shell$ grep libc= -A1 record+probe_libc_inet_pton.sh libc=$(grep -w libc /proc/self/maps | head -1 | sed -r 's/.*[[:space:]](\/.*)/\1/g') nm -gD $libc 2>/dev/null | fgrep -q inet_pton || exit 254 It mostly

Re: [PATCH v2] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Li Zhijian
The input file is from lizhijian@haswell-OptiPlex-9020:~/lkp/linux/tools/perf/tests/shell$ grep libc= -A1 record+probe_libc_inet_pton.sh libc=$(grep -w libc /proc/self/maps | head -1 | sed -r 's/.*[[:space:]](\/.*)/\1/g') nm -gD $libc 2>/dev/null | fgrep -q inet_pton || exit 254 It mostly

Re: [PATCH v2] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Kim Phillips
On Wed, 9 May 2018 15:45:29 +0800 Li Zhijian wrote: > On Ubuntu and Debian, we can't find any symbol including "inet_pton" from 'nm > -g' > root@vm-lkp-nex04-8G-5 ~# nm -g /lib/x86_64-linux-gnu/libc-2.25.so | grep > inet_pton > nm: /lib/x86_64-linux-gnu/libc-2.25.so:

Re: [PATCH v2] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Kim Phillips
On Wed, 9 May 2018 15:45:29 +0800 Li Zhijian wrote: > On Ubuntu and Debian, we can't find any symbol including "inet_pton" from 'nm > -g' > root@vm-lkp-nex04-8G-5 ~# nm -g /lib/x86_64-linux-gnu/libc-2.25.so | grep > inet_pton > nm: /lib/x86_64-linux-gnu/libc-2.25.so: no symbols > > it looks

[PATCH v2] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Li Zhijian
On Ubuntu and Debian, we can't find any symbol including "inet_pton" from 'nm -g' root@vm-lkp-nex04-8G-5 ~# nm -g /lib/x86_64-linux-gnu/libc-2.25.so | grep inet_pton nm: /lib/x86_64-linux-gnu/libc-2.25.so: no symbols it looks libc.so has different symbol compositions at different distros

[PATCH v2] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Li Zhijian
On Ubuntu and Debian, we can't find any symbol including "inet_pton" from 'nm -g' root@vm-lkp-nex04-8G-5 ~# nm -g /lib/x86_64-linux-gnu/libc-2.25.so | grep inet_pton nm: /lib/x86_64-linux-gnu/libc-2.25.so: no symbols it looks libc.so has different symbol compositions at different distros