Linux Perf
stat.c File Reference
#include <linux/compiler.h>
#include "event.h"
#include "tests.h"
#include "stat.h"
#include "counts.h"
#include "debug.h"
Include dependency graph for stat.c:

Go to the source code of this file.

Macros

#define HAS(term, val)   has_term(config, PERF_STAT_CONFIG_TERM__##term, val)
 

Functions

static bool has_term (struct stat_config_event *config, u64 tag, u64 val)
 
static int process_stat_config_event (struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine __maybe_unused)
 
int test__synthesize_stat_config (struct test *test __maybe_unused, int subtest __maybe_unused)
 
static int process_stat_event (struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine __maybe_unused)
 
int test__synthesize_stat (struct test *test __maybe_unused, int subtest __maybe_unused)
 
static int process_stat_round_event (struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine __maybe_unused)
 
int test__synthesize_stat_round (struct test *test __maybe_unused, int subtest __maybe_unused)
 

Macro Definition Documentation

◆ HAS

#define HAS (   term,
  val 
)    has_term(config, PERF_STAT_CONFIG_TERM__##term, val)

Function Documentation

◆ has_term()

static bool has_term ( struct stat_config_event config,
u64  tag,
u64  val 
)
static

Definition at line 9 of file stat.c.

◆ process_stat_config_event()

static int process_stat_config_event ( struct perf_tool *tool  __maybe_unused,
union perf_event event,
struct perf_sample *sample  __maybe_unused,
struct machine *machine  __maybe_unused 
)
static

Definition at line 23 of file stat.c.

Here is the call graph for this function:

◆ process_stat_event()

static int process_stat_event ( struct perf_tool *tool  __maybe_unused,
union perf_event event,
struct perf_sample *sample  __maybe_unused,
struct machine *machine  __maybe_unused 
)
static

Definition at line 63 of file stat.c.

◆ process_stat_round_event()

static int process_stat_round_event ( struct perf_tool *tool  __maybe_unused,
union perf_event event,
struct perf_sample *sample  __maybe_unused,
struct machine *machine  __maybe_unused 
)
static

Definition at line 93 of file stat.c.

◆ test__synthesize_stat()

int test__synthesize_stat ( struct test *test  __maybe_unused,
int subtest  __maybe_unused 
)

Definition at line 79 of file stat.c.

Here is the call graph for this function:

◆ test__synthesize_stat_config()

int test__synthesize_stat_config ( struct test *test  __maybe_unused,
int subtest  __maybe_unused 
)

Definition at line 49 of file stat.c.

Here is the call graph for this function:

◆ test__synthesize_stat_round()

int test__synthesize_stat_round ( struct test *test  __maybe_unused,
int subtest  __maybe_unused 
)

Definition at line 105 of file stat.c.

Here is the call graph for this function: