Home
last modified time | relevance | path

Searched refs:num_progs (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/samples/bpf/
Dsyscall_tp_user.c46 static int test(char *filename, int num_progs) in test() argument
48 int map0_fds[num_progs], map1_fds[num_progs], fd, i, j = 0; in test()
49 struct bpf_link *links[num_progs * 4]; in test()
50 struct bpf_object *objs[num_progs]; in test()
53 for (i = 0; i < num_progs; i++) { in test()
102 for (i = 0; i < num_progs; i++) { in test()
119 int opt, num_progs = 1; in main() local
125 num_progs = atoi(optarg); in main()
137 return test(filename, num_progs); in main()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dtp_attach_query.c6 const int num_progs = 3; in test_tp_attach_query() local
7 int i, j, bytes, efd, err, prog_fd[num_progs], pmu_fd[num_progs]; in test_tp_attach_query()
8 __u32 duration = 0, info_len, saved_prog_ids[num_progs]; in test_tp_attach_query()
12 struct bpf_object *obj[num_progs]; in test_tp_attach_query()
16 for (i = 0; i < num_progs; i++) in test_tp_attach_query()
36 query = malloc(sizeof(*query) + sizeof(__u32) * num_progs); in test_tp_attach_query()
37 for (i = 0; i < num_progs; i++) { in test_tp_attach_query()
67 query->ids_len = num_progs; in test_tp_attach_query()
110 query->ids_len = num_progs; in test_tp_attach_query()
125 i = num_progs - 1; in test_tp_attach_query()
/kernel/linux/linux-5.10/kernel/bpf/
Ddispatcher.c63 d->num_progs++; in bpf_dispatcher_add_prog()
82 d->num_progs--; in bpf_dispatcher_remove_prog()
102 return arch_prepare_bpf_dispatcher(image, &ips[0], d->num_progs); in bpf_dispatcher_prepare()
119 new = d->num_progs ? d->image + noff : NULL; in bpf_dispatcher_update()
149 prev_num_progs = d->num_progs; in bpf_dispatcher_change_prog()
/kernel/linux/linux-5.10/include/linux/
Dbpf.h708 int num_progs; member
733 .num_progs = 0, \