Home
last modified time | relevance | path

Searched refs:fd_type (Results 1 – 15 of 15) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
A Dtask_fd_query_rawtp.c8 __u32 len, prog_id, fd_type; in test_task_fd_query_rawtp() local
25 &fd_type, &probe_offset, &probe_addr); in test_task_fd_query_rawtp()
30 err = fd_type == BPF_FD_TYPE_RAW_TRACEPOINT && in test_task_fd_query_rawtp()
33 fd_type, buf)) in test_task_fd_query_rawtp()
39 &fd_type, &probe_offset, &probe_addr); in test_task_fd_query_rawtp()
43 err = fd_type == BPF_FD_TYPE_RAW_TRACEPOINT && in test_task_fd_query_rawtp()
45 if (CHECK(!err, "check_results", "fd_type %d len %u\n", fd_type, len)) in test_task_fd_query_rawtp()
51 &fd_type, &probe_offset, &probe_addr); in test_task_fd_query_rawtp()
55 err = fd_type == BPF_FD_TYPE_RAW_TRACEPOINT && in test_task_fd_query_rawtp()
63 &fd_type, &probe_offset, &probe_addr); in test_task_fd_query_rawtp()
[all …]
A Dtask_fd_query_tp.c11 __u32 len, prog_id, fd_type; in test_task_fd_query_tp_core() local
55 &fd_type, &probe_offset, &probe_addr); in test_task_fd_query_tp_core()
60 err = (fd_type == BPF_FD_TYPE_TRACEPOINT) && !strcmp(buf, tp_name); in test_task_fd_query_tp_core()
62 fd_type, buf)) in test_task_fd_query_tp_core()
/linux/samples/bpf/
A Dtask_fd_query_user.c96 __u32 len, prog_id, fd_type; in test_debug_fs_kprobe() local
103 &prog_id, &fd_type, &probe_offset, in test_debug_fs_kprobe()
112 fd_type != expected_fd_type || in test_debug_fs_kprobe()
118 buf, fd_type, probe_offset, probe_addr); in test_debug_fs_kprobe()
181 __u32 prog_id, fd_type; in test_nondebug_fs_probe() local
187 &fd_type, &probe_offset, in test_nondebug_fs_probe()
197 (!is_return && fd_type != expected_fd_type)) { in test_nondebug_fs_probe()
199 __func__, fd_type); in test_nondebug_fs_probe()
234 __u32 len, prog_id, fd_type; in test_debug_fs_uprobe() local
282 &prog_id, &fd_type, &probe_offset, in test_debug_fs_uprobe()
[all …]
/linux/tools/bpf/bpftool/
A Dperf.c25 __u32 len, prog_id, fd_type; in has_perf_query_support() local
45 &fd_type, &probe_offset, &probe_addr); in has_perf_query_support()
63 static void print_perf_json(int pid, int fd, __u32 prog_id, __u32 fd_type, in print_perf_json() argument
70 switch (fd_type) { in print_perf_json()
113 static void print_perf_plain(int pid, int fd, __u32 prog_id, __u32 fd_type, in print_perf_plain() argument
117 switch (fd_type) { in print_perf_plain()
154 __u32 len, prog_id, fd_type; in show_proc() local
196 err = bpf_task_fd_query(pid, fd, 0, buf, &len, &prog_id, &fd_type, in show_proc()
202 print_perf_json(pid, fd, prog_id, fd_type, buf, probe_offset, in show_proc()
205 print_perf_plain(pid, fd, prog_id, fd_type, buf, probe_offset, in show_proc()
/linux/tools/bpf/bpftool/Documentation/
A Dbpftool-perf.rst62 [{"pid":21711,"fd":5,"prog_id":5,"fd_type":"kprobe","func":"__x64_sys_write","offset":0}, \
63 … {"pid":21765,"fd":5,"prog_id":7,"fd_type":"kretprobe","func":"__x64_sys_nanosleep","offset":0}, \
64 {"pid":21767,"fd":5,"prog_id":8,"fd_type":"tracepoint","tracepoint":"sys_enter_nanosleep"}, \
65 {"pid":21800,"fd":5,"prog_id":9,"fd_type":"uprobe","filename":"/home/yhs/a.out","offset":1159}]
/linux/drivers/infiniband/core/
A Drdma_core.c337 const struct uverbs_obj_fd_type *fd_type; in lookup_get_fd_uobject() local
350 fd_type = in lookup_get_fd_uobject()
363 if (f->f_op != fd_type->fops || uobject->ufile != ufile) { in lookup_get_fd_uobject()
456 const struct uverbs_obj_fd_type *fd_type; in alloc_begin_fd_uobject() local
465 fd_type = in alloc_begin_fd_uobject()
467 if (WARN_ON(fd_type->fops->release != &uverbs_uobject_fd_release && in alloc_begin_fd_uobject()
468 fd_type->fops->release != &uverbs_async_event_release)) { in alloc_begin_fd_uobject()
480 filp = anon_inode_getfile(fd_type->name, fd_type->fops, NULL, in alloc_begin_fd_uobject()
481 fd_type->flags); in alloc_begin_fd_uobject()
571 const struct uverbs_obj_fd_type *fd_type = container_of( in destroy_hw_fd_uobject() local
[all …]
/linux/include/linux/
A Dtrace_events.h736 u32 *fd_type, const char **buf,
773 u32 *prog_id, u32 *fd_type, in bpf_get_perf_event_info() argument
838 u32 *fd_type, const char **symbol,
847 u32 *fd_type, const char **filename,
/linux/tools/lib/bpf/
A Dbpf.c1058 __u32 *prog_id, __u32 *fd_type, __u64 *probe_offset, in bpf_task_fd_query() argument
1074 *fd_type = attr.task_fd_query.fd_type; in bpf_task_fd_query()
A Dbpf.h249 __u32 *buf_len, __u32 *prog_id, __u32 *fd_type,
/linux/kernel/trace/
A Dbpf_trace.c2015 u32 *fd_type, const char **buf, in bpf_get_perf_event_info() argument
2038 *fd_type = BPF_FD_TYPE_TRACEPOINT; in bpf_get_perf_event_info()
2046 err = bpf_get_kprobe_info(event, fd_type, buf, in bpf_get_perf_event_info()
2052 err = bpf_get_uprobe_info(event, fd_type, buf, in bpf_get_perf_event_info()
A Dtrace_uprobe.c1423 int bpf_get_uprobe_info(const struct perf_event *event, u32 *fd_type, in bpf_get_uprobe_info() argument
1438 *fd_type = is_ret_probe(tu) ? BPF_FD_TYPE_URETPROBE in bpf_get_uprobe_info()
A Dtrace_kprobe.c1650 int bpf_get_kprobe_info(const struct perf_event *event, u32 *fd_type, in bpf_get_kprobe_info() argument
1665 *fd_type = trace_kprobe_is_return(tk) ? BPF_FD_TYPE_KRETPROBE in bpf_get_kprobe_info()
/linux/kernel/bpf/
A Dsyscall.c4056 u32 prog_id, u32 fd_type, in bpf_task_fd_query_copy() argument
4093 put_user(fd_type, &uattr->task_fd_query.fd_type) || in bpf_task_fd_query_copy()
4152 u32 prog_id, fd_type; in bpf_task_fd_query() local
4155 err = bpf_get_perf_event_info(event, &prog_id, &fd_type, in bpf_task_fd_query()
4160 fd_type, buf, in bpf_task_fd_query()
/linux/tools/include/uapi/linux/
A Dbpf.h1440 __u32 fd_type; /* output: BPF_FD_TYPE_* */ member
/linux/include/uapi/linux/
A Dbpf.h1440 __u32 fd_type; /* output: BPF_FD_TYPE_* */ member

Completed in 61 milliseconds