Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/prog_tests/
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()
57 if (CHECK(!err, "check_results", "fd_type %d len %u\n", fd_type, len)) in test_task_fd_query_rawtp()
[all …]
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()
/tools/bpf/bpftool/
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()
/tools/bpf/bpftool/Documentation/
Dbpftool-perf.rst77 [{"pid":21711,"fd":5,"prog_id":5,"fd_type":"kprobe","func":"__x64_sys_write","offset":0}, \
78 … {"pid":21765,"fd":5,"prog_id":7,"fd_type":"kretprobe","func":"__x64_sys_nanosleep","offset":0}, \
79 {"pid":21767,"fd":5,"prog_id":8,"fd_type":"tracepoint","tracepoint":"sys_enter_nanosleep"}, \
80 {"pid":21800,"fd":5,"prog_id":9,"fd_type":"uprobe","filename":"/home/yhs/a.out","offset":1159}]
/tools/lib/bpf/
Dbpf.h171 __u32 *buf_len, __u32 *prog_id, __u32 *fd_type,
Dbpf.c685 __u32 *prog_id, __u32 *fd_type, __u64 *probe_offset, in bpf_task_fd_query() argument
700 *fd_type = attr.task_fd_query.fd_type; in bpf_task_fd_query()
/tools/include/uapi/linux/
Dbpf.h509 __u32 fd_type; /* output: BPF_FD_TYPE_* */ member