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()
448 struct func_map *map; in pevent_find_function()
469 struct func_map *map; in pevent_find_function_address()
533 if (!pevent->func_map) in pevent_print_funcs()
538 pevent->func_map[i].addr, in pevent_print_funcs()
539 pevent->func_map[i].func); in pevent_print_funcs()
540 if (pevent->func_map[i].mod) in pevent_print_funcs()
541 printf(" [%s]\n", pevent->func_map[i].mod); in pevent_print_funcs()
4691 struct func_map *func; in pretty_print()
6126 struct func_map *func; in pevent_print_func_field()
6534 if (pevent->func_map) { in pevent_free()
6536 free(pevent->func_map[i].func); in pevent_free()
6537 free(pevent->func_map[i].mod); in pevent_free()
6539 free(pevent->func_map); in pevent_free()