Skip to contentSkip to conversation

Revert "perf tools: event.h needs asm/perf_regs.h"

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Jul 25, 2016 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  4e3ba8af21b00b91b451e7c4a9fa3a63b025dd56
Gitweb:     http://git.kernel.org/tip/4e3ba8af21b00b91b451e7c4a9fa3a63b025dd56
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Mon, 25 Jul 2016 11:57:37 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Mon, 25 Jul 2016 11:58:56 -0300

Revert "perf tools: event.h needs asm/perf_regs.h"

This reverts commit e083a21fcac9311ca425e600a15332f4792c56cc.

Not needed at all, tools/perf/util/perf_regs.h, included via:

  #include "perf_regs.h"

Should have a definition for PERF_REGS_MAX, and since this is dependent on HAVE_PERF_REGS_SUPPORT, fixes the build on powerpc, noticed by trying to cross compile this from ubuntu16.04 with a locally build libz & elfutils pair, since those are not available in multilib packages.

---
 tools/perf/util/event.h | 1 -
 1 file changed, 1 deletion(-)
tools/perf/util/event.h +0 -1
index b32464b..8d363d5 100644
@@ -8,7 +8,6 @@
 #include "map.h"
 #include "build-id.h"
 #include "perf_regs.h"
-#include <asm/perf_regs.h>
 
 struct mmap_event {
 	struct perf_event_header header;