android_kernel_oneplus_msm8998/tools/perf/util/include/linux
Irina Tirdea 86d5a70c1e perf tools: Update types definitions for Android
Some type definitions are missing from Android or are already defined in
bionic and lead to redefinition errors.

Android defines in types.h __le32. Since perf is wrapping <linux/types.h> with a
local version, we need to define this constant in the local version too.
Error in Android:
In file included from bionic/libc/include/unistd.h:36:0,
                 from external/perf/tools/perf/util/util.h:46,
                 from external/perf/tools/perf/util/cache.h:5,
                 from external/perf/tools/perf/util/abspath.c:1:
bionic/libc/kernel/common/linux/capability.h:60:2:
error: unknown type name '__le32'

roundup() definition is missing:
util/symbol.c: In function 'symbols__fixup_end':
util/symbol.c:106: warning: implicit declaration of function 'roundup'
util/symbol.c:106: warning: nested extern declaration of 'roundup'

__force macro defined in perf is also defined in libc which leads to
redefinition errors. In order to avoid these, we guard these definition
with

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Acked-by: Pekka Enberg <penberg@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Irina Tirdea <irina.tirdea@intel.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1347315303-29906-3-git-send-email-irina.tirdea@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-09-11 11:46:09 -03:00
..
bitmap.h perf tools: Add bitmap_or function into bitmap object 2012-02-13 23:28:10 -02:00
bitops.h perf tools: Fix endianity swapping for adds_features bitmask 2012-06-11 11:20:01 -03:00
compiler.h perf tools: Update types definitions for Android 2012-09-11 11:46:09 -03:00
const.h perf tools: Fix build on older systems 2011-05-26 11:16:29 -03:00
ctype.h perf tools: Bring linear set of section headers for features 2009-11-11 07:30:19 +01:00
export.h perf tools: Switch module.h into export.h 2012-03-26 17:19:57 +02:00
hash.h perf: Add util/include/linuxhash.h to include hash.h of kernel 2010-01-31 08:27:53 +01:00
kernel.h perf tools: Update types definitions for Android 2012-09-11 11:46:09 -03:00
linkage.h perf bench: Add feature that measures the performance of the arch/x86/lib/memcpy_64.S memcpy routines via 'perf bench mem' 2010-11-26 08:15:57 +01:00
list.h Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2011-05-23 09:25:52 -07:00
magic.h perf tools: include wrapper for magic.h 2012-09-11 11:38:10 -03:00
poison.h perf_counter tools: Share list.h with the kernel 2009-07-01 22:37:23 +02:00
prefetch.h perf_counter tools: Share list.h with the kernel 2009-07-01 22:37:23 +02:00
rbtree.h perf tools: Fix build for another rbtree.c change 2012-09-07 22:21:59 -03:00
string.h perf tools: Add missing tools/perf/util/include/string.h 2009-10-20 02:59:34 +02:00
types.h perf tools: Update types definitions for Android 2012-09-11 11:46:09 -03:00