Home
last modified time | relevance | path

Searched refs:ptime (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/tools/perf/util/
H A Dtime-utils.c103 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 …]
H A Dtime-utils.h13 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);
H A Dkwork.h190 struct perf_time_interval ptime; member
/openbmc/linux/tools/perf/tests/
H A Dtime-utils-test.c14 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 …]
/openbmc/linux/tools/perf/
H A Dbuiltin-sched.c247 struct perf_time_interval ptime; member
2587 struct perf_time_interval *ptime = &sched->ptime; in timehist_sched_change_event() local
2625 if (ptime->start && ptime->start > t) in timehist_sched_change_event()
2628 if (tprev && ptime->start > tprev) in timehist_sched_change_event()
2629 tprev = ptime->start; in timehist_sched_change_event()
2637 if (ptime->end) { in timehist_sched_change_event()
2638 if (tprev > ptime->end) in timehist_sched_change_event()
2641 if (t > ptime->end) in timehist_sched_change_event()
2642 t = ptime->end; in timehist_sched_change_event()
2686 if (sched->hist_time.start == 0 && t >= ptime->start) in timehist_sched_change_event()
[all …]
H A Dbuiltin-kwork.c370 struct perf_time_interval *ptime = &kwork->ptime; in profile_event_match() local
375 if (((ptime->start != 0) && (ptime->start > time)) || in profile_event_match()
376 ((ptime->end != 0) && (ptime->end < time))) in profile_event_match()
1375 ret = perf_time__parse_str(&kwork->ptime, kwork->time_str); in perf_kwork__check_config()
H A Dbuiltin-kmem.c84 static struct perf_time_interval ptime; variable
949 if (perf_time__skip_sample(&ptime, sample->time)) in perf_kmem__skip_sample()
2028 if (perf_time__parse_str(&ptime, time_str) != 0) { in cmd_kmem()
/openbmc/qemu/audio/
H A Dalsaaudio.c528 unsigned int ptime = apdo->period_length; in alsa_open() local
530 err = snd_pcm_hw_params_set_period_time_near(handle, hw_params, &ptime, in alsa_open()
539 if (apdo->has_period_length && ptime != apdo->period_length) { in alsa_open()
541 apdo->period_length, ptime); in alsa_open()
/openbmc/linux/arch/mips/include/asm/octeon/
H A Dcvmx-npei-defs.h1561 uint64_t ptime:1; member
1599 uint64_t ptime:1;
1694 uint64_t ptime:1; member
1732 uint64_t ptime:1;
1826 uint64_t ptime:1; member
1864 uint64_t ptime:1;
1961 uint64_t ptime:1; member
1999 uint64_t ptime:1;
2092 uint64_t ptime:1; member
2130 uint64_t ptime:1;
[all …]
H A Dcvmx-mio-defs.h3646 uint64_t ptime:1; member
3658 uint64_t ptime:1;
4061 uint64_t ptime:1; member
4073 uint64_t ptime:1;
/openbmc/linux/sound/usb/
H A Dpcm.c733 unsigned int ptime; in hw_check_valid_format() local
760 ptime = 125 * (1 << fp->datainterval); in hw_check_valid_format()
761 if (ptime > pt->max || (ptime == pt->max && pt->openmax)) { in hw_check_valid_format()
762 hwc_debug(" > check: ptime %u > max %u\n", ptime, pt->max); in hw_check_valid_format()
/openbmc/linux/kernel/time/
H A Dposix-cpu-timers.c1017 u64 ptime = samples[CPUCLOCK_PROF]; in check_process_timers() local
1023 check_rlimit(ptime, hardns, SIGKILL, false, true)) in check_process_timers()
1027 if (check_rlimit(ptime, softns, SIGXCPU, false, false)) { in check_process_timers()