Searched refs:ptime (Results 1 – 7 of 7) sorted by relevance
| /tools/perf/tests/ |
| A D | time-utils-test.c | 14 u64 ptime; in test__parse_nsec_time() local 25 if (ptime != expected) { in test__parse_nsec_time() 27 ptime, expected); in test__parse_nsec_time() 38 struct perf_time_interval ptime; in test__perf_time__parse_str() local 49 if (ptime.start != start || ptime.end != end) { in test__perf_time__parse_str() 102 if (ptime[i].start != d->ptime[i].start || in test__perf_time__parse_for_ranges() 103 ptime[i].end != d->ptime[i].end) { in test__perf_time__parse_for_ranges() 105 i, d->ptime[i].start, d->ptime[i].end); in test__perf_time__parse_for_ranges() 130 free(ptime); in test__perf_time__parse_for_ranges() 162 .ptime = { {b, b + 1}, }, in test__time_utils() [all …]
|
| /tools/perf/util/ |
| A D | time-utils.c | 103 ptime->start = 0; in perf_time__parse_str() 104 ptime->end = 0; in perf_time__parse_str() 111 if (rc == 0 && ptime->end && ptime->end < ptime->start) in perf_time__parse_str() 167 if (ptime[i].end >= ptime[i + 1].start) { in perf_time__parse_strs() 212 if (ptime->end > ptime->start && ptime->end != end) in set_percent_time() 213 ptime->end -= 1; in set_percent_time() 415 ptime = calloc(i, sizeof(*ptime)); in perf_time__range_alloc() 416 return ptime; in perf_time__range_alloc() 426 if ((ptime->start && timestamp < ptime->start) || in perf_time__skip_sample() 427 (ptime->end && timestamp > ptime->end)) { in perf_time__skip_sample() [all …]
|
| A 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);
|
| A D | kwork.h | 219 struct perf_time_interval ptime; member
|
| /tools/perf/ |
| A D | builtin-sched.c | 234 struct perf_time_interval ptime; member 2799 struct perf_time_interval *ptime = &sched->ptime; in timehist_sched_change_event() local 2840 if (ptime->start && ptime->start > t) in timehist_sched_change_event() 2843 if (tprev && ptime->start > tprev) in timehist_sched_change_event() 2844 tprev = ptime->start; in timehist_sched_change_event() 2855 if (ptime->end) { in timehist_sched_change_event() 2856 if (!tprev || tprev > ptime->end) in timehist_sched_change_event() 2859 if (t > ptime->end) in timehist_sched_change_event() 2860 t = ptime->end; in timehist_sched_change_event() 2902 if (sched->hist_time.start == 0 && t >= ptime->start) in timehist_sched_change_event() [all …]
|
| A D | builtin-kwork.c | 425 struct perf_time_interval *ptime = &kwork->ptime; in profile_event_match() local 430 if (((ptime->start != 0) && (ptime->start > time)) || in profile_event_match() 431 ((ptime->end != 0) && (ptime->end < time))) in profile_event_match() 1772 ret = perf_time__parse_str(&kwork->ptime, kwork->time_str); in perf_kwork__check_config()
|
| A D | builtin-kmem.c | 84 static struct perf_time_interval ptime; variable 951 if (perf_time__skip_sample(&ptime, sample->time)) in perf_kmem__skip_sample() 2029 if (perf_time__parse_str(&ptime, time_str) != 0) { in cmd_kmem()
|
Completed in 26 milliseconds