Home
last modified time | relevance | path

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

1234567

/tools/perf/util/
Dmap.h18 struct map { struct
32 u64 (*map_ip)(struct map *, u64); argument
34 u64 (*unmap_ip)(struct map *, u64); argument
43 struct kmap *__map__kmap(struct map *map); argument
47 static inline u64 map__map_ip(struct map *map, u64 ip) in map__map_ip()
52 static inline u64 map__unmap_ip(struct map *map, u64 ip) in map__unmap_ip()
62 static inline size_t map__size(const struct map *map) in map__size()
83 #define map__for_each_symbol(map, pos, n) \ argument
93 #define __map__for_each_symbol_by_name(map, sym_name, pos) \ argument
100 #define map__for_each_symbol_by_name(map, sym_name, pos) \ argument
[all …]
Dmap.c116 void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init()
135 struct map *map = malloc(sizeof(*map)); in map__new() local
212 struct map *map = calloc(1, (sizeof(*map) + in map__new2() local
224 bool __map__is_kernel(const struct map *map) in __map__is_kernel()
231 bool __map__is_extra_kernel_map(const struct map *map) in __map__is_extra_kernel_map()
238 bool __map__is_bpf_prog(const struct map *map) in __map__is_bpf_prog()
254 bool __map__is_bpf_image(const struct map *map) in __map__is_bpf_image()
270 bool __map__is_ool(const struct map *map) in __map__is_ool()
275 bool map__has_symbols(const struct map *map) in map__has_symbols()
280 static void map__exit(struct map *map) in map__exit()
[all …]
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, const void *key, void *value, in hashmap__insert()
[all …]
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()
97 static int perf_mmap__aio_bind(struct mmap *map, int idx, int 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 …]
Dhashmap.h116 static inline int hashmap__add(struct hashmap *map, in hashmap__add()
122 static inline int hashmap__set(struct hashmap *map, in hashmap__set()
130 static inline int hashmap__update(struct hashmap *map, in hashmap__update()
138 static inline int hashmap__append(struct hashmap *map, in hashmap__append()
155 #define hashmap__for_each_entry(map, cur, bkt) \ argument
167 #define hashmap__for_each_entry_safe(map, cur, tmp, bkt) \ argument
179 #define hashmap__for_each_key_entry(map, cur, _key) \ argument
187 #define hashmap__for_each_key_entry_safe(map, cur, tmp, _key) \ argument
Dcpumap.c23 struct perf_cpu_map *map; in cpu_map__from_entries() local
47 struct perf_cpu_map *map; in cpu_map__from_mask() local
71 size_t cpu_map__fprintf(struct perf_cpu_map *map, FILE *fp) in cpu_map__fprintf()
114 int cpu_map__get_socket(struct perf_cpu_map *map, int idx, void *data __maybe_unused) in cpu_map__get_socket()
132 int (*f)(struct perf_cpu_map *map, int cpu, void *data), in cpu_map__build_map()
170 int cpu_map__get_die(struct perf_cpu_map *map, int idx, void *data) in cpu_map__get_die()
214 int cpu_map__get_core(struct perf_cpu_map *map, int idx, void *data) in cpu_map__get_core()
243 int cpu_map__get_node(struct perf_cpu_map *map, int idx, void *data __maybe_unused) in cpu_map__get_node()
488 size_t cpu_map__snprint(struct perf_cpu_map *map, char *buf, size_t size) in cpu_map__snprint()
540 size_t cpu_map__snprint_mask(struct perf_cpu_map *map, char *buf, size_t size) in cpu_map__snprint_mask()
Dmem2node.c47 int mem2node__init(struct mem2node *map, struct perf_env *env) in mem2node__init()
113 void mem2node__exit(struct mem2node *map) in mem2node__exit()
118 int mem2node__node(struct mem2node *map, u64 addr) in mem2node__node()
Dsrccode.c30 char *map; member
40 static int countlines(char *map, int maplen) in countlines()
58 static void fill_lines(char **lines, int maxline, char *map, int maplen) in fill_lines()
/tools/testing/selftests/bpf/progs/
Dmap_ptr_kern.c42 static inline int check_bpf_map_fields(struct bpf_map *map, __u32 key_size, in check_bpf_map_fields()
98 struct bpf_map map; member
115 struct bpf_map *map = (struct bpf_map *)&m_hash; in check_hash() local
137 struct bpf_map map; member
151 struct bpf_map *map = (struct bpf_map *)&m_array; in check_array() local
183 struct bpf_map *map = (struct bpf_map *)&m_prog_array; in check_prog_array() local
200 struct bpf_map *map = (struct bpf_map *)&m_perf_event_array; in check_perf_event_array() local
217 struct bpf_map *map = (struct bpf_map *)&m_percpu_hash; in check_percpu_hash() local
234 struct bpf_map *map = (struct bpf_map *)&m_percpu_array; in check_percpu_array() local
242 struct bpf_map map; member
[all …]
/tools/lib/perf/
Dmmap.c16 void perf_mmap__init(struct perf_mmap *map, struct perf_mmap *prev, in perf_mmap__init()
27 size_t perf_mmap__mmap_len(struct perf_mmap *map) in perf_mmap__mmap_len()
32 int perf_mmap__mmap(struct perf_mmap *map, struct perf_mmap_param *mp, in perf_mmap__mmap()
49 void perf_mmap__munmap(struct perf_mmap *map) in perf_mmap__munmap()
61 void perf_mmap__get(struct perf_mmap *map) in perf_mmap__get()
66 void perf_mmap__put(struct perf_mmap *map) in perf_mmap__put()
79 u64 perf_mmap__read_head(struct perf_mmap *map) in perf_mmap__read_head()
84 static bool perf_mmap__empty(struct perf_mmap *map) in perf_mmap__empty()
91 void perf_mmap__consume(struct perf_mmap *map) in perf_mmap__consume()
172 int perf_mmap__read_init(struct perf_mmap *map) in perf_mmap__read_init()
[all …]
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 thread, pid_t pid) in perf_thread_map__set_pid()
40 char *perf_thread_map__comm(struct perf_thread_map *map, int thread) in perf_thread_map__comm()
70 struct perf_thread_map *perf_thread_map__get(struct perf_thread_map *map) in perf_thread_map__get()
77 void perf_thread_map__put(struct perf_thread_map *map) in perf_thread_map__put()
88 pid_t perf_thread_map__pid(struct perf_thread_map *map, int thread) in perf_thread_map__pid()
Dcpumap.c26 static void cpu_map__delete(struct perf_cpu_map *map) in cpu_map__delete()
35 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map) in perf_cpu_map__get()
42 void perf_cpu_map__put(struct perf_cpu_map *map) in perf_cpu_map__put()
261 bool perf_cpu_map__empty(const struct perf_cpu_map *map) in perf_cpu_map__empty()
278 int perf_cpu_map__max(struct perf_cpu_map *map) in perf_cpu_map__max()
/tools/lib/bpf/
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, const void *key, void *value, in hashmap__insert()
[all …]
Dhashmap.h116 static inline int hashmap__add(struct hashmap *map, in hashmap__add()
122 static inline int hashmap__set(struct hashmap *map, in hashmap__set()
130 static inline int hashmap__update(struct hashmap *map, in hashmap__update()
138 static inline int hashmap__append(struct hashmap *map, in hashmap__append()
155 #define hashmap__for_each_entry(map, cur, bkt) \ argument
167 #define hashmap__for_each_entry_safe(map, cur, tmp, bkt) \ argument
179 #define hashmap__for_each_key_entry(map, cur, _key) \ argument
187 #define hashmap__for_each_key_entry_safe(map, cur, tmp, _key) \ argument
/tools/perf/pmu-events/
Djson.c48 char *map = NULL; in mapfile() local
73 static void unmapfile(char *map, size_t size) in unmapfile()
83 jsmntok_t *parse_json(const char *fn, char **map, size_t *size, int *len) in parse_json()
115 void free_json(char *map, size_t size, jsmntok_t *tokens) in free_json()
121 static int countchar(char *map, char c, int end) in countchar()
132 int json_line(char *map, jsmntok_t *t) in json_line()
158 int json_streq(char *map, jsmntok_t *t, const char *s) in json_streq()
/tools/testing/selftests/vm/
Dmlock2-tests.c181 static int unlock_lock_check(char *map) in unlock_lock_check()
193 char *map; in test_mlock_lock() local
230 static int onfault_check(char *map) in onfault_check()
241 static int unlock_onfault_check(char *map) in unlock_onfault_check()
256 char *map; in test_mlock_onfault() local
298 char *map; in test_lock_onfault_of_present() local
334 char *map; in test_munlockall() local
413 void *map; in test_vma_management() local
/tools/perf/tests/
Dmem2node.c15 const char *map; member
26 struct perf_cpu_map *map = perf_cpu_map__new(str); in get_bitmap() local
48 struct mem2node map; in test__mem2node() local
Dcpumap.c22 struct perf_cpu_map *map; in process_event_mask() local
56 struct perf_cpu_map *map; in process_event_cpus() local
102 struct perf_cpu_map *map = perf_cpu_map__new(str); in cpu_map_print() local
Dpmu-events.c138 struct pmu_events_map *map; in __test_pmu_get_events_map() local
153 struct pmu_events_map *map = __test_pmu_get_events_map(); in test_pmu_event_table() local
276 struct pmu_events_map *map = __test_pmu_get_events_map(); in __test__pmu_event_aliases() local
451 const struct pmu_events_map *map, in expr_failure()
463 struct pmu_events_map *map; in test_parsing() local
581 struct pmu_events_map *map; in test_parsing_fake() local
Dtopology.c61 static int check_cpu_topology(char *path, struct perf_cpu_map *map) in check_cpu_topology()
118 struct perf_cpu_map *map; in test__session_topology() local
Dthread-map.c24 struct perf_thread_map *map; in test__thread_map() local
67 struct perf_record_thread_map *map = &event->thread_map; in process_event() local
Dmmap-thread-lookup.c28 void *map; member
36 void *map; in thread_init() local
143 struct perf_thread_map *map; in synth_process() local
/tools/perf/
Dbuiltin-stat.c1188 struct perf_cpu_map *map, int cpu) in perf_stat__get_socket()
1194 struct perf_cpu_map *map, int cpu) in perf_stat__get_die()
1200 struct perf_cpu_map *map, int cpu) in perf_stat__get_core()
1206 struct perf_cpu_map *map, int cpu) in perf_stat__get_node()
1212 aggr_get_id_t get_id, struct perf_cpu_map *map, int idx) in perf_stat__get_aggr()
1228 struct perf_cpu_map *map, int idx) in perf_stat__get_socket_cached()
1234 struct perf_cpu_map *map, int idx) in perf_stat__get_die_cached()
1240 struct perf_cpu_map *map, int idx) in perf_stat__get_core_cached()
1246 struct perf_cpu_map *map, int idx) in perf_stat__get_node_cached()
1331 static inline int perf_env__get_cpu(struct perf_env *env, struct perf_cpu_map *map, int idx) in perf_env__get_cpu()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dsockmap_ktls.c39 static void test_sockmap_ktls_disconnect_after_delete(int family, int map) in test_sockmap_ktls_disconnect_after_delete()
98 int map; in run_tests() local
Dpinning.c12 struct bpf_map *map; in get_map_id() local
39 struct bpf_map *map; in test_pinning() local

1234567