Searched refs:prog_cnt (Results 1 – 11 of 11) sorted by relevance
/tools/testing/selftests/bpf/ |
D | test_lirc_mode2_user.c | 54 u32 prog_ids[10], prog_flags[10], prog_cnt; in main() local 87 prog_cnt = 10; in main() 89 &prog_cnt); in main() 95 if (prog_cnt != 0) { in main() 155 prog_cnt = 10; in main() 157 &prog_cnt); in main() 163 if (prog_cnt != 1) { in main()
|
D | test_cgroup_attach.c | 291 __u32 prog_ids[4], prog_cnt = 0, attach_flags, saved_prog_id; in test_multiprog() local 368 NULL, NULL, &prog_cnt) == 0); in test_multiprog() 369 assert(prog_cnt == 4); in test_multiprog() 372 &attach_flags, prog_ids, &prog_cnt) == 0); in test_multiprog() 373 assert(prog_cnt == 4); in test_multiprog() 378 prog_cnt = 2; in test_multiprog() 380 &attach_flags, prog_ids, &prog_cnt) == -1 && in test_multiprog() 382 assert(prog_cnt == 4); in test_multiprog() 388 NULL, prog_ids, &prog_cnt) == 0); in test_multiprog() 389 assert(prog_cnt == 1); in test_multiprog() [all …]
|
D | test_dev_cgroup.c | 28 __u32 prog_cnt; in main() local 60 &prog_cnt)) { in main()
|
D | test_netcnt.c | 46 __u32 prog_cnt; in main() local 90 &prog_cnt)) { in main()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | tp_attach_query.c | 69 if (CHECK(err || query->prog_cnt != 0, in test_tp_attach_query() 72 err, errno, query->prog_cnt)) in test_tp_attach_query() 85 if (CHECK(err || query->prog_cnt != 2, in test_tp_attach_query() 88 err, errno, query->prog_cnt)) in test_tp_attach_query() 103 if (CHECK(!err || errno != ENOSPC || query->prog_cnt != 2, in test_tp_attach_query() 106 err, errno, query->prog_cnt)) in test_tp_attach_query() 112 if (CHECK(err || query->prog_cnt != (i + 1), in test_tp_attach_query() 115 err, errno, query->prog_cnt)) in test_tp_attach_query()
|
/tools/bpf/bpftool/ |
D | cgroup.c | 109 __u32 prog_cnt = 0; in count_attached_bpf_progs() local 113 NULL, &prog_cnt); in count_attached_bpf_progs() 117 return prog_cnt; in count_attached_bpf_progs() 144 __u32 prog_cnt, iter; in show_attached_bpf_progs() local 149 prog_cnt = ARRAY_SIZE(prog_ids); in show_attached_bpf_progs() 151 prog_ids, &prog_cnt); in show_attached_bpf_progs() 155 if (prog_cnt == 0) in show_attached_bpf_progs() 173 for (iter = 0; iter < prog_cnt; iter++) in show_attached_bpf_progs()
|
D | net.c | 222 __u32 prog_cnt; in query_flow_dissector() local 232 prog_cnt = ARRAY_SIZE(prog_ids); in query_flow_dissector() 234 &attach_flags, prog_ids, &prog_cnt); in query_flow_dissector() 248 if (prog_cnt == 1) in query_flow_dissector()
|
/tools/lib/bpf/ |
D | bpf.c | 500 __u32 *attach_flags, __u32 *prog_ids, __u32 *prog_cnt) in bpf_prog_query() argument 509 attr.query.prog_cnt = *prog_cnt; in bpf_prog_query() 515 *prog_cnt = attr.query.prog_cnt; in bpf_prog_query()
|
D | bpf.h | 166 __u32 *prog_ids, __u32 *prog_cnt);
|
/tools/include/uapi/linux/ |
D | perf_event.h | 447 __u32 prog_cnt; member
|
D | bpf.h | 482 __u32 prog_cnt; member
|