Performance driver.
More...
Performance driver.
The Performance driver is exposed in the /dev/perf directory. Below is an overview of the files in this directory.
Cpu performance
The /dev/perf/cpu file contains per-CPU performance data in the following format:
cpu idle_clocks active_clocks interrupt_clocks
%lu %lu %lu %lu
%lu %lu %lu %lu
...
%lu %lu %lu %lu
Memory performance
The /dev/perf/mem file contains memory performance data in the following format:
total_pages %lu
free_pages %lu
used_pages %lu
- See also
- Process for per-process performance data.
◆ perf_process_ctx_init()
Initializes a per-process performance context.
- Parameters
-
| ctx | The context to initialize. |
Definition at line 137 of file perf.c.
◆ perf_thread_ctx_init()
Initializes a per-thread performance context.
- Parameters
-
| ctx | The context to initialize. |
Definition at line 144 of file perf.c.
◆ perf_init()
Initializes the performance driver.
Definition at line 150 of file perf.c.
◆ perf_interrupt_begin()
| void perf_interrupt_begin |
( |
void |
| ) |
|
Called at the beginning of an interrupt to update cpu performance data.
Must be called with interrupts disabled.
Definition at line 170 of file perf.c.
◆ perf_interrupt_end()
| void perf_interrupt_end |
( |
void |
| ) |
|
Called at the end of an interrupt to update cpu performance data.
Must be called with interrupts disabled.
Definition at line 206 of file perf.c.
◆ perf_syscall_begin()
| void perf_syscall_begin |
( |
void |
| ) |
|
Called at the beginning of a syscall to update process performance data.
Definition at line 226 of file perf.c.
◆ perf_syscall_end()
| void perf_syscall_end |
( |
void |
| ) |
|
Called at the end of a syscall to update process performance data.
Definition at line 248 of file perf.c.