Lines Matching refs:b
58 static const char *next_line(const char *b) { in next_line() argument
60 switch (*b) { in next_line()
62 return b + 1; in next_line()
66 b++; in next_line()
84 static int parse_cpu_v15(const char *b) { in parse_cpu_v15() argument
87 if (sscanf(b, "cpu%d %u %u %u %u %u %u %llu %llu %lu\n", in parse_cpu_v15()
92 printf("Could not parse %s\n", b); in parse_cpu_v15()
111 static int parse(const char *b) { in parse() argument
115 if (sscanf(b, "version %u\n", &version) != 1) { in parse()
121 b = next_line(b); in parse()
122 if (!b || sscanf(b, "timestamp %llu\n", &ts) != 1) { in parse()
127 b = next_line(b); in parse()
128 if (!b) break; in parse()
129 if (b[0] == 'c') { in parse()
130 if (parse_cpu_v15(b)) return -1; in parse()