Skip to content

An example for counting and sampling using the perf_event_open syscall

Notifications You must be signed in to change notification settings

LLLLss/perf_event_open-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

perf_event_open syscall example for both counting and sampling.

It is possible to inspect how perf tool sets its perf_event_attr structure by
running the perf command with the -vv flag e.g.
  perf [stat|record] -vv -a -e instructions

About

An example for counting and sampling using the perf_event_open syscall

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.4%
  • Makefile 0.6%