Lines Matching refs:cp
108 static char* find_benchmark_spam(char* cp) { in find_benchmark_spam() argument
120 benchmark = strstr(cp, signature); in find_benchmark_spam()
124 cp = benchmark + sizeof(signature); in find_benchmark_spam()
125 while (isspace(*cp)) { in find_benchmark_spam()
126 ++cp; in find_benchmark_spam()
128 benchmark = cp; in find_benchmark_spam()
138 while (isdigit(*cp)) { in find_benchmark_spam()
139 ++cp; in find_benchmark_spam()
141 while (isspace(*cp)) { in find_benchmark_spam()
142 ++cp; in find_benchmark_spam()
145 if ((*cp == '-') || (*cp == '+')) { in find_benchmark_spam()
146 while (isdigit(*++cp) || (*cp == '.') || (*cp == '%') || in find_benchmark_spam()
147 (*cp == 'X')) { in find_benchmark_spam()
150 while (isspace(*cp)) { in find_benchmark_spam()
151 ++cp; in find_benchmark_spam()
156 while (isdigit(*cp)) { in find_benchmark_spam()
157 value = value * 10ULL + *cp - '0'; in find_benchmark_spam()
158 ++cp; in find_benchmark_spam()
164 } while (*cp); in find_benchmark_spam()
185 char* cp = buf + len - 1; in TEST() local
186 *cp = '\0'; in TEST()
187 bool truncated = *--cp != '\f'; in TEST()
189 *cp = '\0'; in TEST()
193 cp = buf; in TEST()
195 while (isdigit(*cp) || (*cp == '\n')) { in TEST()
196 ++cp; in TEST()
200 fprintf(stderr, "%s", cp); in TEST()
202 EXPECT_LT((size_t)64, strlen(cp)); in TEST()
206 char* main_logs = strstr(cp, "\nChattiest UIDs in main "); in TEST()
209 char* radio_logs = strstr(cp, "\nChattiest UIDs in radio "); in TEST()
215 char* system_logs = strstr(cp, "\nChattiest UIDs in system "); in TEST()
218 char* events_logs = strstr(cp, "\nChattiest UIDs in events "); in TEST()
224 char* uid_name = cp; in TEST()
294 unsigned char* cp = reinterpret_cast<unsigned char*>(msg->msg()); in dump_log_msg() local
295 if (!cp) { in dump_log_msg()
297 cp = const_cast<unsigned char*>(garbage); in dump_log_msg()
301 unsigned char* p = cp; in dump_log_msg()
305 if (((p - cp) > 3) && !*p && ((unsigned int)(p - cp) < len)) { in dump_log_msg()
307 while (*cp) { in dump_log_msg()
308 if (*cp != '\n') { in dump_log_msg()
309 fprintf(stderr, "%c", *cp); in dump_log_msg()
313 ++cp; in dump_log_msg()
318 fprintf(stderr, "%02x", *cp); in dump_log_msg()
320 ++cp; in dump_log_msg()
389 char* cp = strstr(buffer, benchmarks[i]); in TEST() local
390 if (!cp) { in TEST()
393 sscanf(cp, "%*s %lu %lu", &ns[i], &ns[i]); in TEST()
457 char* cp = strchr(buffer, '\n'); in TEST() local
458 if (!cp || (cp[1] != '~') || (cp[2] != '!')) { in TEST()
796 char* cp; in TEST() local
797 long ret = strtol(buffer, &cp, 10); in TEST()
811 char* cp; in TEST() local
812 long ret = strtol(buffer, &cp, 10); in TEST()
832 char* cp; in TEST() local
833 long ret = strtol(buffer, &cp, 10); in TEST()