Home
last modified time | relevance | path

Searched defs:map (Results 1 – 25 of 243) sorted by relevance

12345678910

/tools/perf/util/
A Dmap.h26 DECLARE_RC_STRUCT(map) { in DECLARE_RC_STRUCT() argument
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()
87 static inline bool map__hit(const struct map *map) in map__hit()
154 #define map__for_each_symbol(map, pos, n) \ argument
196 static inline void __map__zput(struct map **map) in __map__zput()
[all …]
A Dmap.c235 bool __map__is_kernel(const struct map *map) in __map__is_kernel()
283 bool __map__is_ool(const struct map *map) in __map__is_ool()
295 static void map__exit(struct map *map) in map__exit()
301 void map__delete(struct map *map) in map__delete()
307 void map__put(struct map *map) in map__put()
315 void map__fixup_start(struct map *map) in map__fixup_start()
328 void map__fixup_end(struct map *map) in map__fixup_end()
342 int map__load(struct map *map) in map__load()
612 struct kmap *__map__kmap(struct map *map) in __map__kmap()
621 struct kmap *map__kmap(struct map *map) in map__kmap()
[all …]
A Dhashmap.c38 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 …]
A Dmmap.c39 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()
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()
261 static int perf_mmap__setup_affinity_mask(struct mmap *map, struct mmap_params *mp) in perf_mmap__setup_affinity_mask()
[all …]
A Dhashmap.h133 #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 …]
A Dmaps.c72 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
431 static void map__set_kmap_maps(struct map *map, struct maps *maps) in map__set_kmap_maps()
510 int maps__insert(struct maps *maps, struct map *map) in maps__insert()
521 static void __maps__remove(struct maps *maps, struct map *map) in __maps__remove()
547 void maps__remove(struct maps *maps, struct map *map) in maps__remove()
590 struct map *map = maps_by_address[i]; in maps__for_each_map() local
624 struct map *map = maps__find(maps, addr); in maps__find_symbol() local
645 static int maps__find_symbol_by_name_cb(struct map *map, void *data) in maps__find_symbol_by_name_cb()
696 static int maps__fprintf_cb(struct map *map, void *data) in maps__fprintf_cb()
[all …]
/tools/testing/selftests/bpf/progs/
A Dmap_ptr_kern.c92 struct bpf_map map; member
136 struct bpf_map map; member
241 struct bpf_map map; member
315 struct bpf_map map; member
409 struct bpf_map map; member
430 struct bpf_map map; member
451 struct bpf_map map; member
472 struct bpf_map map; member
493 struct bpf_map map; member
514 struct bpf_map map; member
[all …]
A Dwq.c56 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()
A Dcb_refs.c18 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()
A Dfor_each_array_map_elem.c29 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()
/tools/lib/bpf/
A Dhashmap.c38 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 …]
A Dhashmap.h133 #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/
A Dpids.c19 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()
100 int build_obj_refs_table(struct hashmap **map, enum bpf_obj_type type) in build_obj_refs_table()
184 void delete_obj_refs_table(struct hashmap *map) in delete_obj_refs_table()
202 void emit_obj_refs_json(struct hashmap *map, __u32 id, in emit_obj_refs_json()
235 void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix) in emit_obj_refs_plain()
/tools/lib/perf/
A Dthreadmap.c10 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()
A Dmmap.c19 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()
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()
198 void perf_mmap__read_done(struct perf_mmap *map) in perf_mmap__read_done()
[all …]
A Dcpumap.c18 void perf_cpu_map__set_nr(struct perf_cpu_map *map, int nr_cpus) in perf_cpu_map__set_nr()
49 static void cpu_map__delete(struct perf_cpu_map *map) in cpu_map__delete()
58 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map) in perf_cpu_map__get()
68 void perf_cpu_map__put(struct perf_cpu_map *map) in perf_cpu_map__put()
277 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()
282 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()
290 bool perf_cpu_map__is_empty(const struct perf_cpu_map *map) in perf_cpu_map__is_empty()
346 bool perf_cpu_map__has_any_cpu(const struct perf_cpu_map *map) in perf_cpu_map__has_any_cpu()
351 struct perf_cpu perf_cpu_map__min(const struct perf_cpu_map *map) in perf_cpu_map__min()
365 struct perf_cpu perf_cpu_map__max(const struct perf_cpu_map *map) in perf_cpu_map__max()
/tools/testing/selftests/mm/
A Dmlock2-tests.c166 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
A Dksm_functional_tests.c161 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
505 char *map; in test_child_ksm() local
631 char *map; in test_prctl_unmerge() local
653 char *map; in test_prot_none() local
A Dprocess_madv.c67 char *map; in TEST_F() local
154 char *map; in TEST_F() local
218 char *map; in TEST_F() local
259 char *map; in TEST_F() local
293 char *map; in TEST_F() local
323 char *map; in TEST_F() local
A Dsoft-dirty.c20 char *map; in test_simple() local
52 char *map, *map2; in test_vma_reuse() local
81 char *map; in test_hugepage() local
139 char *map; in test_mprotect() local
/tools/testing/selftests/ring-buffer/
A Dmap_test.c83 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/
A Dsockmap_basic.c93 int s, map, err; in test_sockmap_create_update_free() local
114 int map, c, p, err, zero = 0; in test_sockmap_vsock_delete_on_close() local
148 int err, map, verdict; in test_skmsg_helpers() local
174 int err, map; in test_skmsg_helpers_with_link() local
371 int err, map, verdict; in test_sockmap_skb_verdict_attach() local
399 int err, map; in test_sockmap_skb_verdict_attach_with_link() local
603 int err, map, verdict; in test_sockmap_skb_verdict_change_tail() local
683 int err, map, verdict; in test_sockmap_skb_verdict_peek() local
706 int err, map; in test_sockmap_skb_verdict_peek_with_link() local
976 int err, map, conn, peer; in test_sockmap_skb_verdict_vsock_poll() local
[all …]
/tools/tracing/rtla/src/
A Dtimerlat.bpf.c51 nosubprog unsigned long long map_get(void *map, in map_get()
61 nosubprog void map_set(void *map, in map_set()
68 nosubprog void map_increment(void *map, in map_increment()
74 nosubprog void update_main_hist(void *map, in update_main_hist()
88 nosubprog void update_summary(void *map, in update_summary()
/tools/perf/tests/
A Dmem2node.c15 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/
A Dcpumap.h21 struct perf_cpu map[]; in DECLARE_RC_STRUCT() local
30 static inline refcount_t *perf_cpu_map__refcnt(struct perf_cpu_map *map) in perf_cpu_map__refcnt()

Completed in 53 milliseconds

12345678910