Searched refs:num_progs (Results 1 – 4 of 4) sorted by relevance
/linux/samples/bpf/ |
A D | syscall_tp_user.c | 46 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() 118 int opt, num_progs = 1; in main() local 124 num_progs = atoi(optarg); in main() 135 return test(filename, num_progs); in main()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | tp_attach_query.c | 6 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/kernel/bpf/ |
A D | dispatcher.c | 63 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()
|
/linux/include/linux/ |
A D | bpf.h | 715 int num_progs; member 740 .num_progs = 0, \
|
Completed in 13 milliseconds