Home
last modified time | relevance | path

Searched refs:bpf_cmd (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/bpf/
H A Dmod.rs4 use crate::include::bindings::linux_bpf::{bpf_attr, bpf_cmd};
17 let cmd = bpf_cmd::from_u32(cmd).ok_or(SystemError::EINVAL)?; in sys_bpf()
22 pub fn bpf(cmd: bpf_cmd, attr: &bpf_attr) -> Result<usize> { in bpf() argument
25 bpf_cmd::BPF_MAP_CREATE => map::bpf_map_create(attr), in bpf()
26 bpf_cmd::BPF_MAP_UPDATE_ELEM => map::bpf_map_update_elem(attr), in bpf()
27 bpf_cmd::BPF_MAP_LOOKUP_ELEM => map::bpf_lookup_elem(attr), in bpf()
28 bpf_cmd::BPF_MAP_GET_NEXT_KEY => map::bpf_map_get_next_key(attr), in bpf()
29 bpf_cmd::BPF_MAP_DELETE_ELEM => map::bpf_map_delete_elem(attr), in bpf()
30 bpf_cmd::BPF_MAP_LOOKUP_AND_DELETE_ELEM => map::bpf_map_lookup_and_delete_elem(attr), in bpf()
31 bpf_cmd::BPF_MAP_LOOKUP_BATCH => map::bpf_map_lookup_batch(attr), in bpf()
[all …]
/DragonOS/docs/kernel/trace/
H A DeBPF.md122 pub fn bpf(cmd: bpf_cmd, attr: &bpf_attr) -> Result<usize> {
125 bpf_cmd::BPF_MAP_CREATE => map::bpf_map_create(attr),
126 bpf_cmd::BPF_MAP_UPDATE_ELEM => map::bpf_map_update_elem(attr),
127 bpf_cmd::BPF_MAP_LOOKUP_ELEM => map::bpf_lookup_elem(attr),
128 bpf_cmd::BPF_MAP_GET_NEXT_KEY => map::bpf_map_get_next_key(attr),
129 bpf_cmd::BPF_MAP_DELETE_ELEM => map::bpf_map_delete_elem(attr),
130 bpf_cmd::BPF_MAP_LOOKUP_AND_DELETE_ELEM => map::bpf_map_lookup_and_delete_elem(attr),
131 bpf_cmd::BPF_MAP_LOOKUP_BATCH => map::bpf_map_lookup_batch(attr),
132 bpf_cmd::BPF_MAP_FREEZE => map::bpf_map_freeze(attr),
134 bpf_cmd::BPF_PROG_LOAD => prog::bpf_prog_load(attr),
[all …]
/DragonOS/kernel/src/include/bindings/
H A Dlinux_bpf.rs240 impl bpf_cmd { implementation
241 pub const BPF_PROG_RUN: bpf_cmd = bpf_cmd::BPF_PROG_TEST_RUN;
245 pub enum bpf_cmd { enum