diff options
author | Ingo Molnar <mingo@kernel.org> | 2021-12-21 12:25:29 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-03-15 12:57:40 +0100 |
commit | f227bb81412f069637ea3d2ac495ffbad9895eba (patch) | |
tree | e1212d14545bd208affd5014e665b862d710de26 | |
parent | e0be231c713f13cd5c9a5dd0fb504677f78c46fa (diff) | |
download | tip-f227bb81412f069637ea3d2ac495ffbad9895eba.tar.gz |
headers/deps: perf: Optimize <linux/perf_event.h> dependencies, remove <linux/perf_event_api.h> inclusion
--------------------------------------------------------------------
| Combined, preprocessed C code size of header, without line markers,
| with comments stripped:
-------------------------
before: | #include <linux/perf_event.h> | LOC: 17,612 | headers: 387
after: | #include <linux/perf_event.h> | LOC: 9,372 | headers: 270
Fix up dangling dependencies.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/include/asm/trace/irq_vectors.h | 2 | ||||
-rw-r--r-- | drivers/hwtracing/coresight/coresight-etm-perf.h | 1 | ||||
-rw-r--r-- | include/linux/hw_breakpoint.h | 2 | ||||
-rw-r--r-- | include/linux/perf_event.h | 1 | ||||
-rw-r--r-- | include/trace/perf.h | 2 |
5 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/include/asm/trace/irq_vectors.h b/arch/x86/include/asm/trace/irq_vectors.h index d09747c82c01aa..da1a1b9bae74d5 100644 --- a/arch/x86/include/asm/trace/irq_vectors.h +++ b/arch/x86/include/asm/trace/irq_vectors.h @@ -5,7 +5,7 @@ #if !defined(_TRACE_IRQ_VECTORS_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_IRQ_VECTORS_H -#include <linux/perf_event.h> +#include <linux/perf_event_api.h> #include <linux/tracepoint.h> #include <asm/trace/common.h> diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.h b/drivers/hwtracing/coresight/coresight-etm-perf.h index 468f7799ab4fb1..0f512c38ce0f74 100644 --- a/drivers/hwtracing/coresight/coresight-etm-perf.h +++ b/drivers/hwtracing/coresight/coresight-etm-perf.h @@ -7,6 +7,7 @@ #ifndef _CORESIGHT_ETM_PERF_H #define _CORESIGHT_ETM_PERF_H +#include <linux/perf_event_api.h> #include <linux/percpu-defs.h> #include "coresight-priv.h" diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h index 78dd7035d1e542..c423fa2f5f3341 100644 --- a/include/linux/hw_breakpoint.h +++ b/include/linux/hw_breakpoint.h @@ -2,7 +2,7 @@ #ifndef _LINUX_HW_BREAKPOINT_H #define _LINUX_HW_BREAKPOINT_H -#include <linux/perf_event.h> +#include <linux/perf_event_api.h> #include <uapi/linux/hw_breakpoint.h> #ifdef CONFIG_HAVE_HW_BREAKPOINT diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 1a071594a02194..1a6569f4488258 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -15,6 +15,5 @@ #define _LINUX_PERF_EVENT_H #include <linux/perf_event_types.h> -#include <linux/perf_event_api.h> #endif /* _LINUX_PERF_EVENT_H */ diff --git a/include/trace/perf.h b/include/trace/perf.h index 2d858f0893540e..1250f4d28747fd 100644 --- a/include/trace/perf.h +++ b/include/trace/perf.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ -#include <linux/perf_event.h> +#include <linux/perf_event_api.h> #include <linux/device_api.h> #include <linux/types.h> |