Home
last modified time | relevance | path

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

/tools/bpf/bpftool/
Dperf.c25 __u32 len, prog_id, fd_type; in has_perf_query_support() local
44 bpf_task_fd_query(getpid(), fd, 0, buf, &len, &prog_id, 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
69 jsonw_uint_field(json_wtr, "prog_id", prog_id); 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
116 printf("pid %d fd %d: prog_id %u ", pid, fd, prog_id); 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.rst67 pid 21711 fd 5: prog_id 5 kprobe func __x64_sys_write offset 0
68 pid 21765 fd 5: prog_id 7 kretprobe func __x64_sys_nanosleep offset 0
69 pid 21767 fd 5: prog_id 8 tracepoint sys_enter_nanosleep
70 pid 21800 fd 5: prog_id 9 uprobe filename /home/yhs/a.out offset 1159
77 [{"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/testing/selftests/bpf/prog_tests/
Dtask_fd_query_rawtp.c8 __u32 len, prog_id, fd_type; in test_task_fd_query_rawtp() local
24 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp()
38 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp()
50 err = bpf_task_fd_query(getpid(), efd, 0, 0, &len, &prog_id, in test_task_fd_query_rawtp()
62 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp()
Dtask_fd_query_tp.c11 __u32 len, prog_id, fd_type; in test_task_fd_query_tp_core() local
54 err = bpf_task_fd_query(getpid(), pmu_fd, 0, buf, &len, &prog_id, in test_task_fd_query_tp_core()
/tools/testing/selftests/bpf/
Dtest_skb_cgroup_id_user.c80 int get_map_fd_by_prog_id(int prog_id) in get_map_fd_by_prog_id() argument
88 prog_fd = bpf_prog_get_fd_by_id(prog_id); in get_map_fd_by_prog_id()
90 log_err("Failed to get fd by prog id %d", prog_id); in get_map_fd_by_prog_id()
116 int check_ancestor_cgroup_ids(int prog_id) in check_ancestor_cgroup_ids() argument
128 map_fd = get_map_fd_by_prog_id(prog_id); in check_ancestor_cgroup_ids()
Dtest_tcp_check_syncookie_user.c81 static int get_map_fd_by_prog_id(int prog_id, bool *xdp) in get_map_fd_by_prog_id() argument
89 prog_fd = bpf_prog_get_fd_by_id(prog_id); in get_map_fd_by_prog_id()
91 log_err("Failed to get fd by prog id %d", prog_id); in get_map_fd_by_prog_id()
/tools/perf/tests/
Dbpf.c62 enum test_llvm__testcase prog_id; member
72 .prog_id = LLVM_TESTCASE_BASE,
81 .prog_id = LLVM_TESTCASE_BASE,
92 .prog_id = LLVM_TESTCASE_BPF_PROLOGUE,
102 .prog_id = LLVM_TESTCASE_BPF_RELOCATION,
232 bpf_testcase_table[idx].prog_id, in __test__bpf()
/tools/perf/util/
Denv.c19 __u32 prog_id = info_node->info_linear->info.id; in perf_env__insert_bpf_prog_info() local
30 if (prog_id < node->info_linear->info.id) { in perf_env__insert_bpf_prog_info()
32 } else if (prog_id > node->info_linear->info.id) { in perf_env__insert_bpf_prog_info()
35 pr_debug("duplicated bpf prog info %u\n", prog_id); in perf_env__insert_bpf_prog_info()
48 __u32 prog_id) in perf_env__find_bpf_prog_info() argument
58 if (prog_id < node->info_linear->info.id) in perf_env__find_bpf_prog_info()
60 else if (prog_id > node->info_linear->info.id) in perf_env__find_bpf_prog_info()
Denv.h119 __u32 prog_id);
/tools/lib/bpf/
Dxsk.c519 __u32 prog_id = 0; in xsk_setup_xdp_prog() local
522 err = bpf_get_link_xdp_id(xsk->ifindex, &prog_id, in xsk_setup_xdp_prog()
527 if (!prog_id) { in xsk_setup_xdp_prog()
538 xsk->prog_fd = bpf_prog_get_fd_by_id(prog_id); in xsk_setup_xdp_prog()
Dbpf.c606 attr.prog_id = id; in bpf_prog_get_fd_by_id()
685 __u32 *prog_id, __u32 *fd_type, __u64 *probe_offset, in bpf_task_fd_query() argument
699 *prog_id = attr.task_fd_query.prog_id; in bpf_task_fd_query()
Dbpf.h171 __u32 *buf_len, __u32 *prog_id, __u32 *fd_type,
Dnetlink.c253 int bpf_get_link_xdp_id(int ifindex, __u32 *prog_id, __u32 flags) in bpf_get_link_xdp_id() argument
278 *prog_id = xdp_id.id; in bpf_get_link_xdp_id()
Dlibbpf.h360 LIBBPF_API int bpf_get_link_xdp_id(int ifindex, __u32 *prog_id, __u32 flags);
/tools/include/uapi/linux/
Dbpf.h462 __u32 prog_id; member
508 __u32 prog_id; /* output: prod_id */ member