Lines Matching refs:ostr
67 static int split_start_end(char **start, char **end, const char *ostr, char ch) in split_start_end() argument
72 if (ostr == NULL || *ostr == '\0') in split_start_end()
76 str = strdup(ostr); in split_start_end()
94 int perf_time__parse_str(struct perf_time_interval *ptime, const char *ostr) in perf_time__parse_str() argument
99 rc = split_start_end(&start_str, &end_str, ostr, ','); in perf_time__parse_str()
121 const char *ostr, int size) in perf_time__parse_strs() argument
128 for (cp = ostr; *cp; cp++) in perf_time__parse_strs()
136 str = strdup(ostr); in perf_time__parse_strs()
283 const char *ostr, u64 start, u64 end, in percent_comma_split() argument
289 str = strdup(ostr); in percent_comma_split()
328 const char *ostr, u64 start, u64 end, char *c) in one_percent_convert() argument
331 int len = strlen(ostr), ret; in one_percent_convert()
337 if (ostr + len - 1 != c) in one_percent_convert()
347 memcpy(str, ostr, len); in one_percent_convert()
359 const char *ostr, u64 start, u64 end) in perf_time__percent_parse_str() argument
372 c = strchr(ostr, '/'); in perf_time__percent_parse_str()
374 return percent_comma_split(ptime_buf, num, ostr, start, in perf_time__percent_parse_str()
378 c = strchr(ostr, '-'); in perf_time__percent_parse_str()
380 return percent_comma_split(ptime_buf, num, ostr, start, in perf_time__percent_parse_str()
384 c = strchr(ostr, '%'); in perf_time__percent_parse_str()
386 return one_percent_convert(ptime_buf, ostr, start, end, c); in perf_time__percent_parse_str()
391 struct perf_time_interval *perf_time__range_alloc(const char *ostr, int *size) in perf_time__range_alloc() argument
400 if (!ostr) in perf_time__range_alloc()
403 p1 = ostr; in perf_time__range_alloc()
404 while (p1 < ostr + strlen(ostr)) { in perf_time__range_alloc()