Home
last modified time | relevance | path

Searched refs:bpf_attr (Results 1 - 17 of 17) sorted by relevance

/third_party/libbpf/src/
H A Dskel_internal.h71 static inline int skel_sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in skel_sys_bpf()
225 const size_t attr_sz = offsetofend(union bpf_attr, map_extra); in skel_map_create()
226 union bpf_attr attr; in skel_map_create()
242 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_update_elem()
243 union bpf_attr attr; in skel_map_update_elem()
256 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_delete_elem()
257 union bpf_attr attr; in skel_map_delete_elem()
268 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_get_fd_by_id()
269 union bpf_attr attr; in skel_map_get_fd_by_id()
279 const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoin in skel_raw_tracepoint_open()
[all...]
H A Dbpf.c72 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf()
78 static inline int sys_bpf_fd(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf_fd()
87 int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size, int attempts) in sys_bpf_prog_load()
108 const size_t attr_sz = offsetofend(union bpf_attr, attach_btf_obj_fd); in probe_memcg_account()
114 union bpf_attr attr; in probe_memcg_account()
172 const size_t attr_sz = offsetofend(union bpf_attr, map_extra); in bpf_map_create()
173 union bpf_attr attr; in bpf_map_create()
235 const size_t attr_sz = offsetofend(union bpf_attr, log_true_size); in bpf_prog_load()
241 union bpf_attr attr; in bpf_prog_load()
383 const size_t attr_sz = offsetofend(union bpf_attr, flag in bpf_map_update_elem()
[all...]
H A Dgen_loader.c31 * blob - bpf_attr-s, strings, insns, map data.
43 #define attr_field(attr, field) (attr + offsetof(union bpf_attr, field))
420 int attr_size = offsetofend(union bpf_attr, btf_log_level); in bpf_gen__load_btf()
422 union bpf_attr attr; in bpf_gen__load_btf()
431 /* populate union bpf_attr with user provided log details */ in bpf_gen__load_btf()
438 /* populate union bpf_attr with a pointer to the BTF data */ in bpf_gen__load_btf()
454 int attr_size = offsetofend(union bpf_attr, map_extra); in bpf_gen__map_create()
457 union bpf_attr attr; in bpf_gen__map_create()
478 /* populate union bpf_attr with btf_fd saved in the stack earlier */ in bpf_gen__map_create()
940 int attr_size = offsetofend(union bpf_attr, core_relo_rec_siz in bpf_gen__prog_load()
[all...]
H A Dlibbpf_internal.h653 int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size, int attempts);
H A Dlibbpf.c4953 const size_t attr_sz = offsetofend(union bpf_attr, prog_name);
4958 union bpf_attr attr;
/third_party/ltp/testcases/kernel/syscalls/bpf/
H A Dbpf_common.c30 int bpf_map_create(union bpf_attr *const attr) in bpf_map_create()
52 union bpf_attr map_attr = { in bpf_map_array_create()
67 union bpf_attr elem_attr = { in bpf_map_array_get()
82 void bpf_init_prog_attr(union bpf_attr *const attr, in bpf_init_prog_attr()
108 int bpf_load_prog(union bpf_attr *const attr, const char *const log) in bpf_load_prog()
H A Dbpf_common.h44 int bpf_map_create(union bpf_attr *const attr)
53 void bpf_init_prog_attr(union bpf_attr *const attr,
58 int bpf_load_prog(union bpf_attr *const attr, const char *const log)
H A Dbpf_prog06.c56 static union bpf_attr *attr;
111 map_fd = bpf_map_create(&(union bpf_attr){ in run()
H A Dbpf_prog07.c56 static union bpf_attr *attr;
119 map_fd = bpf_map_create(&(union bpf_attr){ in run()
H A Dbpf_prog01.c34 static union bpf_attr *attr;
H A Dbpf_prog04.c37 static union bpf_attr *attr;
H A Dbpf_prog05.c62 static union bpf_attr *attr;
H A Dbpf_prog03.c41 static union bpf_attr *attr;
H A Dbpf_prog02.c34 static union bpf_attr *attr;
H A Dbpf_map01.c27 static union bpf_attr *attr;
/third_party/ltp/include/lapi/
H A Dbpf.h182 union bpf_attr { union
621 static inline int bpf(enum bpf_cmd cmd, union bpf_attr *attr, unsigned int size) in bpf()
/third_party/libbpf/include/uapi/linux/
H A Dbpf.h128 * provided via *attr*, which is a pointer to a union of type *bpf_attr* (see
1343 /* If set, run the test on the cpu specified by bpf_attr.test.cpu */
1375 union bpf_attr { union

Completed in 52 milliseconds