summaryrefslogtreecommitdiff
path: root/tools/perf/arch/x86/util/intel-bts.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-04-20 11:07:18 +0300
committerIngo Molnar <mingo@kernel.org>2017-04-20 11:07:18 +0300
commit07590a7d4030c159b9a0d7171f81049a9ce23245 (patch)
tree1aa05455a4eacca2ca9dc3b228f19addf7bfd395 /tools/perf/arch/x86/util/intel-bts.c
parentafa7a17f3aafb64647ba4cd38e20f3d678c7949b (diff)
parent1b5ad16c7aa7177512ce141e345ff36b9f1a6136 (diff)
downloadlinux-07590a7d4030c159b9a0d7171f81049a9ce23245.tar.xz
Merge tag 'perf-core-for-mingo-4.12-20170419' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core cleanups from Arnaldo Carvalho de Melo: - Introduce new header files out of the hodge-podge that util/util.h became, trying to disentangle the includes hell that all C projects end up growing. This should help in build times, as changes to seemingly unrelated files (util.h included tons of headers) won't trigger a rebuild of most object files. - Use equivalent facilities found in the kernel source code base originated tools/include/ header files, such as __stringify(), ARRAY_SIZE, that has extra checks (__must_be_array()), etc. - For that get some more files from the kernel sources, like include/linux/bug.h, some just with the bits needed at this time. - Use the headers where facilities declared in them are used, such as PRIxu(32,64) macros (inttypes.h), errno defines (errno.h), etc. - Remove various leftovers from the initial code base we copied from git.git: FLEX_ARRAY, etc. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/x86/util/intel-bts.c')
-rw-r--r--tools/perf/arch/x86/util/intel-bts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/arch/x86/util/intel-bts.c b/tools/perf/arch/x86/util/intel-bts.c
index 5132775a044f..af2bce7a2cd6 100644
--- a/tools/perf/arch/x86/util/intel-bts.c
+++ b/tools/perf/arch/x86/util/intel-bts.c
@@ -13,6 +13,7 @@
*
*/
+#include <errno.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/bitops.h>