Lines Matching refs:func_map
334 struct func_map { struct
349 const struct func_map *fa = a; in func_cmp() argument
350 const struct func_map *fb = b; in func_cmp()
366 const struct func_map *fa = a; in func_bcmp()
367 const struct func_map *fb = b; in func_bcmp()
385 struct func_map *func_map; in func_map_init() local
388 func_map = malloc(sizeof(*func_map) * (pevent->func_count + 1)); in func_map_init()
389 if (!func_map) in func_map_init()
396 func_map[i].func = funclist->func; in func_map_init()
397 func_map[i].addr = funclist->addr; in func_map_init()
398 func_map[i].mod = funclist->mod; in func_map_init()
405 qsort(func_map, pevent->func_count, sizeof(*func_map), func_cmp); in func_map_init()
410 func_map[pevent->func_count].func = NULL; in func_map_init()
411 func_map[pevent->func_count].addr = 0; in func_map_init()
412 func_map[pevent->func_count].mod = NULL; in func_map_init()
414 pevent->func_map = func_map; in func_map_init()
420 static struct func_map *
423 struct func_map *func; in __find_func()
424 struct func_map key; in __find_func()
426 if (!pevent->func_map) in __find_func()
431 func = bsearch(&key, pevent->func_map, pevent->func_count, in __find_func()
432 sizeof(*pevent->func_map), func_bcmp); in __find_func()
440 struct func_map map;
483 static struct func_map *
486 struct func_map *map; in find_func()
513 struct func_map *map; in pevent_find_function()
534 struct func_map *map; in pevent_find_function_address()
598 if (!pevent->func_map) in pevent_print_funcs()
603 pevent->func_map[i].addr, in pevent_print_funcs()
604 pevent->func_map[i].func); in pevent_print_funcs()
605 if (pevent->func_map[i].mod) in pevent_print_funcs()
606 printf(" [%s]\n", pevent->func_map[i].mod); in pevent_print_funcs()
4817 struct func_map *func; in pretty_print()
6253 struct func_map *func; in pevent_print_func_field()
6663 if (pevent->func_map) { in pevent_free()
6665 free(pevent->func_map[i].func); in pevent_free()
6666 free(pevent->func_map[i].mod); in pevent_free()
6668 free(pevent->func_map); in pevent_free()