Searched refs:attach_btf_id (Results 1 - 25 of 25) sorted by relevance

/linux-master/kernel/bpf/
H A Dbpf_lsm.c79 prog->aux->attach_btf_id)) {
106 if (!btf_id_set_contains(&bpf_lsm_hooks, prog->aux->attach_btf_id)) {
107 bpf_log(vlog, "attach_btf_id %u points to wrong type name %s\n",
108 prog->aux->attach_btf_id, prog->aux->attach_func_name);
145 return bpf_lsm_is_sleepable_hook(prog->aux->attach_btf_id);
235 prog->aux->attach_btf_id))
238 prog->aux->attach_btf_id))
245 prog->aux->attach_btf_id))
248 prog->aux->attach_btf_id))
382 return !btf_id_set_contains(&untrusted_lsm_hooks, prog->aux->attach_btf_id);
[all...]
H A Dcgroup.c131 u32 attach_btf_id; member in struct:cgroup_lsm_atype
138 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) argument
148 if (cgroup_lsm_atype[i].attach_btf_id == attach_btf_id)
152 if (cgroup_lsm_atype[i].attach_btf_id == 0)
159 void bpf_cgroup_atype_get(u32 attach_btf_id, int cgroup_atype) argument
165 WARN_ON_ONCE(cgroup_lsm_atype[i].attach_btf_id &&
166 cgroup_lsm_atype[i].attach_btf_id != attach_btf_id);
168 cgroup_lsm_atype[i].attach_btf_id
184 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) argument
957 u32 attach_btf_id = 0; local
[all...]
H A Dbpf_iter.c336 tinfo->btf_id = prog->aux->attach_btf_id;
343 u32 prog_btf_id = prog->aux->attach_btf_id;
380 if (tinfo->btf_id == prog->aux->attach_btf_id) {
425 link->prog->aux->attach_btf_id != new_prog->aux->attach_btf_id) {
538 prog_btf_id = prog->aux->attach_btf_id;
H A Dtrampoline.c659 p->aux->attach_btf_id = prog->aux->attach_btf_id;
667 bpf_cgroup_atype_get(p->aux->attach_btf_id, cgroup_atype);
701 prog->aux->attach_btf_id,
707 prog->aux->attach_btf_id);
764 prog->aux->attach_btf_id);
H A Dsyscall.c2779 } else if (attr->attach_btf_id) {
2794 attach_btf, attr->attach_btf_id,
2818 prog->aux->attach_btf_id = attr->attach_btf_id;
3420 btf_id = prog->aux->attach_btf_id;
4746 info.attach_btf_id = prog->aux->attach_btf_id;
H A Dbpf_struct_ops.c700 prog->aux->attach_btf_id != st_ops_desc->type_id ||
H A Dverifier.c15464 if (!env->prog->aux->attach_btf_id)
20654 if (!prog->aux->attach_btf_id)
20668 btf_id = prog->aux->attach_btf_id;
20671 verbose(env, "attach_btf_id %u is not a supported struct\n",
20774 bpf_log(log, "attach_btf_id %u is invalid\n", btf_id);
20779 bpf_log(log, "attach_btf_id %u doesn't have a name\n", btf_id);
20878 bpf_log(log, "attach_btf_id %u is not a typedef\n",
20883 bpf_log(log, "attach_btf_id %u points to wrong type name %s\n",
20900 bpf_log(log, "attach_btf_id %u is not a function\n",
20921 bpf_log(log, "attach_btf_id
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dfexit_stress.c34 trace_opts.attach_btf_id = err;
H A Dmodule_fentry_shadow.c99 load_opts.attach_btf_id = btf_id[i];
H A Dfexit_bpf2bpf.c459 static int load_fentry(int attach_prog_fd, int attach_btf_id) argument
464 .attach_btf_id = attach_btf_id,
516 ASSERT_EQ(info.attach_btf_id, btf_id, "info.attach_btf_id");
H A Dlsm_cgroup.c54 if (info.attach_btf_id ==
/linux-master/tools/bpf/bpftool/
H A Dcgroup.c125 info.attach_btf_id < btf__type_cnt(btf_vmlinux)) {
127 btf__type_by_id(btf_vmlinux, info.attach_btf_id);
147 jsonw_uint_field(json_wtr, "attach_btf_id", info.attach_btf_id);
161 else if (info.attach_btf_id)
162 printf(" attach_btf_obj_id=%d attach_btf_id=%d",
163 info.attach_btf_obj_id, info.attach_btf_id);
/linux-master/tools/lib/bpf/
H A Dlibbpf_probes.c141 opts.attach_btf_id = 1;
144 exp_msg = "attach_btf_id 1 is not a function";
150 opts.attach_btf_id = 1;
H A Dgen_loader.c953 attr.attach_btf_id = load_attr->attach_btf_id;
1011 offsetof(union bpf_attr, attach_btf_id)));
H A Dbpf.h83 __u32 attach_btf_id; member in struct:bpf_prog_load_opts
H A Dbpf.c288 attr.attach_btf_id = OPTS_GET(opts, attach_btf_id, 0);
H A Dlibbpf.c460 __u32 attach_btf_id; member in struct:bpf_program
1199 * attach_btf_id and member_idx
1201 if (!prog->attach_btf_id) {
1202 prog->attach_btf_id = kern_type_id;
1211 if (prog->attach_btf_id != kern_type_id) {
1212 pr_warn("struct_ops init_kern %s func ptr %s: invalid reuse of prog %s in sec %s with type %u: attach_btf_id %u != kern_type_id %u\n",
1214 prog->attach_btf_id, kern_type_id);
7273 if ((def & SEC_ATTACH_BTF) && !prog->attach_btf_id) {
7300 prog->attach_btf_id = btf_type_id;
7303 * prog->atach_btf_obj_fd/prog->attach_btf_id anymor
[all...]
/linux-master/net/bpf/
H A Dbpf_dummy_struct_ops.c104 if (prog->aux->attach_btf_id != type_id)
/linux-master/tools/testing/selftests/bpf/
H A Dtest_verifier.c1583 int attach_btf_id; local
1585 attach_btf_id = libbpf_find_vmlinux_btf_id(test->kfunc,
1587 if (attach_btf_id < 0) {
1594 opts.attach_btf_id = attach_btf_id;
/linux-master/drivers/hid/bpf/
H A Dhid_bpf_jmp_table.c356 if (hid_bpf_btf_ids[i] == prog->aux->attach_btf_id) {
/linux-master/include/uapi/linux/
H A Dbpf.h1548 __u32 attach_btf_id; /* in-kernel BTF type id to attach to */ member in struct:bpf_attr::__anon2593
6575 __u32 attach_btf_id; member in struct:bpf_prog_info
/linux-master/tools/include/uapi/linux/
H A Dbpf.h1548 __u32 attach_btf_id; /* in-kernel BTF type id to attach to */ member in struct:bpf_attr::__anon3134
6575 __u32 attach_btf_id; member in struct:bpf_prog_info
/linux-master/include/linux/
H A Dbpf.h1441 u32 attach_btf_id; /* in-kernel BTF type id to attach to */ member in struct:bpf_prog_aux
1463 /* BTF_KIND_FUNC_PROTO for valid attach_btf_id */
1465 /* function name for valid attach_btf_id */
3378 void bpf_cgroup_atype_get(u32 attach_btf_id, int cgroup_atype);
3381 static inline void bpf_cgroup_atype_get(u32 attach_btf_id, int cgroup_atype) {} argument
/linux-master/net/core/
H A Dbpf_sk_storage.c377 btf_id = prog->aux->attach_btf_id;
/linux-master/kernel/trace/
H A Dbpf_trace.c960 return bpf_lsm_is_sleepable_hook(prog->aux->attach_btf_id);
963 prog->aux->attach_btf_id);

Completed in 589 milliseconds