#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <linux/time64.h>
#include <time.h>
#include <errno.h>
#include <inttypes.h>
#include <math.h>
#include "perf.h"
#include "debug.h"
#include "time-utils.h"
Go to the source code of this file.
|
int | parse_nsec_time (const char *str, u64 *ptime) |
|
static int | parse_timestr_sec_nsec (struct perf_time_interval *ptime, char *start_str, char *end_str) |
|
static int | split_start_end (char **start, char **end, const char *ostr, char ch) |
|
int | perf_time__parse_str (struct perf_time_interval *ptime, const char *ostr) |
|
static int | parse_percent (double *pcnt, char *str) |
|
static int | percent_slash_split (char *str, struct perf_time_interval *ptime, u64 start, u64 end) |
|
static int | percent_dash_split (char *str, struct perf_time_interval *ptime, u64 start, u64 end) |
|
static int | percent_comma_split (struct perf_time_interval *ptime_buf, int num, const char *ostr, u64 start, u64 end, time_pecent_split func) |
|
static int | one_percent_convert (struct perf_time_interval *ptime_buf, const char *ostr, u64 start, u64 end, char *c) |
|
int | perf_time__percent_parse_str (struct perf_time_interval *ptime_buf, int num, const char *ostr, u64 start, u64 end) |
|
struct perf_time_interval * | perf_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) |
|
◆ time_pecent_split
◆ fetch_current_timestamp()
int fetch_current_timestamp |
( |
char * |
buf, |
|
|
size_t |
sz |
|
) |
| |
◆ one_percent_convert()
static int one_percent_convert |
( |
struct perf_time_interval * |
ptime_buf, |
|
|
const char * |
ostr, |
|
|
u64 |
start, |
|
|
u64 |
end, |
|
|
char * |
c |
|
) |
| |
|
static |
◆ parse_nsec_time()
int parse_nsec_time |
( |
const char * |
str, |
|
|
u64 * |
ptime |
|
) |
| |
◆ parse_percent()
static int parse_percent |
( |
double * |
pcnt, |
|
|
char * |
str |
|
) |
| |
|
static |
◆ parse_timestr_sec_nsec()
static int parse_timestr_sec_nsec |
( |
struct perf_time_interval * |
ptime, |
|
|
char * |
start_str, |
|
|
char * |
end_str |
|
) |
| |
|
static |
◆ percent_comma_split()
◆ percent_dash_split()
static int percent_dash_split |
( |
char * |
str, |
|
|
struct perf_time_interval * |
ptime, |
|
|
u64 |
start, |
|
|
u64 |
end |
|
) |
| |
|
static |
◆ percent_slash_split()
static int percent_slash_split |
( |
char * |
str, |
|
|
struct perf_time_interval * |
ptime, |
|
|
u64 |
start, |
|
|
u64 |
end |
|
) |
| |
|
static |
◆ perf_time__parse_str()
◆ 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 |
|
) |
| |
◆ perf_time__range_alloc()
◆ perf_time__ranges_skip_sample()
bool perf_time__ranges_skip_sample |
( |
struct perf_time_interval * |
ptime_buf, |
|
|
int |
num, |
|
|
u64 |
timestamp |
|
) |
| |
◆ perf_time__skip_sample()
◆ split_start_end()
static int split_start_end |
( |
char ** |
start, |
|
|
char ** |
end, |
|
|
const char * |
ostr, |
|
|
char |
ch |
|
) |
| |
|
static |
◆ timestamp__scnprintf_usec()
int timestamp__scnprintf_usec |
( |
u64 |
timestamp, |
|
|
char * |
buf, |
|
|
size_t |
sz |
|
) |
| |