Searched refs:token_fd (Results 1 - 8 of 8) sorted by relevance

/linux-master/tools/lib/bpf/
H A Dfeatures.c23 static int probe_kern_prog_name(int token_fd) argument
38 attr.prog_token_fd = token_fd;
39 if (token_fd)
48 static int probe_kern_global_data(int token_fd) argument
58 .token_fd = token_fd,
59 .map_flags = token_fd ? BPF_F_TOKEN_FD : 0,
62 .token_fd = token_fd,
63 .prog_flags = token_fd
83 probe_kern_btf(int token_fd) argument
95 probe_kern_btf_func(int token_fd) argument
113 probe_kern_btf_func_global(int token_fd) argument
131 probe_kern_btf_datasec(int token_fd) argument
150 probe_kern_btf_qmark_datasec(int token_fd) argument
169 probe_kern_btf_float(int token_fd) argument
181 probe_kern_btf_decl_tag(int token_fd) argument
198 probe_kern_btf_type_tag(int token_fd) argument
214 probe_kern_array_mmap(int token_fd) argument
226 probe_kern_exp_attach_type(int token_fd) argument
248 probe_kern_probe_read_kernel(int token_fd) argument
268 probe_prog_bind_map(int token_fd) argument
308 probe_module_btf(int token_fd) argument
337 probe_perf_link(int token_fd) argument
367 probe_uprobe_multi_link(int token_fd) argument
402 probe_kern_bpf_cookie(int token_fd) argument
418 probe_kern_btf_enum64(int token_fd) argument
429 probe_kern_arg_ctx_tag(int token_fd) argument
[all...]
H A Dbpf.h56 __u32 token_fd; member in struct:bpf_map_create_opts
59 #define bpf_map_create_opts__last_field token_fd
109 __u32 token_fd; member in struct:bpf_prog_load_opts
112 #define bpf_prog_load_opts__last_field token_fd
140 __u32 token_fd; member in struct:bpf_btf_load_opts
143 #define bpf_btf_load_opts__last_field token_fd
H A Dlibbpf_probes.c223 int token_fd)
234 .token_fd = token_fd,
235 .btf_flags = token_fd ? BPF_F_TOKEN_FD : 0,
221 libbpf__load_raw_btf(const char *raw_types, size_t types_len, const char *str_sec, size_t str_len, int token_fd) argument
H A Dlibbpf_internal.h390 int token_fd; member in struct:kern_feature_cache
396 int probe_kern_syscall_wrapper(int token_fd);
397 int probe_memcg_account(int token_fd);
404 int token_fd);
407 int token_fd);
H A Dbpf.c106 int probe_memcg_account(int token_fd) argument
123 attr.prog_token_fd = token_fd;
124 if (token_fd)
205 attr.map_token_fd = OPTS_GET(opts, token_fd, 0);
270 attr.prog_token_fd = OPTS_GET(opts, token_fd, 0);
1219 attr.btf_token_fd = OPTS_GET(opts, token_fd, 0);
H A Dlibbpf.c709 int token_fd; member in struct:bpf_object
3500 obj->log_level ? 1 : 0, obj->token_fd);
4840 int bpffs_fd = -1, token_fd, err; local
4863 token_fd = bpf_token_create(bpffs_fd, 0);
4865 if (token_fd < 0) {
4866 if (!mandatory && token_fd == -ENOENT) {
4872 obj->name, token_fd, bpffs_path,
4874 return mandatory ? token_fd : 0;
4879 close(token_fd);
4883 obj->token_fd
10968 probe_kern_syscall_wrapper(int token_fd) argument
[all...]
H A Dbtf.c1327 int token_fd)
1377 opts.token_fd = token_fd;
1378 if (token_fd)
1325 btf_load_into_kernel(struct btf *btf, char *log_buf, size_t log_sz, __u32 log_level, int token_fd) argument
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtoken.c287 int mnt_fd = -1, fs_fd = -1, err = 0, bpffs_fd = -1, token_fd = -1; local
381 token_fd = bpf_token_create(bpffs_fd, NULL);
382 if (!ASSERT_GT(token_fd, 0, "child_token_create")) {
386 err = sendfd(sock_fd, token_fd);
389 zclose(token_fd);
402 zclose(token_fd);
431 int fs_fd = -1, mnt_fd = -1, token_fd = -1, err; local
451 err = recvfd(sock_fd, &token_fd);
462 zclose(token_fd);
501 int err, token_fd local
569 int err, token_fd = -1, btf_fd = -1; local
638 int err, token_fd = -1, prog_fd = -1; local
[all...]

Completed in 206 milliseconds