Skip to content
/ kperf Public
forked from luzhixing12345/kperf

linux kernel function callchain profiler

License

Notifications You must be signed in to change notification settings

dzwduan/kperf

 
 

Repository files navigation

kperf

linux kernel function callchain profiler

main source code comes from linux-tools profiler

demo

compile

make 

and you will get src/kperf

usage

this program needs to read kernel symbols, so you should always use sudo

specify the pid to monitor, the program will stop monitoring util the pid is finished or ctrl+c

sudo ./src/kperf -p <pid>
  • pid > 0 means collect program and kernel function callchain
  • pid < 0 means collect kernel function callchain only

you could use -t to setup a timer, the program will stop monitoring when time's up

# monitor 60s
sudo ./src/kperf -p <pid> -t 60

result

the program will generate report.html

ctrl+f search all results, right click to highlight the marker

see the demo gif above

reference

About

linux kernel function callchain profiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 62.2%
  • Python 18.2%
  • C 9.8%
  • JavaScript 4.3%
  • Makefile 3.1%
  • CSS 2.4%