Linux Perf
time-utils.h File Reference
#include <stddef.h>
#include <linux/types.h>
Include dependency graph for time-utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  perf_time_interval
 

Functions

int parse_nsec_time (const char *str, u64 *ptime)
 
int perf_time__parse_str (struct perf_time_interval *ptime, const char *ostr)
 
int perf_time__percent_parse_str (struct perf_time_interval *ptime_buf, int num, const char *ostr, u64 start, u64 end)
 
struct perf_time_intervalperf_time__range_alloc (const char *ostr, int *size)
 
bool perf_time__skip_sample (struct perf_time_interval *ptime, u64 timestamp)
 
bool perf_time__ranges_skip_sample (struct perf_time_interval *ptime_buf, int num, u64 timestamp)
 
int timestamp__scnprintf_usec (u64 timestamp, char *buf, size_t sz)
 
int fetch_current_timestamp (char *buf, size_t sz)
 

Function Documentation

◆ fetch_current_timestamp()

int fetch_current_timestamp ( char *  buf,
size_t  sz 
)

Definition at line 407 of file time-utils.c.

◆ parse_nsec_time()

int parse_nsec_time ( const char *  str,
u64 *  ptime 
)

Definition at line 15 of file time-utils.c.

◆ perf_time__parse_str()

int perf_time__parse_str ( struct perf_time_interval ptime,
const char *  ostr 
)

Definition at line 91 of file time-utils.c.

Here is the call graph for this function:

◆ perf_time__percent_parse_str()

int perf_time__percent_parse_str ( struct perf_time_interval ptime_buf,
int  num,
const char *  ostr,
u64  start,
u64  end 
)

Definition at line 295 of file time-utils.c.

Here is the call graph for this function:

◆ perf_time__range_alloc()

struct perf_time_interval* perf_time__range_alloc ( const char *  ostr,
int *  size 
)

Definition at line 328 of file time-utils.c.

◆ perf_time__ranges_skip_sample()

bool perf_time__ranges_skip_sample ( struct perf_time_interval ptime_buf,
int  num,
u64  timestamp 
)

Definition at line 371 of file time-utils.c.

Here is the call graph for this function:

◆ perf_time__skip_sample()

bool perf_time__skip_sample ( struct perf_time_interval ptime,
u64  timestamp 
)

Definition at line 356 of file time-utils.c.

◆ timestamp__scnprintf_usec()

int timestamp__scnprintf_usec ( u64  timestamp,
char *  buf,
size_t  sz 
)

Definition at line 399 of file time-utils.c.