Docs.rs
redbpf-2.0.0
redbpf 2.0.0
Docs.rs crate page
MIT OR Apache-2.0
Links
Documentation
Repository
crates.io
Source
Owners
rahulpowar
rsdy
alessandrod
Dependencies
bindgen ^0.59.1
normal
bpf-sys ^2.0.0
normal
byteorder ^1
normal
futures ^0.3
normal
goblin ^0.4
normal
lazy_static ^1.0
normal
libc ^0.2
normal
regex ^1.0
normal
ring ^0.16
normal
serde_derive ^1.0
normal
serde_json ^1.0
normal
tokio ^1.0.1
normal
tracing ^0.1.26
normal
zero ^0.1
normal
Versions
6.22%
of the crate is documented
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
Module perf
Structs
Constants
Type Definitions
Unions
?
Module
redbpf
::
sys
::
perf
[
−
]
[src]
Structs
__BindgenBitfieldUnit
__IncompleteArrayField
__kernel_fd_set
__kernel_fsid_t
perf_branch_entry
perf_event_attr
perf_event_header
perf_event_mmap_page
perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1
perf_event_query_bpf
perf_mem_data_src__bindgen_ty_1
perf_ns_link_info
Constants
CGROUP_NS_INDEX
IOCSIZE_MASK
IOCSIZE_SHIFT
IOC_IN
IOC_INOUT
IOC_OUT
IPC_NS_INDEX
MNT_NS_INDEX
NET_NS_INDEX
NR_NAMESPACES
PERF_ATTR_SIZE_VER0
PERF_ATTR_SIZE_VER1
PERF_ATTR_SIZE_VER2
PERF_ATTR_SIZE_VER3
PERF_ATTR_SIZE_VER4
PERF_ATTR_SIZE_VER5
PERF_AUX_FLAG_COLLISION
PERF_AUX_FLAG_OVERWRITE
PERF_AUX_FLAG_PARTIAL
PERF_AUX_FLAG_TRUNCATED
PERF_BR_CALL
PERF_BR_COND
PERF_BR_COND_CALL
PERF_BR_COND_RET
PERF_BR_IND
PERF_BR_IND_CALL
PERF_BR_MAX
PERF_BR_RET
PERF_BR_SYSCALL
PERF_BR_SY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L1
PERF_MEM_TLB_L2
PERF_MEM_TLB_MISS
PERF_MEM_TLB_NA
PERF_MEM_TLB_OS
PERF_MEM_TLB_SHIFT
PERF_MEM_TLB_WK
PERF_RECORD_MISC_COMM_EXEC
PERF_RECORD_MISC_CPUMODE_MASK
PERF_RECORD_MISC_CPUMODE_UNKNOWN
PERF_RECORD_MISC_EXACT_IP
PERF_RECORD_MISC_EXT_RESERVED
PERF_RECORD_MISC_GUEST_KERNEL
PERF_RECORD_MISC_GUEST_USER
PERF_RECORD_MISC_HYPERVISOR
PERF_RECORD_MISC_KERNEL
PERF_RECORD_MISC_MMAP_DATA
PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT
PERF_RECORD_MISC_SWITCH_OUT
PERF_RECORD_MISC_USER
PERF_TXN_ABORT_MASK
PERF_TXN_ABORT_SHIFT
PERF_TXN_ASYNC
PERF_TXN_CAPACITY_READ
PERF_TXN_CAPACITY_WRITE
PERF_TXN_CONFLICT
PERF_TXN_ELISION
PERF_TXN_MAX
PERF_TXN_RETRY
PERF_TXN_SYNC
PERF_TXN_TRANSACTION
PID_NS_INDEX
USER_NS_INDEX
UTS_NS_INDEX
_IOC_DIRBITS
_IOC_DIRMASK
_IOC_DIRSHIFT
_IOC_NONE
_IOC_NRBITS
_IOC_NRMASK
_IOC_NRSHIFT
_IOC_READ
_IOC_SIZEBITS
_IOC_SIZEMASK
_IOC_SIZESHIFT
_IOC_TYPEBITS
_IOC_TYPEMASK
_IOC_TYPESHIFT
_IOC_WRITE
__BITS_PER_LONG
__FD_SETSIZE
__LITTLE_ENDIAN
perf_branch_sample_type_PERF_SAMPLE_BRANCH_ABORT_TX
perf_branch_sample_type_PERF_SAMPLE_BRANCH_ANY
perf_branch_sample_type_PERF_SAMPLE_BRANCH_ANY_CALL
perf_branch_sample_type_PERF_SAMPLE_BRANCH_ANY_RETURN
perf_branch_sample_type_PERF_SAMPLE_BRANCH_CALL
perf_branch_sample_type_PERF_SAMPLE_BRANCH_CALL_STACK
perf_branch_sample_type_PERF_SAMPLE_BRANCH_COND
perf_branch_sample_type_PERF_SAMPLE_BRANCH_HV
perf_branch_sample_type_PERF_SAMPLE_BRANCH_IND_CALL
perf_branch_sample_type_PERF_SAMPLE_BRANCH_IND_JUMP
perf_branch_sample_type_PERF_SAMPLE_BRANCH_IN_TX
perf_branch_sample_type_PERF_SAMPLE_BRANCH_KERNEL
perf_branch_sample_type_PERF_SAMPLE_BRANCH_MAX
perf_branch_sample_type_PERF_SAMPLE_BRANCH_NO_CYCLES
perf_branch_sample_type_PERF_SAMPLE_BRANCH_NO_FLAGS
perf_branch_sample_type_PERF_SAMPLE_BRANCH_NO_TX
perf_branch_sample_type_PERF_SAMPLE_BRANCH_TYPE_SAVE
perf_branch_sample_type_PERF_SAMPLE_BRANCH_USER
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_ABORT_TX_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_ANY_CALL_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_ANY_RETURN_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_ANY_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_CALL_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_CALL_STACK_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_COND_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_HV_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_IND_CALL_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_IND_JUMP_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_IN_TX_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_KERNEL_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_MAX_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_NO_CYCLES_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_NO_FLAGS_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_NO_TX_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_TYPE_SAVE_SHIFT
perf_branch_sample_type_shift_PERF_SAMPLE_BRANCH_USER_SHIFT
perf_callchain_context_PERF_CONTEXT_GUEST
perf_callchain_context_PERF_CONTEXT_GUEST_KERNEL
perf_callchain_context_PERF_CONTEXT_GUEST_USER
perf_callchain_context_PERF_CONTEXT_HV
perf_callchain_context_PERF_CONTEXT_KERNEL
perf_callchain_context_PERF_CONTEXT_MAX
perf_callchain_context_PERF_CONTEXT_USER
perf_event_ioc_flags_PERF_IOC_FLAG_GROUP
perf_event_read_format_PERF_FORMAT_GROUP
perf_event_read_format_PERF_FORMAT_ID
perf_event_read_format_PERF_FORMAT_MAX
perf_event_read_format_PERF_FORMAT_TOTAL_TIME_ENABLED
perf_event_read_format_PERF_FORMAT_TOTAL_TIME_RUNNING
perf_event_sample_format_PERF_SAMPLE_ADDR
perf_event_sample_format_PERF_SAMPLE_BRANCH_STACK
perf_event_sample_format_PERF_SAMPLE_CALLCHAIN
perf_event_sample_format_PERF_SAMPLE_CPU
perf_event_sample_format_PERF_SAMPLE_DATA_SRC
perf_event_sample_format_PERF_SAMPLE_ID
perf_event_sample_format_PERF_SAMPLE_IDENTIFIER
perf_event_sample_format_PERF_SAMPLE_IP
perf_event_sample_format_PERF_SAMPLE_MAX
perf_event_sample_format_PERF_SAMPLE_PERIOD
perf_event_sample_format_PERF_SAMPLE_PHYS_ADDR
perf_event_sample_format_PERF_SAMPLE_RAW
perf_event_sample_format_PERF_SAMPLE_READ
perf_event_sample_format_PERF_SAMPLE_REGS_INTR
perf_event_sample_format_PERF_SAMPLE_REGS_USER
perf_event_sample_format_PERF_SAMPLE_STACK_USER
perf_event_sample_format_PERF_SAMPLE_STREAM_ID
perf_event_sample_format_PERF_SAMPLE_TID
perf_event_sample_format_PERF_SAMPLE_TIME
perf_event_sample_format_PERF_SAMPLE_TRANSACTION
perf_event_sample_format_PERF_SAMPLE_WEIGHT
perf_event_type_PERF_RECORD_AUX
perf_event_type_PERF_RECORD_COMM
perf_event_type_PERF_RECORD_EXIT
perf_event_type_PERF_RECORD_FORK
perf_event_type_PERF_RECORD_ITRACE_START
perf_event_type_PERF_RECORD_LOST
perf_event_type_PERF_RECORD_LOST_SAMPLES
perf_event_type_PERF_RECORD_MAX
perf_event_type_PERF_RECORD_MMAP
perf_event_type_PERF_RECORD_MMAP2
perf_event_type_PERF_RECORD_NAMESPACES
perf_event_type_PERF_RECORD_READ
perf_event_type_PERF_RECORD_SAMPLE
perf_event_type_PERF_RECORD_SWITCH
perf_event_type_PERF_RECORD_SWITCH_CPU_WIDE
perf_event_type_PERF_RECORD_THROTTLE
perf_event_type_PERF_RECORD_UNTHROTTLE
perf_hw_cache_id_PERF_COUNT_HW_CACHE_BPU
perf_hw_cache_id_PERF_COUNT_HW_CACHE_DTLB
perf_hw_cache_id_PERF_COUNT_HW_CACHE_ITLB
perf_hw_cache_id_PERF_COUNT_HW_CACHE_L1D
perf_hw_cache_id_PERF_COUNT_HW_CACHE_L1I
perf_hw_cache_id_PERF_COUNT_HW_CACHE_LL
perf_hw_cache_id_PERF_COUNT_HW_CACHE_MAX
perf_hw_cache_id_PERF_COUNT_HW_CACHE_NODE
perf_hw_cache_op_id_PERF_COUNT_HW_CACHE_OP_MAX
perf_hw_cache_op_id_PERF_COUNT_HW_CACHE_OP_PREFETCH
perf_hw_cache_op_id_PERF_COUNT_HW_CACHE_OP_READ
perf_hw_cache_op_id_PERF_COUNT_HW_CACHE_OP_WRITE
perf_hw_cache_op_result_id_PERF_COUNT_HW_CACHE_RESULT_ACCESS
perf_hw_cache_op_result_id_PERF_COUNT_HW_CACHE_RESULT_MAX
perf_hw_cache_op_result_id_PERF_COUNT_HW_CACHE_RESULT_MISS
perf_hw_id_PERF_COUNT_HW_BRANCH_INSTRUCTIONS
perf_hw_id_PERF_COUNT_HW_BRANCH_MISSES
perf_hw_id_PERF_COUNT_HW_BUS_CYCLES
perf_hw_id_PERF_COUNT_HW_CACHE_MISSES
perf_hw_id_PERF_COUNT_HW_CACHE_REFERENCES
perf_hw_id_PERF_COUNT_HW_CPU_CYCLES
perf_hw_id_PERF_COUNT_HW_INSTRUCTIONS
perf_hw_id_PERF_COUNT_HW_MAX
perf_hw_id_PERF_COUNT_HW_REF_CPU_CYCLES
perf_hw_id_PERF_COUNT_HW_STALLED_CYCLES_BACKEND
perf_hw_id_PERF_COUNT_HW_STALLED_CYCLES_FRONTEND
perf_sample_regs_abi_PERF_SAMPLE_REGS_ABI_32
perf_sample_regs_abi_PERF_SAMPLE_REGS_ABI_64
perf_sample_regs_abi_PERF_SAMPLE_REGS_ABI_NONE
perf_sw_ids_PERF_COUNT_SW_ALIGNMENT_FAULTS
perf_sw_ids_PERF_COUNT_SW_BPF_OUTPUT
perf_sw_ids_PERF_COUNT_SW_CONTEXT_SWITCHES
perf_sw_ids_PERF_COUNT_SW_CPU_CLOCK
perf_sw_ids_PERF_COUNT_SW_CPU_MIGRATIONS
perf_sw_ids_PERF_COUNT_SW_DUMMY
perf_sw_ids_PERF_COUNT_SW_EMULATION_FAULTS
perf_sw_ids_PERF_COUNT_SW_MAX
perf_sw_ids_PERF_COUNT_SW_PAGE_FAULTS
perf_sw_ids_PERF_COUNT_SW_PAGE_FAULTS_MAJ
perf_sw_ids_PERF_COUNT_SW_PAGE_FAULTS_MIN
perf_sw_ids_PERF_COUNT_SW_TASK_CLOCK
perf_type_id_PERF_TYPE_BREAKPOINT
perf_type_id_PERF_TYPE_HARDWARE
perf_type_id_PERF_TYPE_HW_CACHE
perf_type_id_PERF_TYPE_MAX
perf_type_id_PERF_TYPE_RAW
perf_type_id_PERF_TYPE_SOFTWARE
perf_type_id_PERF_TYPE_TRACEPOINT
Type Definitions
__be16
__be32
__be64
__kernel_caddr_t
__kernel_clock_t
__kernel_clockid_t
__kernel_daddr_t
__kernel_gid16_t
__kernel_gid32_t
__kernel_gid_t
__kernel_ino_t
__kernel_ipc_pid_t
__kernel_key_t
__kernel_loff_t
__kernel_long_t
__kernel_mode_t
__kernel_mqd_t
__kernel_off_t
__kernel_old_dev_t
__kernel_old_gid_t
__kernel_old_uid_t
__kernel_pid_t
__kernel_ptrdiff_t
__kernel_sighandler_t
__kernel_size_t
__kernel_ssize_t
__kernel_suseconds_t
__kernel_time_t
__kernel_timer_t
__kernel_uid16_t
__kernel_uid32_t
__kernel_uid_t
__kernel_ulong_t
__le16
__le32
__le64
__poll_t
__s8
__s16
__s32
__s64
__sum16
__u8
__u16
__u32
__u64
__wsum
_bindgen_ty_1
_bindgen_ty_2
_bindgen_ty_3
perf_branch_sample_type
perf_branch_sample_type_shift
perf_callchain_context
perf_event_ioc_flags
perf_event_read_format
perf_event_sample_format
perf_event_type
perf_hw_cache_id
perf_hw_cache_op_id
perf_hw_cache_op_result_id
perf_hw_id
perf_sample_regs_abi
perf_sw_ids
perf_type_id
Unions
perf_event_attr__bindgen_ty_1
perf_event_attr__bindgen_ty_2
perf_event_attr__bindgen_ty_3
perf_event_attr__bindgen_ty_4
perf_event_mmap_page__bindgen_ty_1
perf_mem_data_src