perf_event_attr

Hardware event_id to monitor via a performance monitoring event:

@sample_max_stack: Max number of frame pointers in a callchain, should be < /proc/sys/kernel/perf_event_max_stack

version(linux)
extern (C) @nogc nothrow
struct perf_event_attr {
enum ulong disabled_min;
enum ulong disabled_max;
enum ulong inherit_min;
enum ulong inherit_max;
enum ulong pinned_min;
enum ulong pinned_max;
enum ulong exclusive_min;
enum ulong exclusive_max;
enum ulong exclude_user_min;
enum ulong exclude_user_max;
enum ulong exclude_kernel_min;
enum ulong exclude_kernel_max;
enum ulong exclude_hv_min;
enum ulong exclude_hv_max;
enum ulong exclude_idle_min;
enum ulong exclude_idle_max;
enum ulong mmap_min;
enum ulong mmap_max;
enum ulong comm_min;
enum ulong comm_max;
enum ulong freq_min;
enum ulong freq_max;
enum ulong inherit_stat_min;
enum ulong inherit_stat_max;
enum ulong enable_on_exec_min;
enum ulong enable_on_exec_max;
enum ulong task_min;
enum ulong task_max;
enum ulong watermark_min;
enum ulong watermark_max;
enum ulong precise_ip_min;
enum ulong precise_ip_max;
enum ulong mmap_data_min;
enum ulong mmap_data_max;
enum ulong sample_id_all_min;
enum ulong sample_id_all_max;
enum ulong exclude_host_min;
enum ulong exclude_host_max;
enum ulong exclude_guest_min;
enum ulong exclude_guest_max;
enum ulong exclude_callchain_kernel_min;
enum ulong exclude_callchain_kernel_max;
enum ulong exclude_callchain_user_min;
enum ulong exclude_callchain_user_max;
enum ulong mmap2_min;
enum ulong mmap2_max;
enum ulong comm_exec_min;
enum ulong comm_exec_max;
enum ulong use_clockid_min;
enum ulong use_clockid_max;
enum ulong context_switch_min;
enum ulong context_switch_max;
enum ulong write_backward_min;
enum ulong write_backward_max;
enum ulong namespaces_min;
enum ulong namespaces_max;
enum ulong __reserved_1_min;
enum ulong __reserved_1_max;
}

Members

Properties

__reserved_1
ulong __reserved_1 [@property getter]
__reserved_1
ulong __reserved_1 [@property setter]
comm
ulong comm [@property getter]
comm
ulong comm [@property setter]
comm_exec
ulong comm_exec [@property getter]
comm_exec
ulong comm_exec [@property setter]
context_switch
ulong context_switch [@property getter]
context_switch
ulong context_switch [@property setter]
disabled
ulong disabled [@property getter]
disabled
ulong disabled [@property setter]
enable_on_exec
ulong enable_on_exec [@property getter]
enable_on_exec
ulong enable_on_exec [@property setter]
exclude_callchain_kernel
ulong exclude_callchain_kernel [@property getter]
exclude_callchain_kernel
ulong exclude_callchain_kernel [@property setter]
exclude_callchain_user
ulong exclude_callchain_user [@property getter]
exclude_callchain_user
ulong exclude_callchain_user [@property setter]
exclude_guest
ulong exclude_guest [@property getter]
exclude_guest
ulong exclude_guest [@property setter]
exclude_host
ulong exclude_host [@property getter]
exclude_host
ulong exclude_host [@property setter]
exclude_hv
ulong exclude_hv [@property getter]
exclude_hv
ulong exclude_hv [@property setter]
exclude_idle
ulong exclude_idle [@property getter]
exclude_idle
ulong exclude_idle [@property setter]
exclude_kernel
ulong exclude_kernel [@property getter]
exclude_kernel
ulong exclude_kernel [@property setter]
exclude_user
ulong exclude_user [@property getter]
exclude_user
ulong exclude_user [@property setter]
exclusive
ulong exclusive [@property getter]
exclusive
ulong exclusive [@property setter]
freq
ulong freq [@property getter]
freq
ulong freq [@property setter]
inherit
ulong inherit [@property getter]
inherit
ulong inherit [@property setter]
inherit_stat
ulong inherit_stat [@property getter]
inherit_stat
ulong inherit_stat [@property setter]
mmap
ulong mmap [@property getter]
mmap
ulong mmap [@property setter]
mmap2
ulong mmap2 [@property getter]
mmap2
ulong mmap2 [@property setter]
mmap_data
ulong mmap_data [@property getter]
mmap_data
ulong mmap_data [@property setter]
namespaces
ulong namespaces [@property getter]
namespaces
ulong namespaces [@property setter]
pinned
ulong pinned [@property getter]
pinned
ulong pinned [@property setter]
precise_ip
ulong precise_ip [@property getter]
precise_ip
ulong precise_ip [@property setter]
sample_id_all
ulong sample_id_all [@property getter]
sample_id_all
ulong sample_id_all [@property setter]
task
ulong task [@property getter]
task
ulong task [@property setter]
use_clockid
ulong use_clockid [@property getter]
use_clockid
ulong use_clockid [@property setter]
watermark
ulong watermark [@property getter]
watermark
ulong watermark [@property setter]
write_backward
ulong write_backward [@property getter]
write_backward
ulong write_backward [@property setter]

Unions

__anonymous
union __anonymous
__anonymous
union __anonymous
__anonymous
union __anonymous
Undocumented in source.
__anonymous
union __anonymous
Undocumented in source.

Variables

__reserved_2
ushort __reserved_2;

align to __u64

aux_watermark
uint aux_watermark;

Wakeup watermark for AUX area

bp_type
uint bp_type;
branch_sample_type
ulong branch_sample_type;

enum perf_branch_sample_type

clockid
int clockid;
config
ulong config;

Type specific configuration information.

read_format
ulong read_format;
sample_max_stack
ushort sample_max_stack;
sample_regs_intr
ulong sample_regs_intr;

Defines set of regs to dump for each sample state captured on: - precise = 0: PMU interrupt - precise > 0: sampled instruction

sample_regs_user
ulong sample_regs_user;

Defines set of user regs to dump on samples. See asm/perf_regs.h for details.

sample_stack_user
uint sample_stack_user;

Defines size of the user stack to dump on samples.

sample_type
ulong sample_type;
size
uint size;

Size of the attr structure, for fwd/bwd compat.

type
uint type;

Major type: hardware/software/tracepoint/etc.

Meta