.. | .. |
---|
5 | 5 | #include "stat.h" |
---|
6 | 6 | #include "counts.h" |
---|
7 | 7 | #include "debug.h" |
---|
| 8 | +#include "util/synthetic-events.h" |
---|
8 | 9 | |
---|
9 | | -static bool has_term(struct stat_config_event *config, |
---|
| 10 | +static bool has_term(struct perf_record_stat_config *config, |
---|
10 | 11 | u64 tag, u64 val) |
---|
11 | 12 | { |
---|
12 | 13 | unsigned i; |
---|
.. | .. |
---|
25 | 26 | struct perf_sample *sample __maybe_unused, |
---|
26 | 27 | struct machine *machine __maybe_unused) |
---|
27 | 28 | { |
---|
28 | | - struct stat_config_event *config = &event->stat_config; |
---|
| 29 | + struct perf_record_stat_config *config = &event->stat_config; |
---|
29 | 30 | struct perf_stat_config stat_config; |
---|
30 | 31 | |
---|
31 | 32 | #define HAS(term, val) \ |
---|
.. | .. |
---|
65 | 66 | struct perf_sample *sample __maybe_unused, |
---|
66 | 67 | struct machine *machine __maybe_unused) |
---|
67 | 68 | { |
---|
68 | | - struct stat_event *st = &event->stat; |
---|
| 69 | + struct perf_record_stat *st = &event->stat; |
---|
69 | 70 | |
---|
70 | 71 | TEST_ASSERT_VAL("wrong cpu", st->cpu == 1); |
---|
71 | 72 | TEST_ASSERT_VAL("wrong thread", st->thread == 2); |
---|
.. | .. |
---|
95 | 96 | struct perf_sample *sample __maybe_unused, |
---|
96 | 97 | struct machine *machine __maybe_unused) |
---|
97 | 98 | { |
---|
98 | | - struct stat_round_event *stat_round = &event->stat_round; |
---|
| 99 | + struct perf_record_stat_round *stat_round = &event->stat_round; |
---|
99 | 100 | |
---|
100 | 101 | TEST_ASSERT_VAL("wrong time", stat_round->time == 0xdeadbeef); |
---|
101 | 102 | TEST_ASSERT_VAL("wrong type", stat_round->type == PERF_STAT_ROUND_TYPE__INTERVAL); |
---|