5 #include <linux/types.h> 55 #define NUM_CTX CTX_BIT_MAX 108 stats->
min = (u64) -1;
127 #define perf_stat_evsel__is(evsel, id) \ 128 __perf_evsel_stat__is(evsel, PERF_STAT_EVSEL_ID__ ## id) 134 const char *
fmt,
double val);
void runtime_stat__exit(struct runtime_stat *st)
void perf_stat__init_shadow_stats(void)
size_t perf_event__fprintf_stat_config(union perf_event *event, FILE *fp)
void(* new_line_t)(void *ctx)
void perf_stat__reset_shadow_per_stat(struct runtime_stat *st)
bool __perf_evsel_stat__is(struct perf_evsel *evsel, enum perf_stat_evsel_id id)
int perf_event__process_stat_event(struct perf_tool *tool, union perf_event *event, struct perf_session *session)
print_metric_t print_metric
static struct rblist metric_events
void perf_evlist__reset_stats(struct perf_evlist *evlist)
struct runtime_stat rt_stat
static void init_stats(struct stats *stats)
void perf_stat__reset_shadow_stats(void)
void perf_stat__print_shadow_stats(struct perf_evsel *evsel, double avg, int cpu, struct perf_stat_output_ctx *out, struct rblist *metric_events, struct runtime_stat *st)
size_t perf_event__fprintf_stat(union perf_event *event, FILE *fp)
double avg_stats(struct stats *stats)
static struct perf_session * session
int perf_stat_process_counter(struct perf_stat_config *config, struct perf_evsel *counter)
void perf_evlist__free_stats(struct perf_evlist *evlist)
void runtime_stat__init(struct runtime_stat *st)
struct stats walltime_nsecs_stats
struct perf_evsel * counter
static struct perf_tool tool
void update_stats(struct stats *stats, u64 val)
void perf_stat__update_shadow_stats(struct perf_evsel *counter, u64 count, int cpu, struct runtime_stat *st)
int perf_evlist__alloc_stats(struct perf_evlist *evlist, bool alloc_raw)
size_t perf_event__fprintf_stat_round(union perf_event *event, FILE *fp)
struct runtime_stat * stats
double stddev_stats(struct stats *stats)
void(* print_metric_t)(void *ctx, const char *color, const char *unit, const char *fmt, double val)
double rel_stddev_stats(double stddev, double avg)
void perf_stat__collect_metric_expr(struct perf_evlist *)