Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ fn generate_bindings(src_dir: path::PathBuf) {
.allowlist_function("btf_.+")
.allowlist_function("libbpf_.+")
.allowlist_function("perf_.+")
.allowlist_function("ring__.+")
.allowlist_function("ring_buffer_.+")
.allowlist_function("user_ring_buffer_.+")
.allowlist_function("vdprintf")
Expand Down
21 changes: 21 additions & 0 deletions src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8760,6 +8760,27 @@ unsafe extern "C" {
unsafe extern "C" {
pub fn ring_buffer__ring(rb: *mut ring_buffer, idx: ::std::os::raw::c_uint) -> *mut ring;
}
unsafe extern "C" {
pub fn ring__consumer_pos(r: *const ring) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn ring__producer_pos(r: *const ring) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn ring__avail_data_size(r: *const ring) -> size_t;
}
unsafe extern "C" {
pub fn ring__size(r: *const ring) -> size_t;
}
unsafe extern "C" {
pub fn ring__map_fd(r: *const ring) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ring__consume(r: *mut ring) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ring__consume_n(r: *mut ring, n: size_t) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct user_ring_buffer_opts {
Expand Down