Lines Matching refs:die
50 #define die(...) { fprintf(stderr, __VA_ARGS__); exit(EXIT_FAILURE); } macro
108 if (cpu_count < 1) die("Unexpected cpu count\n"); in main()
111 if (!old_cpus) die("Could not allocate struct cpu_info\n"); in main()
113 if (!new_cpus) die("Could not allocate struct cpu_info\n"); in main()
117 if (freq_count < 1) die("Unexpected frequency scale count\n"); in main()
120 if (!new_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
122 if (!old_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
132 if (!new_total_cpu.freqs) die("Could not allocate struct freq_info\n"); in main()
134 if (!old_total_cpu.freqs) die("Could not allocate struct freq_info\n"); in main()
182 die("present cpus != online cpus\n"); in get_cpu_count()
196 if (!file) die("Could not open %s\n", filename); in get_cpu_count_from_file()
197 if (!fgets(line, MAX_BUF_SIZE, file)) die("Could not get %s contents\n", filename); in get_cpu_count_from_file()
208 die("Unexpected input in file %s (%s).\n", filename, line); in get_cpu_count_from_file()
223 if (!file) die("Could not open %s\n", filename); in get_freq_scales_count()
243 if (!file) die("Could not open /proc/stat.\n"); in read_stats()