hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/perf/tests/stat.c
....@@ -5,8 +5,9 @@
55 #include "stat.h"
66 #include "counts.h"
77 #include "debug.h"
8
+#include "util/synthetic-events.h"
89
9
-static bool has_term(struct stat_config_event *config,
10
+static bool has_term(struct perf_record_stat_config *config,
1011 u64 tag, u64 val)
1112 {
1213 unsigned i;
....@@ -25,7 +26,7 @@
2526 struct perf_sample *sample __maybe_unused,
2627 struct machine *machine __maybe_unused)
2728 {
28
- struct stat_config_event *config = &event->stat_config;
29
+ struct perf_record_stat_config *config = &event->stat_config;
2930 struct perf_stat_config stat_config;
3031
3132 #define HAS(term, val) \
....@@ -65,7 +66,7 @@
6566 struct perf_sample *sample __maybe_unused,
6667 struct machine *machine __maybe_unused)
6768 {
68
- struct stat_event *st = &event->stat;
69
+ struct perf_record_stat *st = &event->stat;
6970
7071 TEST_ASSERT_VAL("wrong cpu", st->cpu == 1);
7172 TEST_ASSERT_VAL("wrong thread", st->thread == 2);
....@@ -95,7 +96,7 @@
9596 struct perf_sample *sample __maybe_unused,
9697 struct machine *machine __maybe_unused)
9798 {
98
- struct stat_round_event *stat_round = &event->stat_round;
99
+ struct perf_record_stat_round *stat_round = &event->stat_round;
99100
100101 TEST_ASSERT_VAL("wrong time", stat_round->time == 0xdeadbeef);
101102 TEST_ASSERT_VAL("wrong type", stat_round->type == PERF_STAT_ROUND_TYPE__INTERVAL);