libbpf_sys

Function perf_buffer__new

Source
pub unsafe extern "C" fn perf_buffer__new(
    map_fd: c_int,
    page_cnt: size_t,
    sample_cb: perf_buffer_sample_fn,
    lost_cb: perf_buffer_lost_fn,
    ctx: *mut c_void,
    opts: *const perf_buffer_opts,
) -> *mut perf_buffer