Re: Another bug: Re: [PATCH 0/3] perf report: Add support to print a textual representation of IBS raw sample data
From: Arnaldo Carvalho de Melo
Date: Fri Sep 10 2021 - 16:58:21 EST
Em Fri, Sep 10, 2021 at 04:48:42PM -0300, Arnaldo Carvalho de Melo escreveu:
>
> All the cross builds are failing:
>
> 28 9.20 debian:experimental-x-arm64 : FAIL gcc version 10.2.1 20210110 (Debian 10.2.1-6)
> util/amd-sample-raw.c:12:10: fatal error: asm/amd-ibs.h: No such file or directory
> 12 | #include <asm/amd-ibs.h>
> | ^~~~~~~~~~~~~~~
> compilation terminated.
Trying with the same trick used by intel-pt to build on all arches:
diff --git a/tools/perf/util/amd-sample-raw.c b/tools/perf/util/amd-sample-raw.c
index fbb7d61c50489374..d19d765195c54b79 100644
--- a/tools/perf/util/amd-sample-raw.c
+++ b/tools/perf/util/amd-sample-raw.c
@@ -9,7 +9,7 @@
#include <inttypes.h>
#include <linux/string.h>
-#include <asm/amd-ibs.h>
+#include "../../arch/x86/include/asm/amd-ibs.h"
#include "debug.h"
#include "session.h"