Linux Kernel Callstack Sampling - Linux Kernel Callstack Sampling - 57368

uProf User Guide

Document ID
57368
Release Date
2025-06-09
Revision
5.1 English
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.