2 #include <linux/compiler.h> 14 for (i = 0; i < config->
nr; i++) {
15 if ((config->
data[i].
tag == tag) &&
31 #define HAS(term, val) \ 32 has_term(config, PERF_STAT_CONFIG_TERM__##term, val)
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)
#define TEST_ASSERT_VAL(text, cond)
int test__synthesize_stat(struct test *test __maybe_unused, int subtest __maybe_unused)
int test__synthesize_stat_config(struct test *test __maybe_unused, int subtest __maybe_unused)
int perf_event__synthesize_stat_config(struct perf_tool *tool, struct perf_stat_config *config, perf_event__handler_t process, struct machine *machine)
int perf_event__synthesize_stat(struct perf_tool *tool, u32 cpu, u32 thread, u64 id, struct perf_counts_values *count, perf_event__handler_t process, struct machine *machine)
struct stat_config_event_entry data[]
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 struct perf_tool tool
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_round(struct test *test __maybe_unused, int subtest __maybe_unused)
int perf_event__synthesize_stat_round(struct perf_tool *tool, u64 evtime, u64 type, perf_event__handler_t process, struct machine *machine)
void perf_event__read_stat_config(struct perf_stat_config *config, struct stat_config_event *event)