Lines Matching refs:die
50 #define die(...) { fprintf(stderr, __VA_ARGS__); exit(EXIT_FAILURE); } macro
110 if (!old_cpus) die("Could not allocate struct cpu_info\n"); in main()
112 if (!new_cpus) die("Could not allocate struct cpu_info\n"); in main()
117 if (!new_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
119 if (!old_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
129 if (!new_total_cpu.freqs) die("Could not allocate struct freq_info\n"); in main()
131 if (!old_total_cpu.freqs) die("Could not allocate struct freq_info\n"); in main()
179 die("present cpus != online cpus\n"); in get_cpu_count()
193 if (!file) die("Could not open %s\n", filename); in get_cpu_count_from_file()
194 if (!fgets(line, MAX_BUF_SIZE, file)) die("Could not get %s contents\n", filename); in get_cpu_count_from_file()
205 die("Unexpected input in file %s (%s).\n", filename, line); in get_cpu_count_from_file()
220 if (!file) die("Could not open %s\n", filename); in get_freq_scales_count()
240 if (!file) die("Could not open /proc/stat.\n"); in read_stats()
270 if (!file) die("Could not open %s\n", filename); in read_freq_stats()