| /tools/perf/util/ |
| D | map.h | 26 DECLARE_RC_STRUCT(map) { in DECLARE_RC_STRUCT() argument 47 static inline struct dso *map__dso(const struct map *map) in map__dso() 52 static inline u64 map__start(const struct map *map) in map__start() 57 static inline u64 map__end(const struct map *map) in map__end() 62 static inline u64 map__pgoff(const struct map *map) in map__pgoff() 67 static inline u64 map__reloc(const struct map *map) in map__reloc() 72 static inline u32 map__flags(const struct map *map) in map__flags() 77 static inline u32 map__prot(const struct map *map) in map__prot() 82 static inline bool map__priv(const struct map *map) in map__priv() 87 static inline bool map__hit(const struct map *map) in map__hit() [all …]
|
| D | map.c | 105 static void map__init(struct map *map, u64 start, u64 end, u64 pgoff, in map__init() 236 bool __map__is_kernel(const struct map *map) in __map__is_kernel() 243 bool __map__is_extra_kernel_map(const struct map *map) in __map__is_extra_kernel_map() 250 bool __map__is_bpf_prog(const struct map *map) in __map__is_bpf_prog() 267 bool __map__is_bpf_image(const struct map *map) in __map__is_bpf_image() 284 bool __map__is_ool(const struct map *map) in __map__is_ool() 291 bool map__has_symbols(const struct map *map) in map__has_symbols() 296 static void map__exit(struct map *map) in map__exit() 302 void map__delete(struct map *map) in map__delete() 308 void map__put(struct map *map) in map__put() [all …]
|
| D | hashmap.c | 38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() 55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() local 63 void hashmap__clear(struct hashmap *map) in hashmap__clear() 76 void hashmap__free(struct hashmap *map) in hashmap__free() 85 size_t hashmap__size(const struct hashmap *map) in hashmap__size() 90 size_t hashmap__capacity(const struct hashmap *map) in hashmap__capacity() 95 static bool hashmap_needs_to_grow(struct hashmap *map) in hashmap_needs_to_grow() 101 static int hashmap_grow(struct hashmap *map) in hashmap_grow() 130 static bool hashmap_find_entry(const struct hashmap *map, in hashmap_find_entry() 154 int hashmap_insert(struct hashmap *map, long key, long value, in hashmap_insert() [all …]
|
| D | mmap.c | 39 size_t mmap__mmap_len(struct mmap *map) in mmap__mmap_len() 71 static int perf_mmap__aio_enabled(struct mmap *map) in perf_mmap__aio_enabled() 77 static int perf_mmap__aio_alloc(struct mmap *map, int idx) in perf_mmap__aio_alloc() 89 static void perf_mmap__aio_free(struct mmap *map, int idx) in perf_mmap__aio_free() 97 static int perf_mmap__aio_bind(struct mmap *map, int idx, struct perf_cpu cpu, int affinity) in perf_mmap__aio_bind() 126 static int perf_mmap__aio_alloc(struct mmap *map, int idx) in perf_mmap__aio_alloc() 135 static void perf_mmap__aio_free(struct mmap *map, int idx) in perf_mmap__aio_free() 147 static int perf_mmap__aio_mmap(struct mmap *map, struct mmap_params *mp) in perf_mmap__aio_mmap() 201 static void perf_mmap__aio_munmap(struct mmap *map) in perf_mmap__aio_munmap() 229 void mmap__munmap(struct mmap *map) in mmap__munmap() [all …]
|
| D | hashmap.h | 133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument 138 #define hashmap__add(map, key, value) \ argument 141 #define hashmap__set(map, key, value, old_key, old_value) \ argument 144 #define hashmap__update(map, key, value, old_key, old_value) \ argument 147 #define hashmap__append(map, key, value) \ argument 152 #define hashmap__delete(map, key, old_key, old_value) \ argument 159 #define hashmap__find(map, key, value) \ argument 168 #define hashmap__for_each_entry(map, cur, bkt) \ argument 180 #define hashmap__for_each_entry_safe(map, cur, tmp, bkt) \ argument 192 #define hashmap__for_each_key_entry(map, cur, _key) \ argument [all …]
|
| D | maps.c | 72 struct map *map = RC_CHK_ACCESS(maps)->maps_by_address[i]; in check_invariants() local 104 struct map *map = RC_CHK_ACCESS(maps)->maps_by_name[i]; in check_invariants() local 389 static unsigned int maps__by_address_index(const struct maps *maps, const struct map *map) in maps__by_address_index() 410 static unsigned int maps__by_name_index(const struct maps *maps, const struct map *map) in maps__by_name_index() 497 int maps__insert(struct maps *maps, struct map *map) in maps__insert() 508 static void __maps__remove(struct maps *maps, struct map *map) in __maps__remove() 534 void maps__remove(struct maps *maps, struct map *map) in maps__remove() 558 int maps__for_each_map(struct maps *maps, int (*cb)(struct map *map, void *data), void *data) in maps__for_each_map() 577 struct map *map = maps_by_address[i]; in maps__for_each_map() local 592 void maps__remove_maps(struct maps *maps, bool (*cb)(struct map *map, void *data), void *data) in maps__remove_maps() [all …]
|
| /tools/testing/selftests/bpf/progs/ |
| D | map_ptr_kern.c | 38 static inline int check_bpf_map_fields(struct bpf_map *map, __u32 key_size, in check_bpf_map_fields() 92 struct bpf_map map; member 111 struct bpf_map *map = (struct bpf_map *)&m_hash; in check_hash() local 136 struct bpf_map map; member 150 struct bpf_map *map = (struct bpf_map *)&m_array; in check_array() local 182 struct bpf_map *map = (struct bpf_map *)&m_prog_array; in check_prog_array() local 199 struct bpf_map *map = (struct bpf_map *)&m_perf_event_array; in check_perf_event_array() local 216 struct bpf_map *map = (struct bpf_map *)&m_percpu_hash; in check_percpu_hash() local 233 struct bpf_map *map = (struct bpf_map *)&m_percpu_array; in check_percpu_array() local 241 struct bpf_map map; member [all …]
|
| D | wq.c | 56 static int test_elem_callback(void *map, int *key, in test_elem_callback() 57 int (callback_fn)(void *map, int *key, void *value)) in test_elem_callback() 89 static int test_hmap_elem_callback(void *map, int *key, in test_hmap_elem_callback() 90 int (callback_fn)(void *map, int *key, void *value)) in test_hmap_elem_callback() 120 static int wq_callback(void *map, int *key, void *value) in wq_callback() 128 static int wq_cb_sleepable(void *map, int *key, void *value) in wq_cb_sleepable()
|
| D | cb_refs.c | 18 static __noinline int cb1(void *map, void *key, void *value, void *ctx) in cb1() 40 static __always_inline int cb2(void *map, void *key, void *value, void *ctx) in cb2() 67 static __always_inline int cb(void *map, void *key, void *value, void *ctx) in cb() 72 static __always_inline int cb3(void *map, void *key, void *value, void *ctx) in cb3()
|
| D | for_each_array_map_elem.c | 29 unused_subprog(struct bpf_map *map, __u32 *key, __u64 *val, in unused_subprog() 37 check_array_elem(struct bpf_map *map, __u32 *key, __u64 *val, in check_array_elem() 50 check_percpu_elem(struct bpf_map *map, __u32 *key, __u64 *val, in check_percpu_elem()
|
| D | verifier_arena.c | 101 struct bpf_map map; member 121 struct bpf_map *map = ctx->map; in iter_maps1() local 143 struct bpf_map *map = ctx->map; in iter_maps3() local
|
| /tools/lib/bpf/ |
| D | hashmap.c | 38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() 55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() local 63 void hashmap__clear(struct hashmap *map) in hashmap__clear() 76 void hashmap__free(struct hashmap *map) in hashmap__free() 85 size_t hashmap__size(const struct hashmap *map) in hashmap__size() 90 size_t hashmap__capacity(const struct hashmap *map) in hashmap__capacity() 95 static bool hashmap_needs_to_grow(struct hashmap *map) in hashmap_needs_to_grow() 101 static int hashmap_grow(struct hashmap *map) in hashmap_grow() 130 static bool hashmap_find_entry(const struct hashmap *map, in hashmap_find_entry() 154 int hashmap_insert(struct hashmap *map, long key, long value, in hashmap_insert() [all …]
|
| D | hashmap.h | 133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument 138 #define hashmap__add(map, key, value) \ argument 141 #define hashmap__set(map, key, value, old_key, old_value) \ argument 144 #define hashmap__update(map, key, value, old_key, old_value) \ argument 147 #define hashmap__append(map, key, value) \ argument 152 #define hashmap__delete(map, key, old_key, old_value) \ argument 159 #define hashmap__find(map, key, value) \ argument 168 #define hashmap__for_each_entry(map, cur, bkt) \ argument 180 #define hashmap__for_each_entry_safe(map, cur, tmp, bkt) \ argument 192 #define hashmap__for_each_key_entry(map, cur, _key) \ argument [all …]
|
| /tools/bpf/bpftool/ |
| D | pids.c | 19 int build_obj_refs_table(struct hashmap **map, enum bpf_obj_type type) in build_obj_refs_table() 23 void delete_obj_refs_table(struct hashmap *map) {} in delete_obj_refs_table() 24 void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix) {} in emit_obj_refs_plain() 25 void emit_obj_refs_json(struct hashmap *map, __u32 id, json_writer_t *json_writer) {} in emit_obj_refs_json() 31 static void add_ref(struct hashmap *map, struct pid_iter_entry *e) in add_ref() 98 int build_obj_refs_table(struct hashmap **map, enum bpf_obj_type type) in build_obj_refs_table() 182 void delete_obj_refs_table(struct hashmap *map) in delete_obj_refs_table() 200 void emit_obj_refs_json(struct hashmap *map, __u32 id, in emit_obj_refs_json() 233 void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix) in emit_obj_refs_plain()
|
| /tools/lib/perf/ |
| D | threadmap.c | 10 static void perf_thread_map__reset(struct perf_thread_map *map, int start, int nr) in perf_thread_map__reset() 18 struct perf_thread_map *perf_thread_map__realloc(struct perf_thread_map *map, int nr) in perf_thread_map__realloc() 35 void perf_thread_map__set_pid(struct perf_thread_map *map, int idx, pid_t pid) in perf_thread_map__set_pid() 40 char *perf_thread_map__comm(struct perf_thread_map *map, int idx) in perf_thread_map__comm() 80 struct perf_thread_map *perf_thread_map__get(struct perf_thread_map *map) in perf_thread_map__get() 87 void perf_thread_map__put(struct perf_thread_map *map) in perf_thread_map__put() 98 pid_t perf_thread_map__pid(struct perf_thread_map *map, int idx) in perf_thread_map__pid()
|
| D | mmap.c | 19 void perf_mmap__init(struct perf_mmap *map, struct perf_mmap *prev, in perf_mmap__init() 31 size_t perf_mmap__mmap_len(struct perf_mmap *map) in perf_mmap__mmap_len() 36 int perf_mmap__mmap(struct perf_mmap *map, struct perf_mmap_param *mp, in perf_mmap__mmap() 53 void perf_mmap__munmap(struct perf_mmap *map) in perf_mmap__munmap() 70 void perf_mmap__get(struct perf_mmap *map) in perf_mmap__get() 75 void perf_mmap__put(struct perf_mmap *map) in perf_mmap__put() 88 u64 perf_mmap__read_head(struct perf_mmap *map) in perf_mmap__read_head() 93 static bool perf_mmap__empty(struct perf_mmap *map) in perf_mmap__empty() 100 void perf_mmap__consume(struct perf_mmap *map) in perf_mmap__consume() 181 int perf_mmap__read_init(struct perf_mmap *map) in perf_mmap__read_init() [all …]
|
| D | cpumap.c | 14 void perf_cpu_map__set_nr(struct perf_cpu_map *map, int nr_cpus) in perf_cpu_map__set_nr() 45 static void cpu_map__delete(struct perf_cpu_map *map) in cpu_map__delete() 54 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map) in perf_cpu_map__get() 64 void perf_cpu_map__put(struct perf_cpu_map *map) in perf_cpu_map__put() 318 bool perf_cpu_map__has_any_cpu_or_is_empty(const struct perf_cpu_map *map) in perf_cpu_map__has_any_cpu_or_is_empty() 323 bool perf_cpu_map__is_any_cpu_or_is_empty(const struct perf_cpu_map *map) in perf_cpu_map__is_any_cpu_or_is_empty() 331 bool perf_cpu_map__is_empty(const struct perf_cpu_map *map) in perf_cpu_map__is_empty() 387 bool perf_cpu_map__has_any_cpu(const struct perf_cpu_map *map) in perf_cpu_map__has_any_cpu() 392 struct perf_cpu perf_cpu_map__min(const struct perf_cpu_map *map) in perf_cpu_map__min() 406 struct perf_cpu perf_cpu_map__max(const struct perf_cpu_map *map) in perf_cpu_map__max()
|
| /tools/testing/selftests/mm/ |
| D | mlock2-tests.c | 166 static int unlock_lock_check(char *map) in unlock_lock_check() 178 char *map; in test_mlock_lock() local 203 static int onfault_check(char *map) in onfault_check() 214 static int unlock_onfault_check(char *map) in unlock_onfault_check() 229 char *map; in test_mlock_onfault() local 256 char *map; in test_lock_onfault_of_present() local 279 char *map; in test_munlockall0() local 305 char *map; in test_munlockall1() local 345 void *map; in test_vma_management() local 431 void *map; in main() local
|
| D | ksm_functional_tests.c | 161 char *map; in __mmap_and_merge_range() local 244 char *map; in mmap_and_merge_range() local 261 char *map; in test_unmerge() local 283 char *map; in test_unmerge_zero_pages() local 347 char *map; in test_unmerge_discarded() local 378 char *map; in test_unmerge_uffd_wp() local 481 char *map; in test_child_ksm() local 607 char *map; in test_prctl_unmerge() local 629 char *map; in test_prot_none() local
|
| D | soft-dirty.c | 18 char *map; in test_simple() local 50 char *map, *map2; in test_vma_reuse() local 79 char *map; in test_hugepage() local 132 char *map; in test_mprotect() local
|
| /tools/testing/selftests/ring-buffer/ |
| D | map_test.c | 83 void *map; in tracefs_cpu_map() local 120 FIXTURE(map) { in FIXTURE() argument 125 FIXTURE_VARIANT(map) { in FIXTURE_VARIANT() argument 129 FIXTURE_VARIANT_ADD(map, subbuf_size_4k) { in FIXTURE_VARIANT_ADD() argument 133 FIXTURE_VARIANT_ADD(map, subbuf_size_8k) { in FIXTURE_VARIANT_ADD() argument 137 FIXTURE_SETUP(map) in FIXTURE_SETUP() argument 173 FIXTURE_TEARDOWN(map) in FIXTURE_TEARDOWN() argument 183 TEST_F(map, meta_page_check) in TEST_F() argument 214 TEST_F(map, data_mmap) in TEST_F() argument
|
| /tools/testing/selftests/bpf/prog_tests/ |
| D | sockmap_basic.c | 92 int s, map, err; in test_sockmap_create_update_free() local 114 int err, map, verdict; in test_skmsg_helpers() local 140 int err, map; in test_skmsg_helpers_with_link() local 337 int err, map, verdict; in test_sockmap_skb_verdict_attach() local 365 int err, map; in test_sockmap_skb_verdict_attach_with_link() local 454 int n, err, map, verdict, c1 = -1, p1 = -1; in test_sockmap_skb_verdict_shutdown() local 506 int err, map, verdict, c0 = -1, c1 = -1, p0 = -1, p1 = -1; in test_sockmap_skb_verdict_fionread() local 565 static void test_sockmap_skb_verdict_peek_helper(int map) in test_sockmap_skb_verdict_peek_helper() 600 int err, map, verdict; in test_sockmap_skb_verdict_peek() local 623 int err, map; in test_sockmap_skb_verdict_peek_with_link() local [all …]
|
| D | global_map_resize.c | 23 struct bpf_map *map; in global_map_resize_bss_subtest() local 92 struct bpf_map *map; in global_map_resize_data_subtest() local 163 struct bpf_map *map; in global_map_resize_invalid_subtest() local
|
| /tools/perf/tests/ |
| D | mem2node.c | 15 const char *map; member 26 struct perf_cpu_map *map = perf_cpu_map__new(str); in get_bitmap() local 49 struct mem2node map; in test__mem2node() local
|
| /tools/lib/perf/include/internal/ |
| D | cpumap.h | 21 struct perf_cpu map[]; in DECLARE_RC_STRUCT() local 34 static inline refcount_t *perf_cpu_map__refcnt(struct perf_cpu_map *map) in perf_cpu_map__refcnt()
|