summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2022-10-25 22:25:18 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-10-27 21:37:26 +0200
commit743ef218c2fbe63502615a2044977041ee068322 (patch)
tree81f9b2f48ef3abdd17727dc24c287587c914448e
parentperf config: Add missing newline on pr_warning() call in home_perfconfig() (diff)
downloadlinux-743ef218c2fbe63502615a2044977041ee068322.tar.xz
linux-743ef218c2fbe63502615a2044977041ee068322.zip
perf unwind arm64: Remove needless event.h & thread.h includes
To reduce compile time and header dependency chains just add forward declarations for pointer types and include linux/types.h for u64. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/util/arm64-frame-pointer-unwind-support.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/arm64-frame-pointer-unwind-support.h b/tools/perf/util/arm64-frame-pointer-unwind-support.h
index 32af9ce94398..42d3a45490f5 100644
--- a/tools/perf/util/arm64-frame-pointer-unwind-support.h
+++ b/tools/perf/util/arm64-frame-pointer-unwind-support.h
@@ -2,8 +2,10 @@
#ifndef __PERF_ARM_FRAME_POINTER_UNWIND_SUPPORT_H
#define __PERF_ARM_FRAME_POINTER_UNWIND_SUPPORT_H
-#include "event.h"
-#include "thread.h"
+#include <linux/types.h>
+
+struct perf_sample;
+struct thread;
u64 get_leaf_frame_caller_aarch64(struct perf_sample *sample, struct thread *thread, int user_idx);