Lines Matching refs:cpu_name
36 static char *build_fn(const char *cpu_name, const char *fn) in build_fn() argument
44 s = xmalloc(strlen(dir) + strlen(cpu_name) + strlen(fn) + 5); in build_fn()
45 sprintf(s, "%s/%s/%s", dir, cpu_name, fn); in build_fn()
538 char const * cpu_name) in check_unit_mask() argument
550 "entry (%s)\n", um->name, cpu_name); in check_unit_mask()
559 "(%s)\n", um->name, cpu_name); in check_unit_mask()
570 "valid (%s)\n", um->name, cpu_name); in check_unit_mask()
590 static void load_events_name(const char *cpu_name) in load_events_name() argument
595 event_file = build_fn(cpu_name, "events"); in load_events_name()
596 um_file = build_fn(cpu_name, "unit_masks"); in load_events_name()
607 const char * cpu_name = op_get_cpu_name(cpu_type); in load_events() local
614 load_events_name(cpu_name); in load_events()
621 err |= check_unit_mask(um, cpu_name); in load_events()
709 static FILE * open_event_mapping_file(char const * cpu_name) in open_event_mapping_file() argument
717 ev_map_file = xmalloc(strlen(dir) + strlen("/") + strlen(cpu_name) + in open_event_mapping_file()
722 strcat(ev_map_file, cpu_name); in open_event_mapping_file()
816 char const * cpu_name = op_get_cpu_name(cpu_type); in find_mapping_for_event() local
817 FILE * fp = open_event_mapping_file(cpu_name); in find_mapping_for_event()