#include <errno.h>
#include <inttypes.h>
#include <math.h>
#include "stat.h"
#include "evlist.h"
#include "evsel.h"
#include "thread_map.h"
Go to the source code of this file.
|
#define | ID(id, name) [PERF_STAT_EVSEL_ID__##id] = #name |
|
|
void | update_stats (struct stats *stats, u64 val) |
|
double | avg_stats (struct stats *stats) |
|
double | stddev_stats (struct stats *stats) |
|
double | rel_stddev_stats (double stddev, double avg) |
|
bool | __perf_evsel_stat__is (struct perf_evsel *evsel, enum perf_stat_evsel_id id) |
|
static void | perf_stat_evsel_id_init (struct perf_evsel *evsel) |
|
static void | perf_evsel__reset_stat_priv (struct perf_evsel *evsel) |
|
static int | perf_evsel__alloc_stat_priv (struct perf_evsel *evsel) |
|
static void | perf_evsel__free_stat_priv (struct perf_evsel *evsel) |
|
static int | perf_evsel__alloc_prev_raw_counts (struct perf_evsel *evsel, int ncpus, int nthreads) |
|
static void | perf_evsel__free_prev_raw_counts (struct perf_evsel *evsel) |
|
static int | perf_evsel__alloc_stats (struct perf_evsel *evsel, bool alloc_raw) |
|
int | perf_evlist__alloc_stats (struct perf_evlist *evlist, bool alloc_raw) |
|
void | perf_evlist__free_stats (struct perf_evlist *evlist) |
|
void | perf_evlist__reset_stats (struct perf_evlist *evlist) |
|
static void | zero_per_pkg (struct perf_evsel *counter) |
|
static int | check_per_pkg (struct perf_evsel *counter, struct perf_counts_values *vals, int cpu, bool *skip) |
|
static int | process_counter_values (struct perf_stat_config *config, struct perf_evsel *evsel, int cpu, int thread, struct perf_counts_values *count) |
|
static int | process_counter_maps (struct perf_stat_config *config, struct perf_evsel *counter) |
|
int | perf_stat_process_counter (struct perf_stat_config *config, struct perf_evsel *counter) |
|
int | perf_event__process_stat_event (struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_session *session) |
|
size_t | perf_event__fprintf_stat (union perf_event *event, FILE *fp) |
|
size_t | perf_event__fprintf_stat_round (union perf_event *event, FILE *fp) |
|
size_t | perf_event__fprintf_stat_config (union perf_event *event, FILE *fp) |
|
◆ ID
#define ID |
( |
|
id, |
|
|
|
name |
|
) |
| [PERF_STAT_EVSEL_ID__##id] = #name |
◆ __perf_evsel_stat__is()
◆ avg_stats()
double avg_stats |
( |
struct stats * |
stats | ) |
|
◆ check_per_pkg()
◆ perf_event__fprintf_stat()
size_t perf_event__fprintf_stat |
( |
union perf_event * |
event, |
|
|
FILE * |
fp |
|
) |
| |
◆ perf_event__fprintf_stat_config()
size_t perf_event__fprintf_stat_config |
( |
union perf_event * |
event, |
|
|
FILE * |
fp |
|
) |
| |
◆ perf_event__fprintf_stat_round()
size_t perf_event__fprintf_stat_round |
( |
union perf_event * |
event, |
|
|
FILE * |
fp |
|
) |
| |
◆ perf_event__process_stat_event()
◆ perf_evlist__alloc_stats()
int perf_evlist__alloc_stats |
( |
struct perf_evlist * |
evlist, |
|
|
bool |
alloc_raw |
|
) |
| |
◆ perf_evlist__free_stats()
void perf_evlist__free_stats |
( |
struct perf_evlist * |
evlist | ) |
|
◆ perf_evlist__reset_stats()
void perf_evlist__reset_stats |
( |
struct perf_evlist * |
evlist | ) |
|
◆ perf_evsel__alloc_prev_raw_counts()
static int perf_evsel__alloc_prev_raw_counts |
( |
struct perf_evsel * |
evsel, |
|
|
int |
ncpus, |
|
|
int |
nthreads |
|
) |
| |
|
static |
◆ perf_evsel__alloc_stat_priv()
static int perf_evsel__alloc_stat_priv |
( |
struct perf_evsel * |
evsel | ) |
|
|
static |
◆ perf_evsel__alloc_stats()
static int perf_evsel__alloc_stats |
( |
struct perf_evsel * |
evsel, |
|
|
bool |
alloc_raw |
|
) |
| |
|
static |
◆ perf_evsel__free_prev_raw_counts()
static void perf_evsel__free_prev_raw_counts |
( |
struct perf_evsel * |
evsel | ) |
|
|
static |
◆ perf_evsel__free_stat_priv()
static void perf_evsel__free_stat_priv |
( |
struct perf_evsel * |
evsel | ) |
|
|
static |
◆ perf_evsel__reset_stat_priv()
static void perf_evsel__reset_stat_priv |
( |
struct perf_evsel * |
evsel | ) |
|
|
static |
◆ perf_stat_evsel_id_init()
static void perf_stat_evsel_id_init |
( |
struct perf_evsel * |
evsel | ) |
|
|
static |
◆ perf_stat_process_counter()
◆ process_counter_maps()
◆ process_counter_values()
◆ rel_stddev_stats()
double rel_stddev_stats |
( |
double |
stddev, |
|
|
double |
avg |
|
) |
| |
◆ stddev_stats()
double stddev_stats |
( |
struct stats * |
stats | ) |
|
◆ update_stats()
void update_stats |
( |
struct stats * |
stats, |
|
|
u64 |
val |
|
) |
| |
◆ zero_per_pkg()
static void zero_per_pkg |
( |
struct perf_evsel * |
counter | ) |
|
|
static |
◆ id_str
Initial value:= {
ID(CYCLES_IN_TX, cpu/cycles-t/),
ID(TRANSACTION_START, cpu/tx-
start/),
ID(CYCLES_IN_TX_CP, cpu/cycles-ct/),
ID(TOPDOWN_TOTAL_SLOTS, topdown-total-slots),
ID(TOPDOWN_SLOTS_ISSUED, topdown-slots-issued),
ID(TOPDOWN_SLOTS_RETIRED, topdown-slots-retired),
ID(TOPDOWN_FETCH_BUBBLES, topdown-fetch-bubbles),
ID(TOPDOWN_RECOVERY_BUBBLES, topdown-recovery-bubbles),
}
Definition at line 79 of file stat.c.