mirror of https://github.com/aya-rs/aya
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2149 lines
70 KiB
Rust
2149 lines
70 KiB
Rust
4 years ago
|
use super::bindings::*;
|
||
|
pub unsafe fn bpf_map_lookup_elem(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> *mut ::aya_ebpf_cty::c_void {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> *mut ::aya_ebpf_cty::c_void = ::core::mem::transmute(1usize);
|
||
4 years ago
|
fun(map, key)
|
||
|
}
|
||
|
pub unsafe fn bpf_map_update_elem(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *const ::aya_ebpf_cty::c_void,
|
||
|
value: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *const ::aya_ebpf_cty::c_void,
|
||
|
value: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(2usize);
|
||
4 years ago
|
fun(map, key, value, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_map_delete_elem(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(3usize);
|
||
4 years ago
|
fun(map, key)
|
||
|
}
|
||
|
pub unsafe fn bpf_probe_read(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
unsafe_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
unsafe_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(4usize);
|
||
4 years ago
|
fun(dst, size, unsafe_ptr)
|
||
|
}
|
||
|
pub unsafe fn bpf_ktime_get_ns() -> __u64 {
|
||
|
let fun: unsafe extern "C" fn() -> __u64 = ::core::mem::transmute(5usize);
|
||
|
fun()
|
||
|
}
|
||
|
pub unsafe fn bpf_get_prandom_u32() -> __u32 {
|
||
|
let fun: unsafe extern "C" fn() -> __u32 = ::core::mem::transmute(7usize);
|
||
|
fun()
|
||
|
}
|
||
|
pub unsafe fn bpf_get_smp_processor_id() -> __u32 {
|
||
|
let fun: unsafe extern "C" fn() -> __u32 = ::core::mem::transmute(8usize);
|
||
|
fun()
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_store_bytes(
|
||
|
skb: *mut __sk_buff,
|
||
|
offset: __u32,
|
||
11 months ago
|
from: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
offset: __u32,
|
||
11 months ago
|
from: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(9usize);
|
||
4 years ago
|
fun(skb, offset, from, len, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_l3_csum_replace(
|
||
|
skb: *mut __sk_buff,
|
||
|
offset: __u32,
|
||
|
from: __u64,
|
||
|
to: __u64,
|
||
|
size: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
offset: __u32,
|
||
|
from: __u64,
|
||
|
to: __u64,
|
||
|
size: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(10usize);
|
||
4 years ago
|
fun(skb, offset, from, to, size)
|
||
|
}
|
||
|
pub unsafe fn bpf_l4_csum_replace(
|
||
|
skb: *mut __sk_buff,
|
||
|
offset: __u32,
|
||
|
from: __u64,
|
||
|
to: __u64,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
offset: __u32,
|
||
|
from: __u64,
|
||
|
to: __u64,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(11usize);
|
||
4 years ago
|
fun(skb, offset, from, to, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_tail_call(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
prog_array_map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
index: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
prog_array_map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
index: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(12usize);
|
||
4 years ago
|
fun(ctx, prog_array_map, index)
|
||
|
}
|
||
|
pub unsafe fn bpf_clone_redirect(
|
||
|
skb: *mut __sk_buff,
|
||
|
ifindex: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
ifindex: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(13usize);
|
||
4 years ago
|
fun(skb, ifindex, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_current_pid_tgid() -> __u64 {
|
||
|
let fun: unsafe extern "C" fn() -> __u64 = ::core::mem::transmute(14usize);
|
||
|
fun()
|
||
|
}
|
||
|
pub unsafe fn bpf_get_current_uid_gid() -> __u64 {
|
||
|
let fun: unsafe extern "C" fn() -> __u64 = ::core::mem::transmute(15usize);
|
||
|
fun()
|
||
|
}
|
||
|
pub unsafe fn bpf_get_current_comm(
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size_of_buf: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size_of_buf: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(16usize);
|
||
4 years ago
|
fun(buf, size_of_buf)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_cgroup_classid(skb: *mut __sk_buff) -> __u32 {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff) -> __u32 = ::core::mem::transmute(17usize);
|
||
|
fun(skb)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_vlan_push(
|
||
|
skb: *mut __sk_buff,
|
||
|
vlan_proto: __be16,
|
||
|
vlan_tci: __u16,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
vlan_proto: __be16,
|
||
|
vlan_tci: __u16,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(18usize);
|
||
4 years ago
|
fun(skb, vlan_proto, vlan_tci)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_skb_vlan_pop(skb: *mut __sk_buff) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(19usize);
|
||
|
fun(skb)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_get_tunnel_key(
|
||
|
skb: *mut __sk_buff,
|
||
|
key: *mut bpf_tunnel_key,
|
||
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
key: *mut bpf_tunnel_key,
|
||
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(20usize);
|
||
4 years ago
|
fun(skb, key, size, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_set_tunnel_key(
|
||
|
skb: *mut __sk_buff,
|
||
|
key: *mut bpf_tunnel_key,
|
||
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
key: *mut bpf_tunnel_key,
|
||
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(21usize);
|
||
4 years ago
|
fun(skb, key, size, flags)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_perf_event_read(map: *mut ::aya_ebpf_cty::c_void, flags: __u64) -> __u64 {
|
||
|
let fun: unsafe extern "C" fn(map: *mut ::aya_ebpf_cty::c_void, flags: __u64) -> __u64 =
|
||
4 years ago
|
::core::mem::transmute(22usize);
|
||
|
fun(map, flags)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_redirect(ifindex: __u32, flags: __u64) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(ifindex: __u32, flags: __u64) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(23usize);
|
||
|
fun(ifindex, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_route_realm(skb: *mut __sk_buff) -> __u32 {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff) -> __u32 = ::core::mem::transmute(24usize);
|
||
|
fun(skb)
|
||
|
}
|
||
|
pub unsafe fn bpf_perf_event_output(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
data: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
data: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(25usize);
|
||
4 years ago
|
fun(ctx, map, flags, data, size)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_load_bytes(
|
||
11 months ago
|
skb: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
offset: __u32,
|
||
11 months ago
|
to: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
skb: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
offset: __u32,
|
||
11 months ago
|
to: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(26usize);
|
||
4 years ago
|
fun(skb, offset, to, len)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_stackid(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(27usize);
|
||
4 years ago
|
fun(ctx, map, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_csum_diff(
|
||
|
from: *mut __be32,
|
||
|
from_size: __u32,
|
||
|
to: *mut __be32,
|
||
|
to_size: __u32,
|
||
|
seed: __wsum,
|
||
|
) -> __s64 {
|
||
|
let fun: unsafe extern "C" fn(
|
||
|
from: *mut __be32,
|
||
|
from_size: __u32,
|
||
|
to: *mut __be32,
|
||
|
to_size: __u32,
|
||
|
seed: __wsum,
|
||
|
) -> __s64 = ::core::mem::transmute(28usize);
|
||
|
fun(from, from_size, to, to_size, seed)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_get_tunnel_opt(
|
||
|
skb: *mut __sk_buff,
|
||
11 months ago
|
opt: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
11 months ago
|
opt: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(29usize);
|
||
4 years ago
|
fun(skb, opt, size)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_set_tunnel_opt(
|
||
|
skb: *mut __sk_buff,
|
||
11 months ago
|
opt: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
11 months ago
|
opt: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(30usize);
|
||
4 years ago
|
fun(skb, opt, size)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_change_proto(
|
||
|
skb: *mut __sk_buff,
|
||
|
proto: __be16,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
proto: __be16,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(31usize);
|
||
4 years ago
|
fun(skb, proto, flags)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_skb_change_type(skb: *mut __sk_buff, type_: __u32) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff, type_: __u32) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(32usize);
|
||
|
fun(skb, type_)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_under_cgroup(
|
||
|
skb: *mut __sk_buff,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
index: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
index: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(33usize);
|
||
4 years ago
|
fun(skb, map, index)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_hash_recalc(skb: *mut __sk_buff) -> __u32 {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff) -> __u32 = ::core::mem::transmute(34usize);
|
||
|
fun(skb)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_current_task() -> __u64 {
|
||
|
let fun: unsafe extern "C" fn() -> __u64 = ::core::mem::transmute(35usize);
|
||
|
fun()
|
||
|
}
|
||
|
pub unsafe fn bpf_probe_write_user(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
|
src: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
|
src: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(36usize);
|
||
4 years ago
|
fun(dst, src, len)
|
||
|
}
|
||
|
pub unsafe fn bpf_current_task_under_cgroup(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
index: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
index: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(37usize);
|
||
4 years ago
|
fun(map, index)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_change_tail(
|
||
|
skb: *mut __sk_buff,
|
||
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(38usize);
|
||
4 years ago
|
fun(skb, len, flags)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_skb_pull_data(skb: *mut __sk_buff, len: __u32) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff, len: __u32) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(39usize);
|
||
|
fun(skb, len)
|
||
|
}
|
||
|
pub unsafe fn bpf_csum_update(skb: *mut __sk_buff, csum: __wsum) -> __s64 {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff, csum: __wsum) -> __s64 =
|
||
|
::core::mem::transmute(40usize);
|
||
|
fun(skb, csum)
|
||
|
}
|
||
|
pub unsafe fn bpf_set_hash_invalid(skb: *mut __sk_buff) {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff) = ::core::mem::transmute(41usize);
|
||
|
fun(skb)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_get_numa_node_id() -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn() -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(42usize);
|
||
4 years ago
|
fun()
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_change_head(
|
||
|
skb: *mut __sk_buff,
|
||
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(43usize);
|
||
4 years ago
|
fun(skb, len, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_xdp_adjust_head(
|
||
|
xdp_md: *mut xdp_md,
|
||
11 months ago
|
delta: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
xdp_md: *mut xdp_md,
|
||
11 months ago
|
delta: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(44usize);
|
||
4 years ago
|
fun(xdp_md, delta)
|
||
|
}
|
||
|
pub unsafe fn bpf_probe_read_str(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
unsafe_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
unsafe_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(45usize);
|
||
4 years ago
|
fun(dst, size, unsafe_ptr)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_get_socket_cookie(ctx: *mut ::aya_ebpf_cty::c_void) -> __u64 {
|
||
|
let fun: unsafe extern "C" fn(ctx: *mut ::aya_ebpf_cty::c_void) -> __u64 =
|
||
4 years ago
|
::core::mem::transmute(46usize);
|
||
|
fun(ctx)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_socket_uid(skb: *mut __sk_buff) -> __u32 {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff) -> __u32 = ::core::mem::transmute(47usize);
|
||
|
fun(skb)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_set_hash(skb: *mut __sk_buff, hash: __u32) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff, hash: __u32) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(48usize);
|
||
|
fun(skb, hash)
|
||
|
}
|
||
|
pub unsafe fn bpf_setsockopt(
|
||
11 months ago
|
bpf_socket: *mut ::aya_ebpf_cty::c_void,
|
||
|
level: ::aya_ebpf_cty::c_int,
|
||
|
optname: ::aya_ebpf_cty::c_int,
|
||
|
optval: *mut ::aya_ebpf_cty::c_void,
|
||
|
optlen: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(
|
||
|
bpf_socket: *mut ::aya_ebpf_cty::c_void,
|
||
|
level: ::aya_ebpf_cty::c_int,
|
||
|
optname: ::aya_ebpf_cty::c_int,
|
||
|
optval: *mut ::aya_ebpf_cty::c_void,
|
||
|
optlen: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(49usize);
|
||
4 years ago
|
fun(bpf_socket, level, optname, optval, optlen)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_adjust_room(
|
||
|
skb: *mut __sk_buff,
|
||
|
len_diff: __s32,
|
||
|
mode: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
len_diff: __s32,
|
||
|
mode: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(50usize);
|
||
4 years ago
|
fun(skb, len_diff, mode, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_redirect_map(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
key: __u64,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
key: __u64,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(51usize);
|
||
4 years ago
|
fun(map, key, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_sk_redirect_map(
|
||
|
skb: *mut __sk_buff,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
key: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
key: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(52usize);
|
||
4 years ago
|
fun(skb, map, key, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_sock_map_update(
|
||
|
skops: *mut bpf_sock_ops,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skops: *mut bpf_sock_ops,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(53usize);
|
||
4 years ago
|
fun(skops, map, key, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_xdp_adjust_meta(
|
||
|
xdp_md: *mut xdp_md,
|
||
11 months ago
|
delta: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
xdp_md: *mut xdp_md,
|
||
11 months ago
|
delta: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(54usize);
|
||
4 years ago
|
fun(xdp_md, delta)
|
||
|
}
|
||
|
pub unsafe fn bpf_perf_event_read_value(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
|
buf: *mut bpf_perf_event_value,
|
||
|
buf_size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
|
buf: *mut bpf_perf_event_value,
|
||
|
buf_size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(55usize);
|
||
4 years ago
|
fun(map, flags, buf, buf_size)
|
||
|
}
|
||
|
pub unsafe fn bpf_perf_prog_read_value(
|
||
|
ctx: *mut bpf_perf_event_data,
|
||
|
buf: *mut bpf_perf_event_value,
|
||
|
buf_size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
ctx: *mut bpf_perf_event_data,
|
||
|
buf: *mut bpf_perf_event_value,
|
||
|
buf_size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(56usize);
|
||
4 years ago
|
fun(ctx, buf, buf_size)
|
||
|
}
|
||
|
pub unsafe fn bpf_getsockopt(
|
||
11 months ago
|
bpf_socket: *mut ::aya_ebpf_cty::c_void,
|
||
|
level: ::aya_ebpf_cty::c_int,
|
||
|
optname: ::aya_ebpf_cty::c_int,
|
||
|
optval: *mut ::aya_ebpf_cty::c_void,
|
||
|
optlen: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(
|
||
|
bpf_socket: *mut ::aya_ebpf_cty::c_void,
|
||
|
level: ::aya_ebpf_cty::c_int,
|
||
|
optname: ::aya_ebpf_cty::c_int,
|
||
|
optval: *mut ::aya_ebpf_cty::c_void,
|
||
|
optlen: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(57usize);
|
||
4 years ago
|
fun(bpf_socket, level, optname, optval, optlen)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_override_return(regs: *mut pt_regs, rc: __u64) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(regs: *mut pt_regs, rc: __u64) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(58usize);
|
||
|
fun(regs, rc)
|
||
|
}
|
||
|
pub unsafe fn bpf_sock_ops_cb_flags_set(
|
||
|
bpf_sock: *mut bpf_sock_ops,
|
||
11 months ago
|
argval: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
bpf_sock: *mut bpf_sock_ops,
|
||
11 months ago
|
argval: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(59usize);
|
||
4 years ago
|
fun(bpf_sock, argval)
|
||
|
}
|
||
|
pub unsafe fn bpf_msg_redirect_map(
|
||
|
msg: *mut sk_msg_md,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
key: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
msg: *mut sk_msg_md,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
key: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(60usize);
|
||
4 years ago
|
fun(msg, map, key, flags)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_msg_apply_bytes(msg: *mut sk_msg_md, bytes: __u32) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(msg: *mut sk_msg_md, bytes: __u32) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(61usize);
|
||
|
fun(msg, bytes)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_msg_cork_bytes(msg: *mut sk_msg_md, bytes: __u32) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(msg: *mut sk_msg_md, bytes: __u32) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(62usize);
|
||
|
fun(msg, bytes)
|
||
|
}
|
||
|
pub unsafe fn bpf_msg_pull_data(
|
||
|
msg: *mut sk_msg_md,
|
||
|
start: __u32,
|
||
|
end: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
msg: *mut sk_msg_md,
|
||
|
start: __u32,
|
||
|
end: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(63usize);
|
||
4 years ago
|
fun(msg, start, end, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_bind(
|
||
|
ctx: *mut bpf_sock_addr,
|
||
|
addr: *mut sockaddr,
|
||
11 months ago
|
addr_len: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
ctx: *mut bpf_sock_addr,
|
||
|
addr: *mut sockaddr,
|
||
11 months ago
|
addr_len: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(64usize);
|
||
4 years ago
|
fun(ctx, addr, addr_len)
|
||
|
}
|
||
|
pub unsafe fn bpf_xdp_adjust_tail(
|
||
|
xdp_md: *mut xdp_md,
|
||
11 months ago
|
delta: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
xdp_md: *mut xdp_md,
|
||
11 months ago
|
delta: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(65usize);
|
||
4 years ago
|
fun(xdp_md, delta)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_get_xfrm_state(
|
||
|
skb: *mut __sk_buff,
|
||
|
index: __u32,
|
||
|
xfrm_state: *mut bpf_xfrm_state,
|
||
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
index: __u32,
|
||
|
xfrm_state: *mut bpf_xfrm_state,
|
||
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(66usize);
|
||
4 years ago
|
fun(skb, index, xfrm_state, size, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_stack(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
buf: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
buf: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(67usize);
|
||
4 years ago
|
fun(ctx, buf, size, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_load_bytes_relative(
|
||
11 months ago
|
skb: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
offset: __u32,
|
||
11 months ago
|
to: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
|
start_header: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
skb: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
offset: __u32,
|
||
11 months ago
|
to: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
|
start_header: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(68usize);
|
||
4 years ago
|
fun(skb, offset, to, len, start_header)
|
||
|
}
|
||
|
pub unsafe fn bpf_fib_lookup(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
params: *mut bpf_fib_lookup,
|
||
11 months ago
|
plen: ::aya_ebpf_cty::c_int,
|
||
4 years ago
|
flags: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
params: *mut bpf_fib_lookup,
|
||
11 months ago
|
plen: ::aya_ebpf_cty::c_int,
|
||
4 years ago
|
flags: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(69usize);
|
||
4 years ago
|
fun(ctx, params, plen, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_sock_hash_update(
|
||
|
skops: *mut bpf_sock_ops,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skops: *mut bpf_sock_ops,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(70usize);
|
||
4 years ago
|
fun(skops, map, key, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_msg_redirect_hash(
|
||
|
msg: *mut sk_msg_md,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
msg: *mut sk_msg_md,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(71usize);
|
||
4 years ago
|
fun(msg, map, key, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_sk_redirect_hash(
|
||
|
skb: *mut __sk_buff,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(72usize);
|
||
4 years ago
|
fun(skb, map, key, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_lwt_push_encap(
|
||
|
skb: *mut __sk_buff,
|
||
|
type_: __u32,
|
||
11 months ago
|
hdr: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
type_: __u32,
|
||
11 months ago
|
hdr: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(73usize);
|
||
4 years ago
|
fun(skb, type_, hdr, len)
|
||
|
}
|
||
|
pub unsafe fn bpf_lwt_seg6_store_bytes(
|
||
|
skb: *mut __sk_buff,
|
||
|
offset: __u32,
|
||
11 months ago
|
from: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
offset: __u32,
|
||
11 months ago
|
from: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(74usize);
|
||
4 years ago
|
fun(skb, offset, from, len)
|
||
|
}
|
||
|
pub unsafe fn bpf_lwt_seg6_adjust_srh(
|
||
|
skb: *mut __sk_buff,
|
||
|
offset: __u32,
|
||
|
delta: __s32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
offset: __u32,
|
||
|
delta: __s32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(75usize);
|
||
4 years ago
|
fun(skb, offset, delta)
|
||
|
}
|
||
|
pub unsafe fn bpf_lwt_seg6_action(
|
||
|
skb: *mut __sk_buff,
|
||
|
action: __u32,
|
||
11 months ago
|
param: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
param_len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
action: __u32,
|
||
11 months ago
|
param: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
param_len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(76usize);
|
||
4 years ago
|
fun(skb, action, param, param_len)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_rc_repeat(ctx: *mut ::aya_ebpf_cty::c_void) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(ctx: *mut ::aya_ebpf_cty::c_void) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(77usize);
|
||
|
fun(ctx)
|
||
|
}
|
||
|
pub unsafe fn bpf_rc_keydown(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
protocol: __u32,
|
||
|
scancode: __u64,
|
||
|
toggle: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
protocol: __u32,
|
||
|
scancode: __u64,
|
||
|
toggle: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(78usize);
|
||
4 years ago
|
fun(ctx, protocol, scancode, toggle)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_cgroup_id(skb: *mut __sk_buff) -> __u64 {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff) -> __u64 = ::core::mem::transmute(79usize);
|
||
|
fun(skb)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_current_cgroup_id() -> __u64 {
|
||
|
let fun: unsafe extern "C" fn() -> __u64 = ::core::mem::transmute(80usize);
|
||
|
fun()
|
||
|
}
|
||
|
pub unsafe fn bpf_get_local_storage(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void = ::core::mem::transmute(81usize);
|
||
4 years ago
|
fun(map, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_sk_select_reuseport(
|
||
|
reuse: *mut sk_reuseport_md,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
reuse: *mut sk_reuseport_md,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(82usize);
|
||
4 years ago
|
fun(reuse, map, key, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_ancestor_cgroup_id(
|
||
|
skb: *mut __sk_buff,
|
||
11 months ago
|
ancestor_level: ::aya_ebpf_cty::c_int,
|
||
4 years ago
|
) -> __u64 {
|
||
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
11 months ago
|
ancestor_level: ::aya_ebpf_cty::c_int,
|
||
4 years ago
|
) -> __u64 = ::core::mem::transmute(83usize);
|
||
|
fun(skb, ancestor_level)
|
||
|
}
|
||
|
pub unsafe fn bpf_sk_lookup_tcp(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
tuple: *mut bpf_sock_tuple,
|
||
|
tuple_size: __u32,
|
||
|
netns: __u64,
|
||
|
flags: __u64,
|
||
|
) -> *mut bpf_sock {
|
||
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
tuple: *mut bpf_sock_tuple,
|
||
|
tuple_size: __u32,
|
||
|
netns: __u64,
|
||
|
flags: __u64,
|
||
|
) -> *mut bpf_sock = ::core::mem::transmute(84usize);
|
||
|
fun(ctx, tuple, tuple_size, netns, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_sk_lookup_udp(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
tuple: *mut bpf_sock_tuple,
|
||
|
tuple_size: __u32,
|
||
|
netns: __u64,
|
||
|
flags: __u64,
|
||
|
) -> *mut bpf_sock {
|
||
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
tuple: *mut bpf_sock_tuple,
|
||
|
tuple_size: __u32,
|
||
|
netns: __u64,
|
||
|
flags: __u64,
|
||
|
) -> *mut bpf_sock = ::core::mem::transmute(85usize);
|
||
|
fun(ctx, tuple, tuple_size, netns, flags)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_sk_release(sock: *mut ::aya_ebpf_cty::c_void) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(sock: *mut ::aya_ebpf_cty::c_void) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(86usize);
|
||
|
fun(sock)
|
||
|
}
|
||
|
pub unsafe fn bpf_map_push_elem(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
value: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
value: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(87usize);
|
||
4 years ago
|
fun(map, value, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_map_pop_elem(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
value: *mut ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
value: *mut ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(88usize);
|
||
4 years ago
|
fun(map, value)
|
||
|
}
|
||
|
pub unsafe fn bpf_map_peek_elem(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
value: *mut ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
value: *mut ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(89usize);
|
||
4 years ago
|
fun(map, value)
|
||
|
}
|
||
|
pub unsafe fn bpf_msg_push_data(
|
||
|
msg: *mut sk_msg_md,
|
||
|
start: __u32,
|
||
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
msg: *mut sk_msg_md,
|
||
|
start: __u32,
|
||
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(90usize);
|
||
4 years ago
|
fun(msg, start, len, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_msg_pop_data(
|
||
|
msg: *mut sk_msg_md,
|
||
|
start: __u32,
|
||
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
msg: *mut sk_msg_md,
|
||
|
start: __u32,
|
||
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(91usize);
|
||
4 years ago
|
fun(msg, start, len, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_rc_pointer_rel(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
rel_x: __s32,
|
||
|
rel_y: __s32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
rel_x: __s32,
|
||
|
rel_y: __s32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(92usize);
|
||
4 years ago
|
fun(ctx, rel_x, rel_y)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_spin_lock(lock: *mut bpf_spin_lock) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(lock: *mut bpf_spin_lock) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(93usize);
|
||
|
fun(lock)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_spin_unlock(lock: *mut bpf_spin_lock) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(lock: *mut bpf_spin_lock) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(94usize);
|
||
|
fun(lock)
|
||
|
}
|
||
|
pub unsafe fn bpf_sk_fullsock(sk: *mut bpf_sock) -> *mut bpf_sock {
|
||
|
let fun: unsafe extern "C" fn(sk: *mut bpf_sock) -> *mut bpf_sock =
|
||
|
::core::mem::transmute(95usize);
|
||
|
fun(sk)
|
||
|
}
|
||
|
pub unsafe fn bpf_tcp_sock(sk: *mut bpf_sock) -> *mut bpf_tcp_sock {
|
||
|
let fun: unsafe extern "C" fn(sk: *mut bpf_sock) -> *mut bpf_tcp_sock =
|
||
|
::core::mem::transmute(96usize);
|
||
|
fun(sk)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_skb_ecn_set_ce(skb: *mut __sk_buff) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(97usize);
|
||
|
fun(skb)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_listener_sock(sk: *mut bpf_sock) -> *mut bpf_sock {
|
||
|
let fun: unsafe extern "C" fn(sk: *mut bpf_sock) -> *mut bpf_sock =
|
||
|
::core::mem::transmute(98usize);
|
||
|
fun(sk)
|
||
|
}
|
||
|
pub unsafe fn bpf_skc_lookup_tcp(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
tuple: *mut bpf_sock_tuple,
|
||
|
tuple_size: __u32,
|
||
|
netns: __u64,
|
||
|
flags: __u64,
|
||
|
) -> *mut bpf_sock {
|
||
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
tuple: *mut bpf_sock_tuple,
|
||
|
tuple_size: __u32,
|
||
|
netns: __u64,
|
||
|
flags: __u64,
|
||
|
) -> *mut bpf_sock = ::core::mem::transmute(99usize);
|
||
|
fun(ctx, tuple, tuple_size, netns, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_tcp_check_syncookie(
|
||
11 months ago
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
|
iph: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
iph_len: __u32,
|
||
|
th: *mut tcphdr,
|
||
|
th_len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
|
iph: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
iph_len: __u32,
|
||
|
th: *mut tcphdr,
|
||
|
th_len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(100usize);
|
||
4 years ago
|
fun(sk, iph, iph_len, th, th_len)
|
||
|
}
|
||
|
pub unsafe fn bpf_sysctl_get_name(
|
||
|
ctx: *mut bpf_sysctl,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_char,
|
||
|
buf_len: ::aya_ebpf_cty::c_ulong,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
ctx: *mut bpf_sysctl,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_char,
|
||
|
buf_len: ::aya_ebpf_cty::c_ulong,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(101usize);
|
||
4 years ago
|
fun(ctx, buf, buf_len, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_sysctl_get_current_value(
|
||
|
ctx: *mut bpf_sysctl,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_char,
|
||
|
buf_len: ::aya_ebpf_cty::c_ulong,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
ctx: *mut bpf_sysctl,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_char,
|
||
|
buf_len: ::aya_ebpf_cty::c_ulong,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(102usize);
|
||
4 years ago
|
fun(ctx, buf, buf_len)
|
||
|
}
|
||
|
pub unsafe fn bpf_sysctl_get_new_value(
|
||
|
ctx: *mut bpf_sysctl,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_char,
|
||
|
buf_len: ::aya_ebpf_cty::c_ulong,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
ctx: *mut bpf_sysctl,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_char,
|
||
|
buf_len: ::aya_ebpf_cty::c_ulong,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(103usize);
|
||
4 years ago
|
fun(ctx, buf, buf_len)
|
||
|
}
|
||
|
pub unsafe fn bpf_sysctl_set_new_value(
|
||
|
ctx: *mut bpf_sysctl,
|
||
11 months ago
|
buf: *const ::aya_ebpf_cty::c_char,
|
||
|
buf_len: ::aya_ebpf_cty::c_ulong,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
ctx: *mut bpf_sysctl,
|
||
11 months ago
|
buf: *const ::aya_ebpf_cty::c_char,
|
||
|
buf_len: ::aya_ebpf_cty::c_ulong,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(104usize);
|
||
4 years ago
|
fun(ctx, buf, buf_len)
|
||
|
}
|
||
|
pub unsafe fn bpf_strtol(
|
||
11 months ago
|
buf: *const ::aya_ebpf_cty::c_char,
|
||
|
buf_len: ::aya_ebpf_cty::c_ulong,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
res: *mut ::aya_ebpf_cty::c_long,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
buf: *const ::aya_ebpf_cty::c_char,
|
||
|
buf_len: ::aya_ebpf_cty::c_ulong,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
res: *mut ::aya_ebpf_cty::c_long,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(105usize);
|
||
4 years ago
|
fun(buf, buf_len, flags, res)
|
||
|
}
|
||
|
pub unsafe fn bpf_strtoul(
|
||
11 months ago
|
buf: *const ::aya_ebpf_cty::c_char,
|
||
|
buf_len: ::aya_ebpf_cty::c_ulong,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
res: *mut ::aya_ebpf_cty::c_ulong,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
buf: *const ::aya_ebpf_cty::c_char,
|
||
|
buf_len: ::aya_ebpf_cty::c_ulong,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
res: *mut ::aya_ebpf_cty::c_ulong,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(106usize);
|
||
4 years ago
|
fun(buf, buf_len, flags, res)
|
||
|
}
|
||
|
pub unsafe fn bpf_sk_storage_get(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
|
value: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
|
value: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void = ::core::mem::transmute(107usize);
|
||
4 years ago
|
fun(map, sk, value, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_sk_storage_delete(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(108usize);
|
||
4 years ago
|
fun(map, sk)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_send_signal(sig: __u32) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(sig: __u32) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(109usize);
|
||
|
fun(sig)
|
||
|
}
|
||
|
pub unsafe fn bpf_tcp_gen_syncookie(
|
||
11 months ago
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
|
iph: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
iph_len: __u32,
|
||
|
th: *mut tcphdr,
|
||
|
th_len: __u32,
|
||
|
) -> __s64 {
|
||
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
|
iph: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
iph_len: __u32,
|
||
|
th: *mut tcphdr,
|
||
|
th_len: __u32,
|
||
|
) -> __s64 = ::core::mem::transmute(110usize);
|
||
|
fun(sk, iph, iph_len, th, th_len)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_output(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
data: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
data: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(111usize);
|
||
4 years ago
|
fun(ctx, map, flags, data, size)
|
||
|
}
|
||
|
pub unsafe fn bpf_probe_read_user(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
unsafe_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
unsafe_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(112usize);
|
||
4 years ago
|
fun(dst, size, unsafe_ptr)
|
||
|
}
|
||
|
pub unsafe fn bpf_probe_read_kernel(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
unsafe_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
unsafe_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(113usize);
|
||
4 years ago
|
fun(dst, size, unsafe_ptr)
|
||
|
}
|
||
|
pub unsafe fn bpf_probe_read_user_str(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
unsafe_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
unsafe_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(114usize);
|
||
4 years ago
|
fun(dst, size, unsafe_ptr)
|
||
|
}
|
||
|
pub unsafe fn bpf_probe_read_kernel_str(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
unsafe_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
unsafe_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(115usize);
|
||
4 years ago
|
fun(dst, size, unsafe_ptr)
|
||
|
}
|
||
|
pub unsafe fn bpf_tcp_send_ack(
|
||
11 months ago
|
tp: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
rcv_nxt: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
tp: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
rcv_nxt: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(116usize);
|
||
4 years ago
|
fun(tp, rcv_nxt)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_send_signal_thread(sig: __u32) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(sig: __u32) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(117usize);
|
||
|
fun(sig)
|
||
|
}
|
||
|
pub unsafe fn bpf_jiffies64() -> __u64 {
|
||
|
let fun: unsafe extern "C" fn() -> __u64 = ::core::mem::transmute(118usize);
|
||
|
fun()
|
||
|
}
|
||
|
pub unsafe fn bpf_read_branch_records(
|
||
|
ctx: *mut bpf_perf_event_data,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
ctx: *mut bpf_perf_event_data,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(119usize);
|
||
4 years ago
|
fun(ctx, buf, size, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_ns_current_pid_tgid(
|
||
|
dev: __u64,
|
||
|
ino: __u64,
|
||
|
nsdata: *mut bpf_pidns_info,
|
||
|
size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
dev: __u64,
|
||
|
ino: __u64,
|
||
|
nsdata: *mut bpf_pidns_info,
|
||
|
size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(120usize);
|
||
4 years ago
|
fun(dev, ino, nsdata, size)
|
||
|
}
|
||
|
pub unsafe fn bpf_xdp_output(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
data: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
data: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(121usize);
|
||
4 years ago
|
fun(ctx, map, flags, data, size)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_get_netns_cookie(ctx: *mut ::aya_ebpf_cty::c_void) -> __u64 {
|
||
|
let fun: unsafe extern "C" fn(ctx: *mut ::aya_ebpf_cty::c_void) -> __u64 =
|
||
4 years ago
|
::core::mem::transmute(122usize);
|
||
|
fun(ctx)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_get_current_ancestor_cgroup_id(ancestor_level: ::aya_ebpf_cty::c_int) -> __u64 {
|
||
|
let fun: unsafe extern "C" fn(ancestor_level: ::aya_ebpf_cty::c_int) -> __u64 =
|
||
4 years ago
|
::core::mem::transmute(123usize);
|
||
|
fun(ancestor_level)
|
||
|
}
|
||
|
pub unsafe fn bpf_sk_assign(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(124usize);
|
||
4 years ago
|
fun(ctx, sk, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_ktime_get_boot_ns() -> __u64 {
|
||
|
let fun: unsafe extern "C" fn() -> __u64 = ::core::mem::transmute(125usize);
|
||
|
fun()
|
||
|
}
|
||
|
pub unsafe fn bpf_seq_printf(
|
||
|
m: *mut seq_file,
|
||
11 months ago
|
fmt: *const ::aya_ebpf_cty::c_char,
|
||
4 years ago
|
fmt_size: __u32,
|
||
11 months ago
|
data: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
data_len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
m: *mut seq_file,
|
||
11 months ago
|
fmt: *const ::aya_ebpf_cty::c_char,
|
||
4 years ago
|
fmt_size: __u32,
|
||
11 months ago
|
data: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
data_len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(126usize);
|
||
4 years ago
|
fun(m, fmt, fmt_size, data, data_len)
|
||
|
}
|
||
|
pub unsafe fn bpf_seq_write(
|
||
|
m: *mut seq_file,
|
||
11 months ago
|
data: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
m: *mut seq_file,
|
||
11 months ago
|
data: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(127usize);
|
||
4 years ago
|
fun(m, data, len)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_sk_cgroup_id(sk: *mut ::aya_ebpf_cty::c_void) -> __u64 {
|
||
|
let fun: unsafe extern "C" fn(sk: *mut ::aya_ebpf_cty::c_void) -> __u64 =
|
||
4 years ago
|
::core::mem::transmute(128usize);
|
||
|
fun(sk)
|
||
|
}
|
||
|
pub unsafe fn bpf_sk_ancestor_cgroup_id(
|
||
11 months ago
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
|
ancestor_level: ::aya_ebpf_cty::c_int,
|
||
4 years ago
|
) -> __u64 {
|
||
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
|
ancestor_level: ::aya_ebpf_cty::c_int,
|
||
4 years ago
|
) -> __u64 = ::core::mem::transmute(129usize);
|
||
|
fun(sk, ancestor_level)
|
||
|
}
|
||
|
pub unsafe fn bpf_ringbuf_output(
|
||
11 months ago
|
ringbuf: *mut ::aya_ebpf_cty::c_void,
|
||
|
data: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u64,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ringbuf: *mut ::aya_ebpf_cty::c_void,
|
||
|
data: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u64,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(130usize);
|
||
4 years ago
|
fun(ringbuf, data, size, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_ringbuf_reserve(
|
||
11 months ago
|
ringbuf: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u64,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ringbuf: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u64,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void = ::core::mem::transmute(131usize);
|
||
4 years ago
|
fun(ringbuf, size, flags)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_ringbuf_submit(data: *mut ::aya_ebpf_cty::c_void, flags: __u64) {
|
||
|
let fun: unsafe extern "C" fn(data: *mut ::aya_ebpf_cty::c_void, flags: __u64) =
|
||
4 years ago
|
::core::mem::transmute(132usize);
|
||
|
fun(data, flags)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_ringbuf_discard(data: *mut ::aya_ebpf_cty::c_void, flags: __u64) {
|
||
|
let fun: unsafe extern "C" fn(data: *mut ::aya_ebpf_cty::c_void, flags: __u64) =
|
||
4 years ago
|
::core::mem::transmute(133usize);
|
||
|
fun(data, flags)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_ringbuf_query(ringbuf: *mut ::aya_ebpf_cty::c_void, flags: __u64) -> __u64 {
|
||
|
let fun: unsafe extern "C" fn(ringbuf: *mut ::aya_ebpf_cty::c_void, flags: __u64) -> __u64 =
|
||
4 years ago
|
::core::mem::transmute(134usize);
|
||
|
fun(ringbuf, flags)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_csum_level(skb: *mut __sk_buff, level: __u64) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff, level: __u64) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(135usize);
|
||
|
fun(skb, level)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_skc_to_tcp6_sock(sk: *mut ::aya_ebpf_cty::c_void) -> *mut tcp6_sock {
|
||
|
let fun: unsafe extern "C" fn(sk: *mut ::aya_ebpf_cty::c_void) -> *mut tcp6_sock =
|
||
4 years ago
|
::core::mem::transmute(136usize);
|
||
|
fun(sk)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_skc_to_tcp_sock(sk: *mut ::aya_ebpf_cty::c_void) -> *mut tcp_sock {
|
||
|
let fun: unsafe extern "C" fn(sk: *mut ::aya_ebpf_cty::c_void) -> *mut tcp_sock =
|
||
4 years ago
|
::core::mem::transmute(137usize);
|
||
|
fun(sk)
|
||
|
}
|
||
|
pub unsafe fn bpf_skc_to_tcp_timewait_sock(
|
||
11 months ago
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
) -> *mut tcp_timewait_sock {
|
||
11 months ago
|
let fun: unsafe extern "C" fn(sk: *mut ::aya_ebpf_cty::c_void) -> *mut tcp_timewait_sock =
|
||
4 years ago
|
::core::mem::transmute(138usize);
|
||
|
fun(sk)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_skc_to_tcp_request_sock(
|
||
|
sk: *mut ::aya_ebpf_cty::c_void,
|
||
|
) -> *mut tcp_request_sock {
|
||
|
let fun: unsafe extern "C" fn(sk: *mut ::aya_ebpf_cty::c_void) -> *mut tcp_request_sock =
|
||
4 years ago
|
::core::mem::transmute(139usize);
|
||
|
fun(sk)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_skc_to_udp6_sock(sk: *mut ::aya_ebpf_cty::c_void) -> *mut udp6_sock {
|
||
|
let fun: unsafe extern "C" fn(sk: *mut ::aya_ebpf_cty::c_void) -> *mut udp6_sock =
|
||
4 years ago
|
::core::mem::transmute(140usize);
|
||
|
fun(sk)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_task_stack(
|
||
|
task: *mut task_struct,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
task: *mut task_struct,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(141usize);
|
||
4 years ago
|
fun(task, buf, size, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_load_hdr_opt(
|
||
|
skops: *mut bpf_sock_ops,
|
||
11 months ago
|
searchby_res: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skops: *mut bpf_sock_ops,
|
||
11 months ago
|
searchby_res: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(142usize);
|
||
4 years ago
|
fun(skops, searchby_res, len, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_store_hdr_opt(
|
||
|
skops: *mut bpf_sock_ops,
|
||
11 months ago
|
from: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skops: *mut bpf_sock_ops,
|
||
11 months ago
|
from: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(143usize);
|
||
4 years ago
|
fun(skops, from, len, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_reserve_hdr_opt(
|
||
|
skops: *mut bpf_sock_ops,
|
||
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skops: *mut bpf_sock_ops,
|
||
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(144usize);
|
||
4 years ago
|
fun(skops, len, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_inode_storage_get(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
inode: *mut ::aya_ebpf_cty::c_void,
|
||
|
value: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
inode: *mut ::aya_ebpf_cty::c_void,
|
||
|
value: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void = ::core::mem::transmute(145usize);
|
||
4 years ago
|
fun(map, inode, value, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_inode_storage_delete(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
inode: *mut ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_int {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
inode: *mut ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_int = ::core::mem::transmute(146usize);
|
||
4 years ago
|
fun(map, inode)
|
||
|
}
|
||
|
pub unsafe fn bpf_d_path(
|
||
|
path: *mut path,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_char,
|
||
4 years ago
|
sz: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
path: *mut path,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_char,
|
||
4 years ago
|
sz: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(147usize);
|
||
4 years ago
|
fun(path, buf, sz)
|
||
|
}
|
||
|
pub unsafe fn bpf_copy_from_user(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
user_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
user_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(148usize);
|
||
4 years ago
|
fun(dst, size, user_ptr)
|
||
|
}
|
||
|
pub unsafe fn bpf_snprintf_btf(
|
||
11 months ago
|
str_: *mut ::aya_ebpf_cty::c_char,
|
||
4 years ago
|
str_size: __u32,
|
||
|
ptr: *mut btf_ptr,
|
||
|
btf_ptr_size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
str_: *mut ::aya_ebpf_cty::c_char,
|
||
4 years ago
|
str_size: __u32,
|
||
|
ptr: *mut btf_ptr,
|
||
|
btf_ptr_size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(149usize);
|
||
4 years ago
|
fun(str_, str_size, ptr, btf_ptr_size, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_seq_printf_btf(
|
||
|
m: *mut seq_file,
|
||
|
ptr: *mut btf_ptr,
|
||
|
ptr_size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
m: *mut seq_file,
|
||
|
ptr: *mut btf_ptr,
|
||
|
ptr_size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(150usize);
|
||
4 years ago
|
fun(m, ptr, ptr_size, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_cgroup_classid(skb: *mut __sk_buff) -> __u64 {
|
||
|
let fun: unsafe extern "C" fn(skb: *mut __sk_buff) -> __u64 = ::core::mem::transmute(151usize);
|
||
|
fun(skb)
|
||
|
}
|
||
|
pub unsafe fn bpf_redirect_neigh(
|
||
|
ifindex: __u32,
|
||
|
params: *mut bpf_redir_neigh,
|
||
11 months ago
|
plen: ::aya_ebpf_cty::c_int,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
ifindex: __u32,
|
||
|
params: *mut bpf_redir_neigh,
|
||
11 months ago
|
plen: ::aya_ebpf_cty::c_int,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(152usize);
|
||
4 years ago
|
fun(ifindex, params, plen, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_per_cpu_ptr(
|
||
11 months ago
|
percpu_ptr: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
cpu: __u32,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
percpu_ptr: *const ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
cpu: __u32,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void = ::core::mem::transmute(153usize);
|
||
4 years ago
|
fun(percpu_ptr, cpu)
|
||
|
}
|
||
|
pub unsafe fn bpf_this_cpu_ptr(
|
||
11 months ago
|
percpu_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> *mut ::aya_ebpf_cty::c_void {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
percpu_ptr: *const ::aya_ebpf_cty::c_void,
|
||
|
) -> *mut ::aya_ebpf_cty::c_void = ::core::mem::transmute(154usize);
|
||
4 years ago
|
fun(percpu_ptr)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_redirect_peer(ifindex: __u32, flags: __u64) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(ifindex: __u32, flags: __u64) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(155usize);
|
||
|
fun(ifindex, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_task_storage_get(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
task: *mut task_struct,
|
||
11 months ago
|
value: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
task: *mut task_struct,
|
||
11 months ago
|
value: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void = ::core::mem::transmute(156usize);
|
||
4 years ago
|
fun(map, task, value, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_task_storage_delete(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
task: *mut task_struct,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
task: *mut task_struct,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(157usize);
|
||
4 years ago
|
fun(map, task)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_current_task_btf() -> *mut task_struct {
|
||
|
let fun: unsafe extern "C" fn() -> *mut task_struct = ::core::mem::transmute(158usize);
|
||
|
fun()
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_bprm_opts_set(bprm: *mut linux_binprm, flags: __u64) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(bprm: *mut linux_binprm, flags: __u64) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(159usize);
|
||
|
fun(bprm, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_ktime_get_coarse_ns() -> __u64 {
|
||
|
let fun: unsafe extern "C" fn() -> __u64 = ::core::mem::transmute(160usize);
|
||
|
fun()
|
||
|
}
|
||
|
pub unsafe fn bpf_ima_inode_hash(
|
||
|
inode: *mut inode,
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
inode: *mut inode,
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(161usize);
|
||
4 years ago
|
fun(inode, dst, size)
|
||
|
}
|
||
|
pub unsafe fn bpf_sock_from_file(file: *mut file) -> *mut socket {
|
||
|
let fun: unsafe extern "C" fn(file: *mut file) -> *mut socket =
|
||
|
::core::mem::transmute(162usize);
|
||
|
fun(file)
|
||
|
}
|
||
|
pub unsafe fn bpf_check_mtu(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
ifindex: __u32,
|
||
|
mtu_len: *mut __u32,
|
||
|
len_diff: __s32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
ifindex: __u32,
|
||
|
mtu_len: *mut __u32,
|
||
|
len_diff: __s32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(163usize);
|
||
4 years ago
|
fun(ctx, ifindex, mtu_len, len_diff, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_for_each_map_elem(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
callback_fn: *mut ::aya_ebpf_cty::c_void,
|
||
|
callback_ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
callback_fn: *mut ::aya_ebpf_cty::c_void,
|
||
|
callback_ctx: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(164usize);
|
||
4 years ago
|
fun(map, callback_fn, callback_ctx, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_snprintf(
|
||
11 months ago
|
str_: *mut ::aya_ebpf_cty::c_char,
|
||
4 years ago
|
str_size: __u32,
|
||
11 months ago
|
fmt: *const ::aya_ebpf_cty::c_char,
|
||
4 years ago
|
data: *mut __u64,
|
||
|
data_len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
str_: *mut ::aya_ebpf_cty::c_char,
|
||
4 years ago
|
str_size: __u32,
|
||
11 months ago
|
fmt: *const ::aya_ebpf_cty::c_char,
|
||
4 years ago
|
data: *mut __u64,
|
||
|
data_len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(165usize);
|
||
4 years ago
|
fun(str_, str_size, fmt, data, data_len)
|
||
|
}
|
||
4 years ago
|
pub unsafe fn bpf_sys_bpf(
|
||
|
cmd: __u32,
|
||
11 months ago
|
attr: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
attr_size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
cmd: __u32,
|
||
11 months ago
|
attr: *mut ::aya_ebpf_cty::c_void,
|
||
4 years ago
|
attr_size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(166usize);
|
||
4 years ago
|
fun(cmd, attr, attr_size)
|
||
|
}
|
||
|
pub unsafe fn bpf_btf_find_by_name_kind(
|
||
11 months ago
|
name: *mut ::aya_ebpf_cty::c_char,
|
||
|
name_sz: ::aya_ebpf_cty::c_int,
|
||
4 years ago
|
kind: __u32,
|
||
11 months ago
|
flags: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
4 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
name: *mut ::aya_ebpf_cty::c_char,
|
||
|
name_sz: ::aya_ebpf_cty::c_int,
|
||
4 years ago
|
kind: __u32,
|
||
11 months ago
|
flags: ::aya_ebpf_cty::c_int,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(167usize);
|
||
4 years ago
|
fun(name, name_sz, kind, flags)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_sys_close(fd: __u32) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(fd: __u32) -> ::aya_ebpf_cty::c_long =
|
||
4 years ago
|
::core::mem::transmute(168usize);
|
||
|
fun(fd)
|
||
|
}
|
||
3 years ago
|
pub unsafe fn bpf_timer_init(
|
||
|
timer: *mut bpf_timer,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
timer: *mut bpf_timer,
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(169usize);
|
||
3 years ago
|
fun(timer, map, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_timer_set_callback(
|
||
|
timer: *mut bpf_timer,
|
||
11 months ago
|
callback_fn: *mut ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
timer: *mut bpf_timer,
|
||
11 months ago
|
callback_fn: *mut ::aya_ebpf_cty::c_void,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(170usize);
|
||
3 years ago
|
fun(timer, callback_fn)
|
||
|
}
|
||
|
pub unsafe fn bpf_timer_start(
|
||
|
timer: *mut bpf_timer,
|
||
|
nsecs: __u64,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
timer: *mut bpf_timer,
|
||
|
nsecs: __u64,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(171usize);
|
||
3 years ago
|
fun(timer, nsecs, flags)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_timer_cancel(timer: *mut bpf_timer) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(timer: *mut bpf_timer) -> ::aya_ebpf_cty::c_long =
|
||
3 years ago
|
::core::mem::transmute(172usize);
|
||
|
fun(timer)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_get_func_ip(ctx: *mut ::aya_ebpf_cty::c_void) -> __u64 {
|
||
|
let fun: unsafe extern "C" fn(ctx: *mut ::aya_ebpf_cty::c_void) -> __u64 =
|
||
3 years ago
|
::core::mem::transmute(173usize);
|
||
|
fun(ctx)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_get_attach_cookie(ctx: *mut ::aya_ebpf_cty::c_void) -> __u64 {
|
||
|
let fun: unsafe extern "C" fn(ctx: *mut ::aya_ebpf_cty::c_void) -> __u64 =
|
||
3 years ago
|
::core::mem::transmute(174usize);
|
||
|
fun(ctx)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_task_pt_regs(task: *mut task_struct) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(task: *mut task_struct) -> ::aya_ebpf_cty::c_long =
|
||
3 years ago
|
::core::mem::transmute(175usize);
|
||
|
fun(task)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_branch_snapshot(
|
||
11 months ago
|
entries: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
entries: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
size: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(176usize);
|
||
3 years ago
|
fun(entries, size, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_trace_vprintk(
|
||
11 months ago
|
fmt: *const ::aya_ebpf_cty::c_char,
|
||
3 years ago
|
fmt_size: __u32,
|
||
11 months ago
|
data: *const ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
data_len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
fmt: *const ::aya_ebpf_cty::c_char,
|
||
3 years ago
|
fmt_size: __u32,
|
||
11 months ago
|
data: *const ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
data_len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(177usize);
|
||
3 years ago
|
fun(fmt, fmt_size, data, data_len)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_skc_to_unix_sock(sk: *mut ::aya_ebpf_cty::c_void) -> *mut unix_sock {
|
||
|
let fun: unsafe extern "C" fn(sk: *mut ::aya_ebpf_cty::c_void) -> *mut unix_sock =
|
||
3 years ago
|
::core::mem::transmute(178usize);
|
||
|
fun(sk)
|
||
|
}
|
||
|
pub unsafe fn bpf_kallsyms_lookup_name(
|
||
11 months ago
|
name: *const ::aya_ebpf_cty::c_char,
|
||
|
name_sz: ::aya_ebpf_cty::c_int,
|
||
|
flags: ::aya_ebpf_cty::c_int,
|
||
3 years ago
|
res: *mut __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
name: *const ::aya_ebpf_cty::c_char,
|
||
|
name_sz: ::aya_ebpf_cty::c_int,
|
||
|
flags: ::aya_ebpf_cty::c_int,
|
||
3 years ago
|
res: *mut __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(179usize);
|
||
3 years ago
|
fun(name, name_sz, flags, res)
|
||
|
}
|
||
3 years ago
|
pub unsafe fn bpf_find_vma(
|
||
|
task: *mut task_struct,
|
||
|
addr: __u64,
|
||
11 months ago
|
callback_fn: *mut ::aya_ebpf_cty::c_void,
|
||
|
callback_ctx: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
task: *mut task_struct,
|
||
|
addr: __u64,
|
||
11 months ago
|
callback_fn: *mut ::aya_ebpf_cty::c_void,
|
||
|
callback_ctx: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(180usize);
|
||
3 years ago
|
fun(task, addr, callback_fn, callback_ctx, flags)
|
||
|
}
|
||
3 years ago
|
pub unsafe fn bpf_loop(
|
||
|
nr_loops: __u32,
|
||
11 months ago
|
callback_fn: *mut ::aya_ebpf_cty::c_void,
|
||
|
callback_ctx: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
nr_loops: __u32,
|
||
11 months ago
|
callback_fn: *mut ::aya_ebpf_cty::c_void,
|
||
|
callback_ctx: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(181usize);
|
||
3 years ago
|
fun(nr_loops, callback_fn, callback_ctx, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_strncmp(
|
||
11 months ago
|
s1: *const ::aya_ebpf_cty::c_char,
|
||
3 years ago
|
s1_sz: __u32,
|
||
11 months ago
|
s2: *const ::aya_ebpf_cty::c_char,
|
||
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
s1: *const ::aya_ebpf_cty::c_char,
|
||
3 years ago
|
s1_sz: __u32,
|
||
11 months ago
|
s2: *const ::aya_ebpf_cty::c_char,
|
||
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(182usize);
|
||
3 years ago
|
fun(s1, s1_sz, s2)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_func_arg(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
n: __u32,
|
||
|
value: *mut __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
n: __u32,
|
||
|
value: *mut __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(183usize);
|
||
3 years ago
|
fun(ctx, n, value)
|
||
|
}
|
||
|
pub unsafe fn bpf_get_func_ret(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
value: *mut __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
value: *mut __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(184usize);
|
||
3 years ago
|
fun(ctx, value)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_get_func_arg_cnt(ctx: *mut ::aya_ebpf_cty::c_void) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(ctx: *mut ::aya_ebpf_cty::c_void) -> ::aya_ebpf_cty::c_long =
|
||
3 years ago
|
::core::mem::transmute(185usize);
|
||
|
fun(ctx)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_get_retval() -> ::aya_ebpf_cty::c_int {
|
||
|
let fun: unsafe extern "C" fn() -> ::aya_ebpf_cty::c_int = ::core::mem::transmute(186usize);
|
||
3 years ago
|
fun()
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_set_retval(retval: ::aya_ebpf_cty::c_int) -> ::aya_ebpf_cty::c_int {
|
||
|
let fun: unsafe extern "C" fn(retval: ::aya_ebpf_cty::c_int) -> ::aya_ebpf_cty::c_int =
|
||
3 years ago
|
::core::mem::transmute(187usize);
|
||
|
fun(retval)
|
||
|
}
|
||
|
pub unsafe fn bpf_xdp_get_buff_len(xdp_md: *mut xdp_md) -> __u64 {
|
||
|
let fun: unsafe extern "C" fn(xdp_md: *mut xdp_md) -> __u64 = ::core::mem::transmute(188usize);
|
||
|
fun(xdp_md)
|
||
|
}
|
||
|
pub unsafe fn bpf_xdp_load_bytes(
|
||
|
xdp_md: *mut xdp_md,
|
||
|
offset: __u32,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
xdp_md: *mut xdp_md,
|
||
|
offset: __u32,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(189usize);
|
||
3 years ago
|
fun(xdp_md, offset, buf, len)
|
||
|
}
|
||
|
pub unsafe fn bpf_xdp_store_bytes(
|
||
|
xdp_md: *mut xdp_md,
|
||
|
offset: __u32,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
xdp_md: *mut xdp_md,
|
||
|
offset: __u32,
|
||
11 months ago
|
buf: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
len: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(190usize);
|
||
3 years ago
|
fun(xdp_md, offset, buf, len)
|
||
|
}
|
||
|
pub unsafe fn bpf_copy_from_user_task(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
size: __u32,
|
||
11 months ago
|
user_ptr: *const ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
tsk: *mut task_struct,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
size: __u32,
|
||
11 months ago
|
user_ptr: *const ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
tsk: *mut task_struct,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(191usize);
|
||
3 years ago
|
fun(dst, size, user_ptr, tsk, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_skb_set_tstamp(
|
||
|
skb: *mut __sk_buff,
|
||
|
tstamp: __u64,
|
||
|
tstamp_type: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
skb: *mut __sk_buff,
|
||
|
tstamp: __u64,
|
||
|
tstamp_type: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(192usize);
|
||
3 years ago
|
fun(skb, tstamp, tstamp_type)
|
||
|
}
|
||
|
pub unsafe fn bpf_ima_file_hash(
|
||
|
file: *mut file,
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
|
file: *mut file,
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
size: __u32,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(193usize);
|
||
3 years ago
|
fun(file, dst, size)
|
||
|
}
|
||
|
pub unsafe fn bpf_kptr_xchg(
|
||
11 months ago
|
map_value: *mut ::aya_ebpf_cty::c_void,
|
||
|
ptr: *mut ::aya_ebpf_cty::c_void,
|
||
|
) -> *mut ::aya_ebpf_cty::c_void {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map_value: *mut ::aya_ebpf_cty::c_void,
|
||
|
ptr: *mut ::aya_ebpf_cty::c_void,
|
||
|
) -> *mut ::aya_ebpf_cty::c_void = ::core::mem::transmute(194usize);
|
||
3 years ago
|
fun(map_value, ptr)
|
||
|
}
|
||
3 years ago
|
pub unsafe fn bpf_map_lookup_percpu_elem(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *const ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
cpu: __u32,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void {
|
||
3 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
key: *const ::aya_ebpf_cty::c_void,
|
||
3 years ago
|
cpu: __u32,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void = ::core::mem::transmute(195usize);
|
||
3 years ago
|
fun(map, key, cpu)
|
||
|
}
|
||
11 months ago
|
pub unsafe fn bpf_skc_to_mptcp_sock(sk: *mut ::aya_ebpf_cty::c_void) -> *mut mptcp_sock {
|
||
|
let fun: unsafe extern "C" fn(sk: *mut ::aya_ebpf_cty::c_void) -> *mut mptcp_sock =
|
||
2 years ago
|
::core::mem::transmute(196usize);
|
||
|
fun(sk)
|
||
|
}
|
||
|
pub unsafe fn bpf_dynptr_from_mem(
|
||
11 months ago
|
data: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
size: __u32,
|
||
|
flags: __u64,
|
||
|
ptr: *mut bpf_dynptr,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
2 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
data: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
size: __u32,
|
||
|
flags: __u64,
|
||
|
ptr: *mut bpf_dynptr,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(197usize);
|
||
2 years ago
|
fun(data, size, flags, ptr)
|
||
|
}
|
||
|
pub unsafe fn bpf_ringbuf_reserve_dynptr(
|
||
11 months ago
|
ringbuf: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
size: __u32,
|
||
|
flags: __u64,
|
||
|
ptr: *mut bpf_dynptr,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
2 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
ringbuf: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
size: __u32,
|
||
|
flags: __u64,
|
||
|
ptr: *mut bpf_dynptr,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(198usize);
|
||
2 years ago
|
fun(ringbuf, size, flags, ptr)
|
||
|
}
|
||
|
pub unsafe fn bpf_ringbuf_submit_dynptr(ptr: *mut bpf_dynptr, flags: __u64) {
|
||
|
let fun: unsafe extern "C" fn(ptr: *mut bpf_dynptr, flags: __u64) =
|
||
|
::core::mem::transmute(199usize);
|
||
|
fun(ptr, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_ringbuf_discard_dynptr(ptr: *mut bpf_dynptr, flags: __u64) {
|
||
|
let fun: unsafe extern "C" fn(ptr: *mut bpf_dynptr, flags: __u64) =
|
||
|
::core::mem::transmute(200usize);
|
||
|
fun(ptr, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_dynptr_read(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
len: __u32,
|
||
2 years ago
|
src: *const bpf_dynptr,
|
||
2 years ago
|
offset: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
2 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
dst: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
len: __u32,
|
||
2 years ago
|
src: *const bpf_dynptr,
|
||
2 years ago
|
offset: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(201usize);
|
||
2 years ago
|
fun(dst, len, src, offset, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_dynptr_write(
|
||
2 years ago
|
dst: *const bpf_dynptr,
|
||
2 years ago
|
offset: __u32,
|
||
11 months ago
|
src: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
2 years ago
|
let fun: unsafe extern "C" fn(
|
||
2 years ago
|
dst: *const bpf_dynptr,
|
||
2 years ago
|
offset: __u32,
|
||
11 months ago
|
src: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
len: __u32,
|
||
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(202usize);
|
||
2 years ago
|
fun(dst, offset, src, len, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_dynptr_data(
|
||
2 years ago
|
ptr: *const bpf_dynptr,
|
||
2 years ago
|
offset: __u32,
|
||
|
len: __u32,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void {
|
||
2 years ago
|
let fun: unsafe extern "C" fn(
|
||
2 years ago
|
ptr: *const bpf_dynptr,
|
||
2 years ago
|
offset: __u32,
|
||
|
len: __u32,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void = ::core::mem::transmute(203usize);
|
||
2 years ago
|
fun(ptr, offset, len)
|
||
|
}
|
||
|
pub unsafe fn bpf_tcp_raw_gen_syncookie_ipv4(
|
||
|
iph: *mut iphdr,
|
||
|
th: *mut tcphdr,
|
||
|
th_len: __u32,
|
||
|
) -> __s64 {
|
||
|
let fun: unsafe extern "C" fn(iph: *mut iphdr, th: *mut tcphdr, th_len: __u32) -> __s64 =
|
||
|
::core::mem::transmute(204usize);
|
||
|
fun(iph, th, th_len)
|
||
|
}
|
||
|
pub unsafe fn bpf_tcp_raw_gen_syncookie_ipv6(
|
||
|
iph: *mut ipv6hdr,
|
||
|
th: *mut tcphdr,
|
||
|
th_len: __u32,
|
||
|
) -> __s64 {
|
||
|
let fun: unsafe extern "C" fn(iph: *mut ipv6hdr, th: *mut tcphdr, th_len: __u32) -> __s64 =
|
||
|
::core::mem::transmute(205usize);
|
||
|
fun(iph, th, th_len)
|
||
|
}
|
||
|
pub unsafe fn bpf_tcp_raw_check_syncookie_ipv4(
|
||
|
iph: *mut iphdr,
|
||
|
th: *mut tcphdr,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(iph: *mut iphdr, th: *mut tcphdr) -> ::aya_ebpf_cty::c_long =
|
||
2 years ago
|
::core::mem::transmute(206usize);
|
||
|
fun(iph, th)
|
||
|
}
|
||
|
pub unsafe fn bpf_tcp_raw_check_syncookie_ipv6(
|
||
|
iph: *mut ipv6hdr,
|
||
|
th: *mut tcphdr,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
|
let fun: unsafe extern "C" fn(iph: *mut ipv6hdr, th: *mut tcphdr) -> ::aya_ebpf_cty::c_long =
|
||
2 years ago
|
::core::mem::transmute(207usize);
|
||
|
fun(iph, th)
|
||
|
}
|
||
|
pub unsafe fn bpf_ktime_get_tai_ns() -> __u64 {
|
||
|
let fun: unsafe extern "C" fn() -> __u64 = ::core::mem::transmute(208usize);
|
||
|
fun()
|
||
|
}
|
||
2 years ago
|
pub unsafe fn bpf_user_ringbuf_drain(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
callback_fn: *mut ::aya_ebpf_cty::c_void,
|
||
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
2 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
|
callback_fn: *mut ::aya_ebpf_cty::c_void,
|
||
|
ctx: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(209usize);
|
||
2 years ago
|
fun(map, callback_fn, ctx, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_cgrp_storage_get(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
cgroup: *mut cgroup,
|
||
11 months ago
|
value: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void {
|
||
2 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
cgroup: *mut cgroup,
|
||
11 months ago
|
value: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
flags: __u64,
|
||
11 months ago
|
) -> *mut ::aya_ebpf_cty::c_void = ::core::mem::transmute(210usize);
|
||
2 years ago
|
fun(map, cgroup, value, flags)
|
||
|
}
|
||
|
pub unsafe fn bpf_cgrp_storage_delete(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
cgroup: *mut cgroup,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long {
|
||
2 years ago
|
let fun: unsafe extern "C" fn(
|
||
11 months ago
|
map: *mut ::aya_ebpf_cty::c_void,
|
||
2 years ago
|
cgroup: *mut cgroup,
|
||
11 months ago
|
) -> ::aya_ebpf_cty::c_long = ::core::mem::transmute(211usize);
|
||
2 years ago
|
fun(map, cgroup)
|
||
|
}
|