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

Leo Yan posted 1 patch 1 month, 2 weeks ago
tools/perf/util/kvm-stat-arch/kvm-stat-x86.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
[PATCH] perf kvm stat: Fix relative paths for including headers
Posted by Leo Yan 1 month, 2 weeks ago
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@kernel.org>
Suggested-by: Ian Rogers <irogers@google.com>
Signed-off-by: Leo Yan <leo.yan@arm.com>
---
 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@arm.com>
Re: [PATCH] perf kvm stat: Fix relative paths for including headers
Posted by Namhyung Kim 1 month, 1 week ago
On Sun, 01 Mar 2026 17:43:25 +0000, Leo Yan wrote:
> Add an extra "../" to the relative paths so that the uAPI headers
> provided by tools can be found correctly.
> 
> 
Applied to perf-tools-next, thanks!

Best regards,
Namhyung
Re: [PATCH] perf kvm stat: Fix relative paths for including headers
Posted by Ian Rogers 1 month, 2 weeks ago
On Sun, Mar 1, 2026 at 9:43 AM Leo Yan <leo.yan@arm.com> 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@kernel.org>
> Suggested-by: Ian Rogers <irogers@google.com>
> Signed-off-by: Leo Yan <leo.yan@arm.com>

Reviewed-by: Ian Rogers <irogers@google.com>

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@arm.com>
>