Perf cannot find external module characters

At startup, perfit finds the kernel characters and the symbols of my program, but does not find the external characters of the module. I wrote a kernel module that I load with insmod, how can I say perfto find its characters?

I run the kernel 2.6.37.6 (I can’t upgrade), mine perfdoesn’t yet support the dwarf option, but I think this is a symbol problem. I compiled everything with-g -fno-omit-frame-pointer

+4
source share
1 answer

I had to make it a kernel module, then the performance could find its characters:

IN_TREE_DIR=/lib/modules/`uname -r`/kernel/modulename
mkdir -p $IN_TREE_DIR
cp modulename.ko $IN_TREE_DIR
depmod -a 
+4
source

Source: https://habr.com/ru/post/1532346/


All Articles