Home
last modified time | relevance | path

Searched refs:attach_btf_id (Results 1 – 12 of 12) sorted by relevance

/tools/bpf/bpftool/
A Dcgroup.c157 info.attach_btf_id < btf__type_cnt(btf_vmlinux)) { in show_bpf_prog()
159 btf__type_by_id(btf_vmlinux, info.attach_btf_id); in show_bpf_prog()
179 jsonw_uint_field(json_wtr, "attach_btf_id", info.attach_btf_id); in show_bpf_prog()
193 else if (info.attach_btf_id) in show_bpf_prog()
195 info.attach_btf_obj_id, info.attach_btf_id); in show_bpf_prog()
/tools/testing/selftests/bpf/prog_tests/
A Dfexit_stress.c35 trace_opts.attach_btf_id = err; in serial_test_fexit_stress()
A Dfexit_bpf2bpf.c459 static int load_fentry(int attach_prog_fd, int attach_btf_id) in load_fentry() argument
464 .attach_btf_id = attach_btf_id, in load_fentry()
516 ASSERT_EQ(info.attach_btf_id, btf_id, "info.attach_btf_id"); in test_fentry_to_cgroup_bpf()
A Dmodule_fentry_shadow.c100 load_opts.attach_btf_id = btf_id[i]; in test_module_fentry_shadow()
A Dlsm_cgroup.c50 if (info.attach_btf_id == in query_prog_cnt()
/tools/lib/bpf/
A Dlibbpf_probes.c141 opts.attach_btf_id = 1; in probe_prog_load()
150 opts.attach_btf_id = 1; in probe_prog_load()
A Dbpf.h83 __u32 attach_btf_id; member
A Dgen_loader.c1021 attr.attach_btf_id = tgt_endian(load_attr->attach_btf_id); in bpf_gen__prog_load()
1091 offsetof(union bpf_attr, attach_btf_id))); in bpf_gen__prog_load()
A Dbpf.c288 attr.attach_btf_id = OPTS_GET(opts, attach_btf_id, 0); in bpf_prog_load()
A Dlibbpf.c488 __u32 attach_btf_id; member
1285 if (!prog->attach_btf_id) { in bpf_map__init_kern_struct_ops()
1286 prog->attach_btf_id = kern_type_id; in bpf_map__init_kern_struct_ops()
1295 if (prog->attach_btf_id != kern_type_id) { in bpf_map__init_kern_struct_ops()
1298 prog->attach_btf_id, kern_type_id); in bpf_map__init_kern_struct_ops()
7433 if ((def & SEC_ATTACH_BTF) && !prog->attach_btf_id) { in libbpf_prepare_prog_load()
7460 prog->attach_btf_id = btf_type_id; in libbpf_prepare_prog_load()
7468 opts->attach_btf_id = btf_type_id; in libbpf_prepare_prog_load()
7500 if (prog->attach_btf_id == 0) { in bpf_object_load_prog()
7517 load_attr.attach_btf_id = prog->attach_btf_id; in bpf_object_load_prog()
[all …]
/tools/testing/selftests/bpf/
A Dtest_verifier.c1574 int attach_btf_id; in do_test_single() local
1576 attach_btf_id = libbpf_find_vmlinux_btf_id(test->kfunc, in do_test_single()
1578 if (attach_btf_id < 0) { in do_test_single()
1585 opts.attach_btf_id = attach_btf_id; in do_test_single()
/tools/include/uapi/linux/
A Dbpf.h1578 __u32 attach_btf_id; /* in-kernel BTF type id to attach to */ member
6649 __u32 attach_btf_id; member

Completed in 57 milliseconds