Skip to content

Commit a724a8f

Browse files
Leo-Yanacmel
authored andcommitted
perf kvm stat: Fix build error
Since commit ceea279 ("perf kvm stat: Remove use of the arch directory"), a native build on Arm64 machine reports: util/kvm-stat-arch/kvm-stat-x86.c:7:10: fatal error: asm/svm.h: No such file or directory 7 | #include <asm/svm.h> | ^~~~~~~~~~~ compilation terminated. The build fails to find x86's asm headers when building for Arm64. Fix this by including asm headers with relative path instead. Fixes: ceea279 ("perf kvm stat: Remove use of the arch directory") Signed-off-by: Leo Yan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: James Clark <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent e5e66ad commit a724a8f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/perf/util/kvm-stat-arch/kvm-stat-x86.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
#include "../kvm-stat.h"
55
#include "../evsel.h"
66
#include "../env.h"
7-
#include <asm/svm.h>
8-
#include <asm/vmx.h>
9-
#include <asm/kvm.h>
7+
#include "../../arch/x86/include/uapi/asm/svm.h"
8+
#include "../../arch/x86/include/uapi/asm/vmx.h"
9+
#include "../../arch/x86/include/uapi/asm/kvm.h"
1010
#include <subcmd/parse-options.h>
1111

1212
define_exit_reasons_table(vmx_exit_reasons, VMX_EXIT_REASONS);

0 commit comments

Comments
 (0)