Searched refs:ptime (Results 1 – 5 of 5) sorted by relevance
/tools/perf/tests/ |
D | time-utils-test.c | 14 u64 ptime; in test__parse_nsec_time() local 19 err = parse_nsec_time(str, &ptime); in test__parse_nsec_time() 25 if (ptime != expected) { in test__parse_nsec_time() 27 ptime, expected); in test__parse_nsec_time() 31 pr_debug("%" PRIu64 "\n", ptime); in test__parse_nsec_time() 38 struct perf_time_interval ptime; in test__perf_time__parse_str() local 43 err = perf_time__parse_str(&ptime, ostr); in test__perf_time__parse_str() 49 if (ptime.start != start || ptime.end != end) { in test__perf_time__parse_str() 64 struct perf_time_interval ptime[TEST_MAX]; member 77 struct perf_time_interval *ptime = NULL; in test__perf_time__parse_for_ranges() local [all …]
|
/tools/perf/util/ |
D | time-utils.c | 18 int parse_nsec_time(const char *str, u64 *ptime) in parse_nsec_time() argument 47 *ptime = time_sec * NSEC_PER_SEC + time_nsec; in parse_nsec_time() 51 static int parse_timestr_sec_nsec(struct perf_time_interval *ptime, in parse_timestr_sec_nsec() argument 55 (parse_nsec_time(start_str, &ptime->start) != 0)) { in parse_timestr_sec_nsec() 60 (parse_nsec_time(end_str, &ptime->end) != 0)) { in parse_timestr_sec_nsec() 94 int perf_time__parse_str(struct perf_time_interval *ptime, const char *ostr) in perf_time__parse_str() argument 103 ptime->start = 0; in perf_time__parse_str() 104 ptime->end = 0; in perf_time__parse_str() 106 rc = parse_timestr_sec_nsec(ptime, start_str, end_str); in perf_time__parse_str() 111 if (rc == 0 && ptime->end && ptime->end < ptime->start) in perf_time__parse_str() [all …]
|
D | time-utils.h | 13 int parse_nsec_time(const char *str, u64 *ptime); 15 int perf_time__parse_str(struct perf_time_interval *ptime, const char *ostr); 22 bool perf_time__skip_sample(struct perf_time_interval *ptime, u64 timestamp);
|
/tools/perf/ |
D | builtin-sched.c | 246 struct perf_time_interval ptime; member 2438 !perf_time__skip_sample(&sched->ptime, sample->time)) in timehist_sched_wakeup_event() 2532 struct perf_time_interval *ptime = &sched->ptime; in timehist_sched_change_event() local 2569 if (ptime->start && ptime->start > t) in timehist_sched_change_event() 2572 if (tprev && ptime->start > tprev) in timehist_sched_change_event() 2573 tprev = ptime->start; in timehist_sched_change_event() 2581 if (ptime->end) { in timehist_sched_change_event() 2582 if (tprev > ptime->end) in timehist_sched_change_event() 2585 if (t > ptime->end) in timehist_sched_change_event() 2586 t = ptime->end; in timehist_sched_change_event() [all …]
|
D | builtin-kmem.c | 82 static struct perf_time_interval ptime; variable 927 if (perf_time__skip_sample(&ptime, sample->time)) in perf_kmem__skip_sample() 1986 if (perf_time__parse_str(&ptime, time_str) != 0) { in cmd_kmem()
|