Home
last modified time | relevance | path

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

/linux-6.1.9/samples/bpf/
Dsyscall_tp_user.c48 static int test(char *filename, int num_progs) in test() argument
50 int map0_fds[num_progs], map1_fds[num_progs], fd, i, j = 0; in test()
51 struct bpf_link *links[num_progs * 4]; in test()
52 struct bpf_object *objs[num_progs]; in test()
55 for (i = 0; i < num_progs; i++) { in test()
104 for (i = 0; i < num_progs; i++) { in test()
120 int opt, num_progs = 1; in main() local
126 num_progs = atoi(optarg); in main()
137 return test(filename, num_progs); in main()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dtp_attach_query.c6 const int num_progs = 3; in serial_test_tp_attach_query() local
7 int i, j, bytes, efd, err, prog_fd[num_progs], pmu_fd[num_progs]; in serial_test_tp_attach_query()
8 __u32 duration = 0, info_len, saved_prog_ids[num_progs]; in serial_test_tp_attach_query()
12 struct bpf_object *obj[num_progs]; in serial_test_tp_attach_query()
16 for (i = 0; i < num_progs; i++) in serial_test_tp_attach_query()
36 query = malloc(sizeof(*query) + sizeof(__u32) * num_progs); in serial_test_tp_attach_query()
37 for (i = 0; i < num_progs; i++) { in serial_test_tp_attach_query()
67 query->ids_len = num_progs; in serial_test_tp_attach_query()
110 query->ids_len = num_progs; in serial_test_tp_attach_query()
125 i = num_progs - 1; in serial_test_tp_attach_query()
/linux-6.1.9/kernel/bpf/
Ddispatcher.c64 d->num_progs++; in bpf_dispatcher_add_prog()
83 d->num_progs--; in bpf_dispatcher_remove_prog()
103 return arch_prepare_bpf_dispatcher(image, buf, &ips[0], d->num_progs); in bpf_dispatcher_prepare()
114 new = d->num_progs ? d->image + noff : NULL; in bpf_dispatcher_update()
115 tmp = d->num_progs ? d->rw_image + noff : NULL; in bpf_dispatcher_update()
158 prev_num_progs = d->num_progs; in bpf_dispatcher_change_prog()
/linux-6.1.9/include/linux/
Dbpf.h952 int num_progs; member
1010 .num_progs = 0, \