summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/powerpc/util/evsel.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/arch/powerpc/util/evsel.c')
-rw-r--r--tools/perf/arch/powerpc/util/evsel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/perf/arch/powerpc/util/evsel.c b/tools/perf/arch/powerpc/util/evsel.c
new file mode 100644
index 000000000..2f733cdc8
--- /dev/null
+++ b/tools/perf/arch/powerpc/util/evsel.c
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+#include <stdio.h>
+#include "util/evsel.h"
+
+void arch_evsel__set_sample_weight(struct evsel *evsel)
+{
+ evsel__set_sample_bit(evsel, WEIGHT_STRUCT);
+}