Lines Matching defs:timestamp
419 bool perf_time__skip_sample(struct perf_time_interval *ptime, u64 timestamp)
422 if (timestamp == 0)
426 if ((ptime->start && timestamp < ptime->start) ||
427 (ptime->end && timestamp > ptime->end)) {
435 int num, u64 timestamp)
440 if ((!ptime_buf) || (timestamp == 0) || (num == 0))
444 return perf_time__skip_sample(&ptime_buf[0], timestamp);
452 if (timestamp >= ptime->start &&
453 (timestamp <= ptime->end || !ptime->end)) {
480 "(if '--buildid-all' is enabled, please set '--timestamp-boundary').\n");
528 int timestamp__scnprintf_usec(u64 timestamp, char *buf, size_t sz)
530 u64 sec = timestamp / NSEC_PER_SEC;
531 u64 usec = (timestamp % NSEC_PER_SEC) / NSEC_PER_USEC;
536 int timestamp__scnprintf_nsec(u64 timestamp, char *buf, size_t sz)
538 u64 sec = timestamp / NSEC_PER_SEC,
539 nsec = timestamp % NSEC_PER_SEC;