In System-wide profile, the callstack samples can be collected for kernel functions. For
example, the following command will collect the kernel
callstack:
# AMDuProfCLI collect -a -g -o /tmp/usr/bin/stress-ng --cpu 8 --io 4 --vm 2 --vm-bytes 128M -- fork 4 --timeout 20s
To capture the source line of system-module functions use
--show-sys-src.
Example
./AMDuProfCLI report --detail --show-sys-src --src-path /usr/src/linux-version/ -i <session_path>
Pass the path to the kernel source files directory using the
--src-path option.