/linux/tools/testing/selftests/bpf/progs/ |
A D | test_btf_map_in_map.c | 8 __uint(max_entries, 1); 16 __uint(max_entries, 2); 23 __uint(max_entries, 3); 31 __uint(max_entries, 1); 47 __uint(max_entries, 3); 56 __uint(max_entries, 5); 63 __uint(max_entries, 3); 83 __uint(max_entries, 5); 99 __uint(max_entries, 1); 106 __uint(max_entries, 2); [all …]
|
A D | map_ptr_kern.c | 99 __uint(type, BPF_MAP_TYPE_HASH); 101 __uint(max_entries, MAX_ENTRIES); 136 __uint(type, BPF_MAP_TYPE_ARRAY); 137 __uint(max_entries, MAX_ENTRIES); 169 __uint(max_entries, MAX_ENTRIES); 186 __uint(max_entries, MAX_ENTRIES); 203 __uint(max_entries, MAX_ENTRIES); 220 __uint(max_entries, MAX_ENTRIES); 241 __uint(max_entries, MAX_ENTRIES); 339 __uint(max_entries, 1); [all …]
|
A D | lsm.c | 13 __uint(type, BPF_MAP_TYPE_ARRAY); 14 __uint(max_entries, 1); 20 __uint(type, BPF_MAP_TYPE_HASH); 21 __uint(max_entries, 1); 28 __uint(max_entries, 1); 35 __uint(max_entries, 1); 42 __uint(max_entries, 1); 49 __uint(max_entries, 1); 56 __uint(max_entries, 1); 63 __uint(max_entries, 1); [all …]
|
A D | test_sockmap_kern.h | 32 __uint(type, TEST_MAP_TYPE); 33 __uint(max_entries, 20); 39 __uint(type, TEST_MAP_TYPE); 40 __uint(max_entries, 20); 47 __uint(max_entries, 20); 54 __uint(max_entries, 1); 61 __uint(max_entries, 1); 68 __uint(max_entries, 6); 75 __uint(max_entries, 1); 82 __uint(max_entries, 3); [all …]
|
A D | test_queue_stack_map.h | 12 __uint(type, MAP_TYPE); 13 __uint(max_entries, 32); 14 __uint(map_flags, 0); 15 __uint(key_size, 0); 16 __uint(value_size, sizeof(__u32)); 20 __uint(type, MAP_TYPE); 21 __uint(max_entries, 32); 22 __uint(map_flags, 0); 23 __uint(key_size, 0); 24 __uint(value_size, sizeof(__u32));
|
A D | xdp_redirect_multi_kern.c | 16 __uint(type, BPF_MAP_TYPE_DEVMAP); 17 __uint(key_size, sizeof(int)); 18 __uint(value_size, sizeof(int)); 19 __uint(max_entries, 1024); 23 __uint(type, BPF_MAP_TYPE_DEVMAP_HASH); 24 __uint(key_size, sizeof(int)); 25 __uint(value_size, sizeof(struct bpf_devmap_val)); 26 __uint(max_entries, 128); 31 __uint(type, BPF_MAP_TYPE_HASH); 34 __uint(max_entries, 128);
|
A D | test_pinning.c | 7 __uint(type, BPF_MAP_TYPE_ARRAY); 8 __uint(max_entries, 1); 11 __uint(pinning, LIBBPF_PIN_BY_NAME); 15 __uint(type, BPF_MAP_TYPE_HASH); 16 __uint(max_entries, 1); 22 __uint(type, BPF_MAP_TYPE_HASH); 23 __uint(max_entries, 1); 26 __uint(pinning, LIBBPF_PIN_NONE);
|
A D | test_stacktrace_build_id.c | 12 __uint(type, BPF_MAP_TYPE_ARRAY); 13 __uint(max_entries, 1); 19 __uint(type, BPF_MAP_TYPE_HASH); 20 __uint(max_entries, 16384); 28 __uint(type, BPF_MAP_TYPE_STACK_TRACE); 29 __uint(max_entries, 128); 30 __uint(map_flags, BPF_F_STACK_BUILD_ID); 36 __uint(type, BPF_MAP_TYPE_ARRAY); 37 __uint(max_entries, 128);
|
A D | pyperf.h | 121 __uint(type, BPF_MAP_TYPE_HASH); 122 __uint(max_entries, 1); 128 __uint(type, BPF_MAP_TYPE_HASH); 129 __uint(max_entries, 1); 135 __uint(type, BPF_MAP_TYPE_HASH); 136 __uint(max_entries, 1); 143 __uint(max_entries, 1); 150 __uint(max_entries, 32); 151 __uint(key_size, sizeof(int)); 157 __uint(max_entries, 1000); [all …]
|
A D | sockmap_verdict_prog.c | 6 __uint(type, BPF_MAP_TYPE_SOCKMAP); 7 __uint(max_entries, 20); 13 __uint(type, BPF_MAP_TYPE_SOCKMAP); 14 __uint(max_entries, 20); 20 __uint(type, BPF_MAP_TYPE_SOCKMAP); 21 __uint(max_entries, 20); 27 __uint(type, BPF_MAP_TYPE_ARRAY); 28 __uint(max_entries, 20);
|
A D | tailcall_bpf2bpf4.c | 6 __uint(type, BPF_MAP_TYPE_ARRAY); 7 __uint(max_entries, 1); 8 __uint(key_size, sizeof(__u32)); 9 __uint(value_size, sizeof(__u32)); 13 __uint(type, BPF_MAP_TYPE_PROG_ARRAY); 14 __uint(max_entries, 3); 15 __uint(key_size, sizeof(__u32)); 16 __uint(value_size, sizeof(__u32));
|
A D | test_stacktrace_map.c | 12 __uint(type, BPF_MAP_TYPE_ARRAY); 13 __uint(max_entries, 1); 19 __uint(type, BPF_MAP_TYPE_HASH); 20 __uint(max_entries, 16384); 28 __uint(type, BPF_MAP_TYPE_STACK_TRACE); 29 __uint(max_entries, 16384); 35 __uint(type, BPF_MAP_TYPE_ARRAY); 36 __uint(max_entries, 16384);
|
A D | test_get_stack_rawtp.c | 19 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); 20 __uint(max_entries, 2); 21 __uint(key_size, sizeof(int)); 22 __uint(value_size, sizeof(__u32)); 26 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 27 __uint(max_entries, 1); 51 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 52 __uint(max_entries, 1);
|
/linux/samples/bpf/ |
A D | map_perf_test_kern.c | 20 __uint(type, BPF_MAP_TYPE_HASH); 23 __uint(max_entries, MAX_ENTRIES); 30 __uint(max_entries, 10000); 37 __uint(max_entries, 10000); 45 __uint(max_entries, MAX_ENTRIES); 47 __uint(numa_node, 0); 53 __uint(key_size, sizeof(u32)); 62 __uint(key_size, sizeof(u32)); 77 __uint(key_size, sizeof(u32)); 85 __uint(key_size, 8); [all …]
|
A D | test_map_in_map_kern.c | 22 __uint(type, BPF_MAP_TYPE_ARRAY); 30 __uint(type, BPF_MAP_TYPE_HASH); 33 __uint(max_entries, 1); 38 __uint(type, BPF_MAP_TYPE_HASH); 41 __uint(max_entries, 1); 49 __uint(max_entries, 1); 56 __uint(key_size, sizeof(u32)); 63 __uint(max_entries, 1); 64 __uint(key_size, sizeof(u32)); 71 __uint(max_entries, 1); [all …]
|
A D | xdp_router_ipv4_kern.c | 47 __uint(key_size, 8); 49 __uint(max_entries, 50); 58 __uint(max_entries, 256); 63 __uint(type, BPF_MAP_TYPE_HASH); 66 __uint(max_entries, 50); 71 __uint(type, BPF_MAP_TYPE_HASH); 74 __uint(max_entries, 50); 78 __uint(type, BPF_MAP_TYPE_DEVMAP); 79 __uint(key_size, sizeof(int)); 80 __uint(value_size, sizeof(int)); [all …]
|
A D | xdp_redirect_map_multi.bpf.c | 9 __uint(type, BPF_MAP_TYPE_DEVMAP_HASH); 10 __uint(key_size, sizeof(int)); 11 __uint(value_size, sizeof(int)); 12 __uint(max_entries, 32); 16 __uint(type, BPF_MAP_TYPE_DEVMAP_HASH); 17 __uint(key_size, sizeof(int)); 18 __uint(value_size, sizeof(struct bpf_devmap_val)); 19 __uint(max_entries, 32); 24 __uint(type, BPF_MAP_TYPE_HASH); 27 __uint(max_entries, 32);
|
A D | spintest_kern.c | 16 __uint(type, BPF_MAP_TYPE_HASH); 19 __uint(max_entries, 1024); 22 __uint(type, BPF_MAP_TYPE_PERCPU_HASH); 23 __uint(key_size, sizeof(long)); 24 __uint(value_size, sizeof(long)); 25 __uint(max_entries, 1024); 29 __uint(type, BPF_MAP_TYPE_STACK_TRACE); 30 __uint(key_size, sizeof(u32)); 31 __uint(value_size, PERF_MAX_STACK_DEPTH * sizeof(u64)); 32 __uint(max_entries, 10000);
|
A D | tracex6_kern.c | 7 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); 8 __uint(key_size, sizeof(int)); 9 __uint(value_size, sizeof(u32)); 10 __uint(max_entries, 64); 14 __uint(type, BPF_MAP_TYPE_HASH); 17 __uint(max_entries, 64); 21 __uint(type, BPF_MAP_TYPE_HASH); 24 __uint(max_entries, 64);
|
A D | xdp_redirect_map.bpf.c | 22 __uint(type, BPF_MAP_TYPE_DEVMAP); 23 __uint(key_size, sizeof(int)); 24 __uint(value_size, sizeof(int)); 25 __uint(max_entries, 1); 29 __uint(type, BPF_MAP_TYPE_DEVMAP); 30 __uint(key_size, sizeof(int)); 31 __uint(value_size, sizeof(struct bpf_devmap_val)); 32 __uint(max_entries, 1);
|
/linux/tools/perf/util/bpf_skel/ |
A D | bperf_leader.bpf.c | 8 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); 9 __uint(key_size, sizeof(__u32)); 10 __uint(value_size, sizeof(int)); 11 __uint(map_flags, BPF_F_PRESERVE_ELEMS); 15 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 16 __uint(key_size, sizeof(__u32)); 17 __uint(value_size, sizeof(struct bpf_perf_event_value)); 18 __uint(max_entries, 1); 22 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 23 __uint(key_size, sizeof(__u32)); [all …]
|
A D | bperf_follower.bpf.c | 9 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 10 __uint(key_size, sizeof(__u32)); 11 __uint(value_size, sizeof(struct bpf_perf_event_value)); 12 __uint(max_entries, 1); 16 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 17 __uint(key_size, sizeof(__u32)); 18 __uint(value_size, sizeof(struct bpf_perf_event_value)); 19 __uint(max_entries, 1); 23 __uint(type, BPF_MAP_TYPE_HASH); 24 __uint(key_size, sizeof(__u32)); [all …]
|
A D | bpf_prog_profiler.bpf.c | 9 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); 10 __uint(key_size, sizeof(__u32)); 11 __uint(value_size, sizeof(int)); 16 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 17 __uint(key_size, sizeof(__u32)); 18 __uint(value_size, sizeof(struct bpf_perf_event_value)); 19 __uint(max_entries, 1); 24 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 25 __uint(key_size, sizeof(__u32)); 26 __uint(value_size, sizeof(struct bpf_perf_event_value)); [all …]
|
A D | bperf_cgroup.bpf.c | 18 __uint(key_size, sizeof(__u32)); 19 __uint(value_size, sizeof(int)); 20 __uint(max_entries, 1); 25 __uint(type, BPF_MAP_TYPE_HASH); 26 __uint(key_size, sizeof(__u64)); 27 __uint(value_size, sizeof(__u32)); 28 __uint(max_entries, 1); 33 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 34 __uint(key_size, sizeof(__u32)); 41 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); [all …]
|
/linux/tools/bpf/bpftool/skeleton/ |
A D | profiler.bpf.c | 9 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); 10 __uint(key_size, sizeof(u32)); 11 __uint(value_size, sizeof(int)); 16 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 17 __uint(key_size, sizeof(u32)); 18 __uint(value_size, sizeof(struct bpf_perf_event_value)); 23 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 24 __uint(key_size, sizeof(u32)); 30 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 31 __uint(key_size, sizeof(u32)); [all …]
|