Closed DanielLee343 closed 10 months ago
Fixed it. Turns out some missing dependencies for perf
:
# install perf
sudo apt-get install -y linux-tools-common linux-tools-generic linux-tools-`uname -r`
# if not work, then
cd <linux-dir>/tools/perf
make
sudo cp perf /usr/bin
If still not working, note that perf requires ALL the following dependencies in order to be recognized from damo (make sure you install all), and do the above steps to build from source:
$ ldd /usr/lib/perf
linux-vdso.so.1 (0x00007fff5d7f6000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f99d10fa000)
libelf.so.1 => /lib/x86_64-linux-gnu/libelf.so.1 (0x00007f99d10dc000)
libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f99d0600000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f99d10c0000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f99d1095000)
libnuma.so.1 => /lib/x86_64-linux-gnu/libnuma.so.1 (0x00007f99d1086000)
libtraceevent.so.1 => /lib/x86_64-linux-gnu/libtraceevent.so.1 (0x00007f99d105f000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f99d0200000)
/lib64/ld-linux-x86-64.so.2 (0x00007f99d11f0000)
Thank you for the update, Daniel!
Hi,
I just setup DAMON on a new server but somehow experienced this issue.
I see the damo python script is calling this:
And when I try this command in shell:
Although I have installed
libtraceevent-dev
andlibtraceevent1
anddamon:damon_aggregated
is in my perf list:Server environment: