linux/tools/perf
Irina Tirdea 3f34f6c023 perf tools: include __WORDSIZE definition
__WORDSIZE is GLibC-specific and is not defined on all systems or glibc
versions (e.g. Android's bionic does not define it).

In file included from util/include/linux/bitmap.h:5:0,
                 from util/header.h:10,
                 from util/session.h:6,
                 from util/build-id.h:4,
                 from util/annotate.c:11:
util/include/linux/bitops.h: In function 'set_bit':
util/include/linux/bitops.h:25:12: error:
'__WORDSIZE' undeclared (first use in this function)
util/include/linux/bitops.h:25:12: note:
each undeclared identifier is reported only once for each function it appears in
util/include/linux/bitops.h:23:51: error:
parameter 'addr' set but not used [-Werror=unused-but-set-parameter]
util/include/linux/bitops.h: In function 'clear_bit':
util/include/linux/bitops.h:30:12: error:
'__WORDSIZE' undeclared (first use in this function)
util/include/linux/bitops.h:28:53: error:
parameter 'addr' set but not used [-Werror=unused-but-set-parameter]
In file included from util/header.h:10:0,
                 from util/session.h:6,
                 from util/build-id.h:4,
                 from util/annotate.c:11:
util/include/linux/bitmap.h: In function 'bitmap_zero':
util/include/linux/bitmap.h:22:6: error:
'__WORDSIZE' undeclared (first use in this function)

Defining __WORDSIZE in perf's headers if it is not already defined.

Suggested-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Suggested-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
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-4-git-send-email-irina.tirdea@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-09-11 11:47:45 -03:00
..
arch perf tools: Support for DWARF CFI unwinding on post processing 2012-08-11 15:06:56 -03:00
bench perf bench: fix assert when NDEBUG is defined 2012-09-08 13:18:54 -03:00
config perf tools: add NO_BACKTRACE for application self-debugging 2012-09-07 22:12:30 -03:00
Documentation perf diff: Make diff command work with evsel hists 2012-09-07 21:44:02 -03:00
python
scripts perf script python: Correct handler check and spelling errors 2012-08-09 13:26:19 -03:00
ui perf gtk/browser: Use perf_hpp__format functions 2012-09-08 13:20:21 -03:00
util perf tools: include __WORDSIZE definition 2012-09-11 11:47:45 -03:00
.gitignore perf tools: Ignore compiled python binaries 2012-09-07 12:10:58 -03:00
bash_completion perf tools: Support for events bash completion 2012-08-09 15:59:26 -03:00
builtin-annotate.c perf tools: Allow user to indicate path to objdump in command line 2012-09-05 19:41:55 -03:00
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c perf symbols: Introduce symbol__elf_init() 2012-08-09 16:19:14 -03:00
builtin-diff.c perf hists: Introduce perf_hpp for hist period printing 2012-09-08 13:19:44 -03:00
builtin-evlist.c
builtin-help.c perf help: Remove use of die and handle errors 2012-09-05 17:21:10 -03:00
builtin-inject.c perf symbols: Support minimal build without libelf 2012-08-09 16:26:38 -03:00
builtin-kmem.c perf kmem: Remove die() calls 2012-09-09 11:39:02 -03:00
builtin-kvm.c
builtin-list.c perf tools: Support for events bash completion 2012-08-09 15:59:26 -03:00
builtin-lock.c perf lock: Remove use of die and handle errors 2012-09-05 17:19:38 -03:00
builtin-probe.c
builtin-record.c perf record: Remove use of die/exit 2012-09-05 17:22:41 -03:00
builtin-report.c perf tools: Allow user to indicate path to objdump in command line 2012-09-05 19:41:55 -03:00
builtin-sched.c perf sched: Remove die() calls 2012-09-09 11:39:02 -03:00
builtin-script.c perf script: Remove use of die/exit 2012-09-05 17:21:39 -03:00
builtin-stat.c perf stat: Remove use of die/exit and handle errors 2012-09-05 17:20:24 -03:00
builtin-test.c perf test: Remove die() calls 2012-09-09 11:39:02 -03:00
builtin-timechart.c
builtin-top.c perf evlist: Introduce evsel list accessors 2012-08-15 10:14:18 -03:00
builtin.h
command-list.txt perf symbols: Support minimal build without libelf 2012-08-09 16:26:38 -03:00
CREDITS
design.txt
Makefile perf tools: include wrapper for magic.h 2012-09-11 11:38:10 -03:00
MANIFEST perf tools: Add missing perf_regs.h file to MANIFEST 2012-09-11 11:42:41 -03:00
perf-archive.sh
perf.c perf tools: include missing pthread.h header 2012-09-07 22:08:09 -03:00
perf.h perf tools: Support for DWARF mode callchain 2012-08-11 15:07:18 -03:00