Commit-ID:  5839a5506de30c23d4cfaf49755cd294f5c48368
Gitweb:     http://git.kernel.org/tip/5839a5506de30c23d4cfaf49755cd294f5c48368
Author:     Adrian Hunter <adrian.hun...@intel.com>
AuthorDate: Fri, 21 Aug 2015 22:05:58 +0300
Committer:  Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate: Sat, 22 Aug 2015 12:27:07 -0300

perf tools: Fix tarball build broken by pt/bts

Fix some include paths and add missing inat_types.h.

Reported-by: Arnaldo Carvalho de Melo <a...@redhat.com>
Signed-off-by: Adrian Hunter <adrian.hun...@intel.com>
Cc: Jiri Olsa <jo...@kernel.org>
Link: http://lkml.kernel.org/r/55d77696.60...@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <a...@redhat.com>
---
 tools/perf/util/intel-pt-decoder/inat.c                               | 2 +-
 tools/perf/util/intel-pt-decoder/inat.h                               | 2 +-
 .../x86/include/asm => tools/perf/util/intel-pt-decoder}/inat_types.h | 0
 tools/perf/util/intel-pt-decoder/insn.c                               | 4 ++--
 tools/perf/util/intel-pt-decoder/insn.h                               | 2 +-
 tools/perf/util/intel-pt-decoder/intel-pt-insn-decoder.c              | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tools/perf/util/intel-pt-decoder/inat.c 
b/tools/perf/util/intel-pt-decoder/inat.c
index feeaa50..906d94a 100644
--- a/tools/perf/util/intel-pt-decoder/inat.c
+++ b/tools/perf/util/intel-pt-decoder/inat.c
@@ -18,7 +18,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
  */
-#include <asm/insn.h>
+#include "insn.h"
 
 /* Attribute tables are generated from opcode map */
 #include "inat-tables.c"
diff --git a/tools/perf/util/intel-pt-decoder/inat.h 
b/tools/perf/util/intel-pt-decoder/inat.h
index 74a2e31..611645e 100644
--- a/tools/perf/util/intel-pt-decoder/inat.h
+++ b/tools/perf/util/intel-pt-decoder/inat.h
@@ -20,7 +20,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
  */
-#include <asm/inat_types.h>
+#include "inat_types.h"
 
 /*
  * Internal bits. Don't use bitmasks directly, because these bits are
diff --git a/arch/x86/include/asm/inat_types.h 
b/tools/perf/util/intel-pt-decoder/inat_types.h
similarity index 100%
copy from arch/x86/include/asm/inat_types.h
copy to tools/perf/util/intel-pt-decoder/inat_types.h
diff --git a/tools/perf/util/intel-pt-decoder/insn.c 
b/tools/perf/util/intel-pt-decoder/insn.c
index 8f72b33..47314a6 100644
--- a/tools/perf/util/intel-pt-decoder/insn.c
+++ b/tools/perf/util/intel-pt-decoder/insn.c
@@ -23,8 +23,8 @@
 #else
 #include <string.h>
 #endif
-#include <asm/inat.h>
-#include <asm/insn.h>
+#include "inat.h"
+#include "insn.h"
 
 /* Verify next sizeof(t) bytes can be on the same instruction */
 #define validate_next(t, insn, n)      \
diff --git a/tools/perf/util/intel-pt-decoder/insn.h 
b/tools/perf/util/intel-pt-decoder/insn.h
index e7814b7..dd12da0 100644
--- a/tools/perf/util/intel-pt-decoder/insn.h
+++ b/tools/perf/util/intel-pt-decoder/insn.h
@@ -21,7 +21,7 @@
  */
 
 /* insn_attr_t is defined in inat.h */
-#include <asm/inat.h>
+#include "inat.h"
 
 struct insn_field {
        union {
diff --git a/tools/perf/util/intel-pt-decoder/intel-pt-insn-decoder.c 
b/tools/perf/util/intel-pt-decoder/intel-pt-insn-decoder.c
index 46980fc..9e4eb8f 100644
--- a/tools/perf/util/intel-pt-decoder/intel-pt-insn-decoder.c
+++ b/tools/perf/util/intel-pt-decoder/intel-pt-insn-decoder.c
@@ -20,7 +20,7 @@
 
 #include "event.h"
 
-#include <asm/insn.h>
+#include "insn.h"
 
 #include "inat.c"
 #include "insn.c"
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to