Re: [PATCH] perf kvm stat: Fix relative paths for including headers

From: Ian Rogers

Date: Mon Mar 02 2026 - 12:43:55 EST


On Sun, Mar 1, 2026 at 9:43 AM Leo Yan <leo.yan@xxxxxxx> wrote:
>
> Add an extra "../" to the relative paths so that the uAPI headers
> provided by tools can be found correctly.
>
> Fixes: a724a8fce5e2 ("perf kvm stat: Fix build error")
> Reported-by: Namhyung Kim <namhyung@xxxxxxxxxx>
> Suggested-by: Ian Rogers <irogers@xxxxxxxxxx>
> Signed-off-by: Leo Yan <leo.yan@xxxxxxx>

Reviewed-by: Ian Rogers <irogers@xxxxxxxxxx>

Thanks!
Ian

> ---
> tools/perf/util/kvm-stat-arch/kvm-stat-x86.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/tools/perf/util/kvm-stat-arch/kvm-stat-x86.c b/tools/perf/util/kvm-stat-arch/kvm-stat-x86.c
> index 43275d25b6cbccc477ba45a901d69c67422847ae..0f626db3a4392d7bd77417be16a2dfd4f4b1e34e 100644
> --- a/tools/perf/util/kvm-stat-arch/kvm-stat-x86.c
> +++ b/tools/perf/util/kvm-stat-arch/kvm-stat-x86.c
> @@ -4,9 +4,9 @@
> #include "../kvm-stat.h"
> #include "../evsel.h"
> #include "../env.h"
> -#include "../../arch/x86/include/uapi/asm/svm.h"
> -#include "../../arch/x86/include/uapi/asm/vmx.h"
> -#include "../../arch/x86/include/uapi/asm/kvm.h"
> +#include "../../../arch/x86/include/uapi/asm/svm.h"
> +#include "../../../arch/x86/include/uapi/asm/vmx.h"
> +#include "../../../arch/x86/include/uapi/asm/kvm.h"
> #include <subcmd/parse-options.h>
>
> define_exit_reasons_table(vmx_exit_reasons, VMX_EXIT_REASONS);
>
> ---
> base-commit: 977000589d30f8d4f0777893711199350d474363
> change-id: 20260228-perf_fix_kvm_stat_build-5962895f5f36
>
> Best regards,
> --
> Leo Yan <leo.yan@xxxxxxx>
>