| /tools/perf/util/ |
| D | map.h | 18 struct map { struct 32 u64 (*map_ip)(const struct map *, u64); argument 34 u64 (*unmap_ip)(const struct map *, u64); argument 43 struct kmap *__map__kmap(struct map *map); argument 54 static inline size_t map__size(const struct map *map) in map__size() 75 #define map__for_each_symbol(map, pos, n) \ argument 85 #define __map__for_each_symbol_by_name(map, sym_name, pos) \ argument 92 #define map__for_each_symbol_by_name(map, sym_name, pos) \ argument 108 static inline struct map *map__get(struct map *map) in map__get() 117 static inline void __map__zput(struct map **map) in __map__zput() [all …]
|
| D | map.c | 105 void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init() 124 struct map *map = malloc(sizeof(*map)); in map__new() local 222 struct map *map = calloc(1, (sizeof(*map) + in map__new2() local 234 bool __map__is_kernel(const struct map *map) in __map__is_kernel() 241 bool __map__is_extra_kernel_map(const struct map *map) in __map__is_extra_kernel_map() 248 bool __map__is_bpf_prog(const struct map *map) in __map__is_bpf_prog() 264 bool __map__is_bpf_image(const struct map *map) in __map__is_bpf_image() 280 bool __map__is_ool(const struct map *map) in __map__is_ool() 285 bool map__has_symbols(const struct map *map) in map__has_symbols() 290 static void map__exit(struct map *map) in map__exit() [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, const void *key, void *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 | 116 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
|
| D | maps.c | 35 void maps__insert(struct maps *maps, struct map *map) in maps__insert() 75 static void __maps__remove(struct maps *maps, struct map *map) in __maps__remove() 81 void maps__remove(struct maps *maps, struct map *map) in maps__remove() 141 struct map *map = maps__find(maps, addr); in maps__find_symbol() local 217 int maps__fixup_overlappings(struct maps *maps, struct map *map, FILE *fp) in maps__fixup_overlappings() 325 struct map *map; in maps__clone() local 351 static void __maps__insert(struct maps *maps, struct map *map) in __maps__insert()
|
| D | mem2node.c | 47 int mem2node__init(struct mem2node *map, struct perf_env *env) in mem2node__init() 114 void mem2node__exit(struct mem2node *map) in mem2node__exit() 119 int mem2node__node(struct mem2node *map, u64 addr) in mem2node__node()
|
| D | bpf_map.c | 20 static void *bpf_map__alloc_value(const struct bpf_map *map) in bpf_map__alloc_value() 29 int bpf_map__fprintf(struct bpf_map *map, FILE *fp) in bpf_map__fprintf()
|
| D | bpf-loader.c | 1168 static void *map_priv(const struct bpf_map *map) in map_priv() 1194 static int map_set_priv(struct bpf_map *map, void *priv) in map_set_priv() 1311 bpf_map__add_op(struct bpf_map *map, struct bpf_map_op *op) in bpf_map__add_op() 1340 bpf_map__add_newop(struct bpf_map *map, struct parse_events_term *term) in bpf_map__add_newop() 1358 __bpf_map__config_value(struct bpf_map *map, in __bpf_map__config_value() 1398 bpf_map__config_value(struct bpf_map *map, in bpf_map__config_value() 1416 __bpf_map__config_event(struct bpf_map *map, in __bpf_map__config_event() 1454 bpf_map__config_event(struct bpf_map *map, in bpf_map__config_event() 1484 struct bpf_map *map, in config_map_indices_range_check() 1524 struct bpf_map *map; in bpf__obj_config_map() local [all …]
|
| D | srccode.c | 30 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/ |
| 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 109 struct bpf_map *map = (struct bpf_map *)&m_hash; in check_hash() local 131 struct bpf_map map; member 145 struct bpf_map *map = (struct bpf_map *)&m_array; in check_array() local 177 struct bpf_map *map = (struct bpf_map *)&m_prog_array; in check_prog_array() local 194 struct bpf_map *map = (struct bpf_map *)&m_perf_event_array; in check_perf_event_array() local 211 struct bpf_map *map = (struct bpf_map *)&m_percpu_hash; in check_percpu_hash() local 228 struct bpf_map *map = (struct bpf_map *)&m_percpu_array; in check_percpu_array() local 236 struct bpf_map map; member [all …]
|
| D | cb_refs.c | 20 static __noinline int cb1(void *map, void *key, void *value, void *ctx) in cb1() 41 static __always_inline int cb2(void *map, void *key, void *value, void *ctx) in cb2() 69 static __always_inline int cb(void *map, void *key, void *value, void *ctx) in cb() 74 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()
|
| /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, const void *key, void *value, in hashmap__insert() [all …]
|
| D | hashmap.h | 116 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/lib/perf/ |
| D | mmap.c | 19 void perf_mmap__init(struct perf_mmap *map, struct perf_mmap *prev, in perf_mmap__init() 30 size_t perf_mmap__mmap_len(struct perf_mmap *map) in perf_mmap__mmap_len() 35 int perf_mmap__mmap(struct perf_mmap *map, struct perf_mmap_param *mp, in perf_mmap__mmap() 52 void perf_mmap__munmap(struct perf_mmap *map) in perf_mmap__munmap() 64 void perf_mmap__get(struct perf_mmap *map) in perf_mmap__get() 69 void perf_mmap__put(struct perf_mmap *map) in perf_mmap__put() 82 u64 perf_mmap__read_head(struct perf_mmap *map) in perf_mmap__read_head() 87 static bool perf_mmap__empty(struct perf_mmap *map) in perf_mmap__empty() 94 void perf_mmap__consume(struct perf_mmap *map) in perf_mmap__consume() 175 int perf_mmap__read_init(struct perf_mmap *map) in perf_mmap__read_init() [all …]
|
| 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 | cpumap.c | 35 static void cpu_map__delete(struct perf_cpu_map *map) in cpu_map__delete() 44 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map) in perf_cpu_map__get() 51 void perf_cpu_map__put(struct perf_cpu_map *map) in perf_cpu_map__put() 277 bool perf_cpu_map__empty(const struct perf_cpu_map *map) in perf_cpu_map__empty() 312 struct perf_cpu perf_cpu_map__max(const struct perf_cpu_map *map) in perf_cpu_map__max()
|
| /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() 177 void delete_obj_refs_table(struct hashmap *map) in delete_obj_refs_table() 195 void emit_obj_refs_json(struct hashmap *map, __u32 id, in emit_obj_refs_json() 228 void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix) in emit_obj_refs_plain()
|
| /tools/testing/selftests/vm/ |
| D | mlock2-tests.c | 181 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
|
| 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 129 char *map; in test_mprotect() 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
|
| D | cpumap.c | 21 struct perf_cpu_map *map; in process_event_mask() local 57 struct perf_cpu_map *map; in process_event_cpus() local 83 struct perf_cpu_map *map; in process_event_range_cpus() local 135 struct perf_cpu_map *map = perf_cpu_map__new(str); in cpu_map_print() local
|
| D | thread-map.c | 24 struct perf_thread_map *map; in test__thread_map() local 67 struct perf_record_thread_map *map = &event->thread_map; in process_event() local
|
| /tools/testing/selftests/bpf/prog_tests/ |
| D | sockmap_ktls.c | 36 static void test_sockmap_ktls_disconnect_after_delete(int family, int map) in test_sockmap_ktls_disconnect_after_delete() 79 static void test_sockmap_ktls_update_fails_when_sock_has_ulp(int family, int map) in test_sockmap_ktls_update_fails_when_sock_has_ulp() 151 int map; in run_tests() local
|