/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | test_btf_map_in_map.c | 7 __uint(type, BPF_MAP_TYPE_ARRAY); 8 __uint(max_entries, 1); 15 __uint(type, BPF_MAP_TYPE_ARRAY); 16 __uint(max_entries, 2); 22 __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); 23 __uint(max_entries, 3); 28 __uint(type, BPF_MAP_TYPE_ARRAY); 31 __uint(max_entries, 1); 45 __uint(type, BPF_MAP_TYPE_ARRAY); 46 __uint(map_flags, BPF_F_INNER_MAP); [all …]
|
D | map_ptr_kern.c | 99 __uint(type, BPF_MAP_TYPE_HASH); 100 __uint(map_flags, BPF_F_NO_PREALLOC); /* to test bpf_htab.count */ 101 __uint(max_entries, MAX_ENTRIES); 136 __uint(type, BPF_MAP_TYPE_ARRAY); 137 __uint(max_entries, MAX_ENTRIES); 168 __uint(type, BPF_MAP_TYPE_PROG_ARRAY); 169 __uint(max_entries, MAX_ENTRIES); 185 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); 186 __uint(max_entries, MAX_ENTRIES); 202 __uint(type, BPF_MAP_TYPE_PERCPU_HASH); [all …]
|
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); 27 __uint(type, BPF_MAP_TYPE_LRU_HASH); 28 __uint(max_entries, 1); 34 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 35 __uint(max_entries, 1); 41 __uint(type, BPF_MAP_TYPE_PERCPU_HASH); 42 __uint(max_entries, 1); [all …]
|
D | test_sockmap_kern.h | 32 __uint(type, TEST_MAP_TYPE); 33 __uint(max_entries, 20); 34 __uint(key_size, sizeof(int)); 35 __uint(value_size, sizeof(int)); 39 __uint(type, TEST_MAP_TYPE); 40 __uint(max_entries, 20); 41 __uint(key_size, sizeof(int)); 42 __uint(value_size, sizeof(int)); 46 __uint(type, TEST_MAP_TYPE); 47 __uint(max_entries, 20); [all …]
|
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));
|
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);
|
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);
|
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);
|
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));
|
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);
|
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);
|
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);
|
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); 142 __uint(type, BPF_MAP_TYPE_ARRAY); 143 __uint(max_entries, 1); 149 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); 150 __uint(max_entries, 32); [all …]
|
D | bloom_filter_map.c | 12 __uint(type, BPF_MAP_TYPE_ARRAY); 15 __uint(max_entries, 1000); 19 __uint(type, BPF_MAP_TYPE_BLOOM_FILTER); 21 __uint(max_entries, 10000); 22 __uint(map_extra, 5); 26 __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); 29 __uint(max_entries, 1);
|
D | test_select_reuseport_kern.c | 23 __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); 24 __uint(max_entries, 1); 30 __uint(type, BPF_MAP_TYPE_ARRAY); 31 __uint(max_entries, NR_RESULTS); 37 __uint(type, BPF_MAP_TYPE_ARRAY); 38 __uint(max_entries, 1); 44 __uint(type, BPF_MAP_TYPE_ARRAY); 45 __uint(max_entries, 1); 51 __uint(type, BPF_MAP_TYPE_ARRAY); 52 __uint(max_entries, 1);
|
D | test_map_in_map.c | 9 __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); 10 __uint(max_entries, 1); 11 __uint(map_flags, 0); 17 __uint(type, BPF_MAP_TYPE_HASH_OF_MAPS); 18 __uint(max_entries, 1); 19 __uint(map_flags, 0);
|
D | test_sockmap_update.c | 7 __uint(type, BPF_MAP_TYPE_SOCKMAP); 8 __uint(max_entries, 1); 14 __uint(type, BPF_MAP_TYPE_SOCKMAP); 15 __uint(max_entries, 1); 21 __uint(type, BPF_MAP_TYPE_SOCKHASH); 22 __uint(max_entries, 1);
|
D | bpf_iter_sockmap.c | 12 __uint(type, BPF_MAP_TYPE_SOCKMAP); 13 __uint(max_entries, 64); 19 __uint(type, BPF_MAP_TYPE_SOCKHASH); 20 __uint(max_entries, 64); 26 __uint(type, BPF_MAP_TYPE_SOCKHASH); 27 __uint(max_entries, 64);
|
D | test_skmsg_load_helpers.c | 7 __uint(type, BPF_MAP_TYPE_SOCKMAP); 8 __uint(max_entries, 2); 14 __uint(type, BPF_MAP_TYPE_SOCKHASH); 15 __uint(max_entries, 2); 21 __uint(type, BPF_MAP_TYPE_SK_STORAGE); 22 __uint(map_flags, BPF_F_NO_PREALLOC);
|
D | netns_cookie_prog.c | 10 __uint(type, BPF_MAP_TYPE_SK_STORAGE); 11 __uint(map_flags, BPF_F_NO_PREALLOC); 17 __uint(type, BPF_MAP_TYPE_SK_STORAGE); 18 __uint(map_flags, BPF_F_NO_PREALLOC); 24 __uint(type, BPF_MAP_TYPE_SOCKMAP); 25 __uint(max_entries, 2);
|
D | timer_mim_reject.c | 16 __uint(type, BPF_MAP_TYPE_HASH); 17 __uint(max_entries, 1024); 27 __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); 28 __uint(max_entries, 2); 29 __uint(key_size, sizeof(int)); 30 __uint(value_size, sizeof(int));
|
/external/bpftool/src/skeleton/ |
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)); 25 __uint(value_size, sizeof(struct bpf_perf_event_value)); 30 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); [all …]
|
/external/bcc/libbpf-tools/ |
D | tcpconnect.bpf.c | 25 __uint(type, BPF_MAP_TYPE_HASH); 26 __uint(max_entries, MAX_ENTRIES); 29 __uint(map_flags, BPF_F_NO_PREALLOC); 33 __uint(type, BPF_MAP_TYPE_HASH); 34 __uint(max_entries, MAX_ENTRIES); 37 __uint(map_flags, BPF_F_NO_PREALLOC); 41 __uint(type, BPF_MAP_TYPE_HASH); 42 __uint(max_entries, MAX_ENTRIES); 45 __uint(map_flags, BPF_F_NO_PREALLOC); 49 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); [all …]
|
D | biosnoop.bpf.c | 19 __uint(type, BPF_MAP_TYPE_CGROUP_ARRAY); 22 __uint(max_entries, 1); 31 __uint(type, BPF_MAP_TYPE_HASH); 32 __uint(max_entries, MAX_ENTRIES); 35 __uint(map_flags, BPF_F_NO_PREALLOC); 45 __uint(type, BPF_MAP_TYPE_HASH); 46 __uint(max_entries, MAX_ENTRIES); 52 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); 53 __uint(key_size, sizeof(u32)); 54 __uint(value_size, sizeof(u32));
|
D | biolatency.bpf.c | 23 __uint(type, BPF_MAP_TYPE_CGROUP_ARRAY); 26 __uint(max_entries, 1); 30 __uint(type, BPF_MAP_TYPE_HASH); 31 __uint(max_entries, MAX_ENTRIES); 34 __uint(map_flags, BPF_F_NO_PREALLOC); 40 __uint(type, BPF_MAP_TYPE_HASH); 41 __uint(max_entries, MAX_ENTRIES); 44 __uint(map_flags, BPF_F_NO_PREALLOC);
|