Lines Matching refs:fin
103 static int read_system_map(FILE *fin) in read_system_map() argument
116 if (fgets(buff, sizeof(buff), fin)) in read_system_map()
121 } else if (feof(fin)) { in read_system_map()
157 static int read_data(FILE *fin, void *buff, int size) in read_data() argument
161 err = fread(buff, 1, size, fin); in read_data()
165 error("Cannot read profile file at pos %ld\n", ftell(fin)); in read_data()
208 static int read_calls(FILE *fin, int count) in read_calls() argument
223 if (read_data(fin, call_data, sizeof(*call_data))) in read_calls()
229 static int read_profile(FILE *fin, int *not_found) in read_profile() argument
234 while (!feof(fin)) { in read_profile()
237 err = read_data(fin, &hdr, sizeof(hdr)); in read_profile()
249 if (read_calls(fin, hdr.rec_count)) in read_profile()
379 static int read_trace_config(FILE *fin) in read_trace_config() argument
385 while (fgets(buff, sizeof(buff), fin)) { in read_trace_config()
447 if (!feof(fin)) { in read_trace_config()
449 ftell(fin)); in read_trace_config()
457 FILE *fin; in read_trace_config_file() local
460 fin = fopen(fname, "r"); in read_trace_config_file()
461 if (!fin) { in read_trace_config_file()
465 err = read_trace_config(fin); in read_trace_config_file()
466 fclose(fin); in read_trace_config_file()