[PATCH v9 01/23] perf arch arm: Sort includes and add missed explicit dependencies

Namhyung Kim namhyung at kernel.org
Mon May 25 17:34:17 PDT 2026


On Fri, May 22, 2026 at 03:04:12PM -0700, Ian Rogers wrote:
> Fix missing #includes found while cleaning the evsel/evlist header
> files. Sort the remaining header files for consistency with the rest
> of the code.
> 
> Signed-off-by: Ian Rogers <irogers at google.com>

Acked-by: Namhyung Kim <namhyung at kernel.org>

Thanks,
Namhyung

> ---
>  tools/perf/arch/arm/util/cs-etm.c | 26 ++++++++++++++------------
>  1 file changed, 14 insertions(+), 12 deletions(-)
> 
> diff --git a/tools/perf/arch/arm/util/cs-etm.c b/tools/perf/arch/arm/util/cs-etm.c
> index b7a839de8707..cdf8e3e60606 100644
> --- a/tools/perf/arch/arm/util/cs-etm.c
> +++ b/tools/perf/arch/arm/util/cs-etm.c
> @@ -3,10 +3,13 @@
>   * Copyright(C) 2015 Linaro Limited. All rights reserved.
>   * Author: Mathieu Poirier <mathieu.poirier at linaro.org>
>   */
> +#include "../../../util/cs-etm.h"
> +
> +#include <errno.h>
> +#include <stdlib.h>
>  
> -#include <api/fs/fs.h>
> -#include <linux/bits.h>
>  #include <linux/bitops.h>
> +#include <linux/bits.h>
>  #include <linux/compiler.h>
>  #include <linux/coresight-pmu.h>
>  #include <linux/kernel.h>
> @@ -14,25 +17,24 @@
>  #include <linux/string.h>
>  #include <linux/types.h>
>  #include <linux/zalloc.h>
> +#include <sys/stat.h>
> +
> +#include <api/fs/fs.h>
> +#include <internal/lib.h> // page_size
>  
> -#include "cs-etm.h"
> -#include "../../../util/debug.h"
> -#include "../../../util/record.h"
>  #include "../../../util/auxtrace.h"
>  #include "../../../util/cpumap.h"
> +#include "../../../util/debug.h"
>  #include "../../../util/event.h"
>  #include "../../../util/evlist.h"
>  #include "../../../util/evsel.h"
> -#include "../../../util/perf_api_probe.h"
>  #include "../../../util/evsel_config.h"
> +#include "../../../util/perf_api_probe.h"
> +#include "../../../util/pmu.h"
>  #include "../../../util/pmus.h"
> -#include "../../../util/cs-etm.h"
> -#include <internal/lib.h> // page_size
> +#include "../../../util/record.h"
>  #include "../../../util/session.h"
> -
> -#include <errno.h>
> -#include <stdlib.h>
> -#include <sys/stat.h>
> +#include "cs-etm.h"
>  
>  struct cs_etm_recording {
>  	struct auxtrace_record	itr;
> -- 
> 2.54.0.794.g4f17f83d09-goog
> 



More information about the linux-arm-kernel mailing list