Searched refs:is_percpu (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | map_percpu_stats.c | 135 static bool is_percpu(__u32 map_type) in is_percpu() function 178 } else if (is_percpu(opts->map_type)) { in patch_map_thread() 316 opts.retry_for_nomem = is_percpu(opts.map_type) && (info.map_flags & BPF_F_NO_PREALLOC); in __test()
|
| /linux/kernel/bpf/ |
| H A D | hashtab.c | 1701 bool is_percpu, u64 flags) in __htab_map_lookup_and_delete_elem() 1727 if (is_percpu) { in __htab_map_lookup_and_delete_elem() 1804 bool is_percpu) in __htab_map_lookup_and_delete_batch() 1826 if (!do_delete && is_percpu) in __htab_map_lookup_and_delete_batch() 1853 if (is_percpu && !(elem_map_flags & BPF_F_CPU)) in __htab_map_lookup_and_delete_batch() 1931 if (is_percpu) { in __htab_map_lookup_and_delete_batch() 2316 bool is_percpu; in bpf_for_each_hash_elem() 2324 is_percpu = htab_is_percpu(htab); in bpf_for_each_hash_elem() 2336 if (is_percpu) { in bpf_for_each_hash_elem() 1686 __htab_map_lookup_and_delete_elem(struct bpf_map * map,void * key,void * value,bool is_lru_map,bool is_percpu,u64 flags) __htab_map_lookup_and_delete_elem() argument 1789 __htab_map_lookup_and_delete_batch(struct bpf_map * map,const union bpf_attr * attr,union bpf_attr __user * uattr,bool do_delete,bool is_lru_map,bool is_percpu) __htab_map_lookup_and_delete_batch() argument 2301 bool is_percpu; bpf_for_each_hash_elem() local
|
| H A D | arraymap.c | 808 bool is_percpu; in bpf_for_each_array_elem() local 817 is_percpu = map->map_type == BPF_MAP_TYPE_PERCPU_ARRAY; in bpf_for_each_array_elem() 820 if (is_percpu) in bpf_for_each_array_elem()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 1980 bool is_percpu = type == LIBBPF_MAP_PERCPU; in bpf_object__init_internal_map() local 2002 def->type = is_percpu ? BPF_MAP_TYPE_PERCPU_ARRAY : BPF_MAP_TYPE_ARRAY; in bpf_object__init_internal_map() 2016 map->name, is_percpu ? "percpu " : "", map->sec_idx, in bpf_object__init_internal_map() 5328 bool is_percpu = map_type == LIBBPF_MAP_PERCPU; in bpf_object__populate_internal_map() local 5329 const __u64 update_flags = is_percpu ? BPF_F_ALL_CPUS : 0; in bpf_object__populate_internal_map() 5386 } else if (is_percpu) { in bpf_object__populate_internal_map() 5671 bool is_percpu = map->libbpf_type == LIBBPF_MAP_PERCPU; in bpf_object__create_maps() local 5674 feat_id = is_percpu ? FEAT_PERCPU_DATA : FEAT_GLOBAL_DATA; in bpf_object__create_maps()
|