Lines Matching refs:ostr
64 static int split_start_end(char **start, char **end, const char *ostr, char ch) in split_start_end() argument
69 if (ostr == NULL || *ostr == '\0') in split_start_end()
73 str = strdup(ostr); in split_start_end()
91 int perf_time__parse_str(struct perf_time_interval *ptime, const char *ostr) in perf_time__parse_str() argument
96 rc = split_start_end(&start_str, &end_str, ostr, ','); in perf_time__parse_str()
220 const char *ostr, u64 start, u64 end, in percent_comma_split() argument
226 str = strdup(ostr); in percent_comma_split()
265 const char *ostr, u64 start, u64 end, char *c) in one_percent_convert() argument
268 int len = strlen(ostr), ret; in one_percent_convert()
274 if (ostr + len - 1 != c) in one_percent_convert()
284 memcpy(str, ostr, len); in one_percent_convert()
296 const char *ostr, u64 start, u64 end) in perf_time__percent_parse_str() argument
309 c = strchr(ostr, '/'); in perf_time__percent_parse_str()
311 return percent_comma_split(ptime_buf, num, ostr, start, in perf_time__percent_parse_str()
315 c = strchr(ostr, '-'); in perf_time__percent_parse_str()
317 return percent_comma_split(ptime_buf, num, ostr, start, in perf_time__percent_parse_str()
321 c = strchr(ostr, '%'); in perf_time__percent_parse_str()
323 return one_percent_convert(ptime_buf, ostr, start, end, c); in perf_time__percent_parse_str()
328 struct perf_time_interval *perf_time__range_alloc(const char *ostr, int *size) in perf_time__range_alloc() argument
337 if (!ostr) in perf_time__range_alloc()
340 p1 = ostr; in perf_time__range_alloc()
341 while (p1 < ostr + strlen(ostr)) { in perf_time__range_alloc()