Lines Matching refs:tblname
362 static void print_events_table_prefix(FILE *fp, const char *tblname) in print_events_table_prefix() argument
364 fprintf(fp, "struct pmu_event %s[] = {\n", tblname); in print_events_table_prefix()
744 char *tblname; in file_name_to_table_name() local
751 n = asprintf(&tblname, "pme_%s", fname); in file_name_to_table_name()
758 for (i = 0; i < strlen(tblname); i++) { in file_name_to_table_name()
759 c = tblname[i]; in file_name_to_table_name()
762 tblname[i] = '_'; in file_name_to_table_name()
764 tblname[i] = '\0'; in file_name_to_table_name()
769 free(tblname); in file_name_to_table_name()
770 tblname = NULL; in file_name_to_table_name()
775 return tblname; in file_name_to_table_name()
856 char *tblname; in process_mapfile() local
906 tblname = file_name_to_table_name(fname); in process_mapfile()
921 fprintf(outfp, "\t.table = %s\n", tblname); in process_mapfile()
1042 char *tblname, *bname; in process_one_file() local
1089 tblname = file_name_to_table_name(bname); in process_one_file()
1090 if (!tblname) { in process_one_file()
1103 sys_event_table->soc_id = strdup(tblname); in process_one_file()
1112 print_events_table_prefix(eventsfp, tblname); in process_one_file()