/linux-6.6.21/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 | test_unpriv_bpf_disabled.c | 16 __uint(type, BPF_MAP_TYPE_ARRAY); 17 __uint(max_entries, 1); 23 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 24 __uint(max_entries, 1); 30 __uint(type, BPF_MAP_TYPE_HASH); 31 __uint(max_entries, 1); 37 __uint(type, BPF_MAP_TYPE_PERCPU_HASH); 38 __uint(max_entries, 1); 44 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); 50 __uint(type, BPF_MAP_TYPE_RINGBUF); [all …]
|
D | lsm.c | 15 __uint(type, BPF_MAP_TYPE_ARRAY); 16 __uint(max_entries, 1); 22 __uint(type, BPF_MAP_TYPE_HASH); 23 __uint(max_entries, 1); 29 __uint(type, BPF_MAP_TYPE_LRU_HASH); 30 __uint(max_entries, 1); 36 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 37 __uint(max_entries, 1); 43 __uint(type, BPF_MAP_TYPE_PERCPU_HASH); 44 __uint(max_entries, 1); [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); 141 __uint(type, BPF_MAP_TYPE_ARRAY); 142 __uint(max_entries, MAX_ENTRIES); 173 __uint(type, BPF_MAP_TYPE_PROG_ARRAY); 174 __uint(max_entries, MAX_ENTRIES); 190 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); 191 __uint(max_entries, MAX_ENTRIES); 207 __uint(type, BPF_MAP_TYPE_PERCPU_HASH); [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 | verifier_map_ptr_mixing.c | 16 __uint(type, BPF_MAP_TYPE_ARRAY); 17 __uint(max_entries, 1); 23 __uint(type, BPF_MAP_TYPE_HASH); 24 __uint(max_entries, 1); 30 __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); 31 __uint(max_entries, 1); 35 __uint(type, BPF_MAP_TYPE_ARRAY); 36 __uint(max_entries, 1); 48 __uint(type, BPF_MAP_TYPE_PROG_ARRAY); 49 __uint(max_entries, 4); [all …]
|
D | test_sockmap_kern.h | 33 __uint(type, TEST_MAP_TYPE); 34 __uint(max_entries, 20); 35 __uint(key_size, sizeof(int)); 36 __uint(value_size, sizeof(int)); 40 __uint(type, TEST_MAP_TYPE); 41 __uint(max_entries, 20); 42 __uint(key_size, sizeof(int)); 43 __uint(value_size, sizeof(int)); 47 __uint(type, TEST_MAP_TYPE); 48 __uint(max_entries, 20); [all …]
|
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 | map_kptr.c | 13 __uint(type, BPF_MAP_TYPE_ARRAY); 16 __uint(max_entries, 1); 20 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 23 __uint(max_entries, 1); 27 __uint(type, BPF_MAP_TYPE_HASH); 30 __uint(max_entries, 1); 34 __uint(type, BPF_MAP_TYPE_PERCPU_HASH); 37 __uint(max_entries, 1); 41 __uint(type, BPF_MAP_TYPE_HASH); 44 __uint(max_entries, 1); [all …]
|
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));
|
/linux-6.6.21/samples/bpf/ |
D | map_perf_test.bpf.c | 18 __uint(type, BPF_MAP_TYPE_HASH); 21 __uint(max_entries, MAX_ENTRIES); 25 __uint(type, BPF_MAP_TYPE_LRU_HASH); 28 __uint(max_entries, 10000); 32 __uint(type, BPF_MAP_TYPE_LRU_HASH); 35 __uint(max_entries, 10000); 36 __uint(map_flags, BPF_F_NO_COMMON_LRU); 40 __uint(type, BPF_MAP_TYPE_LRU_HASH); 43 __uint(max_entries, MAX_ENTRIES); 44 __uint(map_flags, BPF_F_NUMA_NODE); [all …]
|
D | test_map_in_map.bpf.c | 22 __uint(type, BPF_MAP_TYPE_ARRAY); 25 __uint(max_entries, MAX_NR_PORTS); 30 __uint(type, BPF_MAP_TYPE_HASH); 33 __uint(max_entries, 1); 38 __uint(type, BPF_MAP_TYPE_HASH); 41 __uint(max_entries, 1); 46 __uint(type, BPF_MAP_TYPE_HASH); 49 __uint(max_entries, 1); 54 __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); 55 __uint(max_entries, MAX_NR_PORTS); [all …]
|
D | spintest.bpf.c | 17 __uint(type, BPF_MAP_TYPE_HASH); 20 __uint(max_entries, 1024); 23 __uint(type, BPF_MAP_TYPE_PERCPU_HASH); 24 __uint(key_size, sizeof(long)); 25 __uint(value_size, sizeof(long)); 26 __uint(max_entries, 1024); 30 __uint(type, BPF_MAP_TYPE_STACK_TRACE); 31 __uint(key_size, sizeof(u32)); 32 __uint(value_size, PERF_MAX_STACK_DEPTH * sizeof(u64)); 33 __uint(max_entries, 10000);
|
D | xdp_router_ipv4.bpf.c | 43 __uint(type, BPF_MAP_TYPE_LPM_TRIE); 44 __uint(key_size, 8); 45 __uint(value_size, sizeof(struct trie_value)); 46 __uint(max_entries, 50); 47 __uint(map_flags, BPF_F_NO_PREALLOC); 52 __uint(type, BPF_MAP_TYPE_HASH); 55 __uint(max_entries, 50); 60 __uint(type, BPF_MAP_TYPE_HASH); 63 __uint(max_entries, 50); 67 __uint(type, BPF_MAP_TYPE_DEVMAP); [all …]
|
/linux-6.6.21/tools/perf/util/bpf_skel/ |
D | func_latency.bpf.c | 11 __uint(type, BPF_MAP_TYPE_HASH); 12 __uint(key_size, sizeof(__u64)); 13 __uint(value_size, sizeof(__u64)); 14 __uint(max_entries, 10000); 18 __uint(type, BPF_MAP_TYPE_HASH); 19 __uint(key_size, sizeof(__u32)); 20 __uint(value_size, sizeof(__u8)); 21 __uint(max_entries, 1); 25 __uint(type, BPF_MAP_TYPE_HASH); 26 __uint(key_size, sizeof(__u32)); [all …]
|
D | lock_contention.bpf.c | 31 __uint(type, BPF_MAP_TYPE_STACK_TRACE); 32 __uint(key_size, sizeof(__u32)); 33 __uint(value_size, sizeof(__u64)); 34 __uint(max_entries, MAX_ENTRIES); 39 __uint(type, BPF_MAP_TYPE_HASH); 42 __uint(max_entries, MAX_ENTRIES); 47 __uint(type, BPF_MAP_TYPE_HASH); 48 __uint(key_size, sizeof(struct contention_key)); 49 __uint(value_size, sizeof(struct contention_data)); 50 __uint(max_entries, MAX_ENTRIES); [all …]
|
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 …]
|
D | off_cpu.bpf.c | 36 __uint(type, BPF_MAP_TYPE_STACK_TRACE); 37 __uint(key_size, sizeof(__u32)); 38 __uint(value_size, MAX_STACKS * sizeof(__u64)); 39 __uint(max_entries, MAX_ENTRIES); 43 __uint(type, BPF_MAP_TYPE_TASK_STORAGE); 44 __uint(map_flags, BPF_F_NO_PREALLOC); 50 __uint(type, BPF_MAP_TYPE_HASH); 51 __uint(key_size, sizeof(struct offcpu_key)); 52 __uint(value_size, sizeof(__u64)); 53 __uint(max_entries, MAX_ENTRIES); [all …]
|
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 …]
|
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 …]
|
D | bperf_cgroup.bpf.c | 17 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); 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)); [all …]
|
D | kwork_trace.bpf.c | 36 __uint(type, BPF_MAP_TYPE_HASH); 37 __uint(key_size, sizeof(struct work_key)); 38 __uint(value_size, MAX_KWORKNAME); 39 __uint(max_entries, KWORK_COUNT); 43 __uint(type, BPF_MAP_TYPE_HASH); 44 __uint(key_size, sizeof(struct work_key)); 45 __uint(value_size, sizeof(__u64)); 46 __uint(max_entries, KWORK_COUNT); 50 __uint(type, BPF_MAP_TYPE_HASH); 51 __uint(key_size, sizeof(struct work_key)); [all …]
|
/linux-6.6.21/tools/bpf/bpftool/skeleton/ |
D | profiler.bpf.c | 15 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); 16 __uint(key_size, sizeof(u32)); 17 __uint(value_size, sizeof(int)); 22 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 23 __uint(key_size, sizeof(u32)); 24 __uint(value_size, sizeof(struct bpf_perf_event_value___local)); 29 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); 30 __uint(key_size, sizeof(u32)); 31 __uint(value_size, sizeof(struct bpf_perf_event_value___local)); 36 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); [all …]
|