Contents
What is PMU event?
Event Based Branches (EBBs) are a feature which allows the hardware to branch directly to a specified user space address when certain events occur.
What is perf event?
The perf tool supports a list of measurable events. The tool and underlying kernel interface can measure events coming from different sources. For instance, some event are pure kernel counters, in this case they are called software events. Examples include: context-switches, minor-faults.
What is event counter in operating system?
Performance monitor Performance counters are bits of code that monitor, count, or measure events in software, which allow us to see patterns from a high-level view. They are registered with the operating system during installation of the software, allowing anyone with the proper permissions to view them.
How are kernel PMU events exported into sysfs?
But it is not that important. Kernel PMU event are just the events, which are exported into sysfs. I don’t know how this is done (automatically by kernel all discovered PMCs on the system, or just something hard-coded, and if I add a kprobe — is it exported? etc).
Which is an example of a pure kernel counter?
For instance, some event are pure kernel counters, in this case they are called software events. Examples include: context-switches, minor-faults. Another source of events is the processor itself and its Performance Monitoring Unit (PMU).
How to get list of measurable events in PERF?
Certain commands require special support in the kernel and may not be available. To obtain the list of options for each command, simply type the command name followed by -h : The perf tool supports a list of measurable events. The tool and underlying kernel interface can measure events coming from different sources.
What are the supported events in PERF 2.6?
Those are only available with the 2.6.3x and newer kernels. To obtain a list of supported events: