kernel_optimize_test/tools/perf/util
David Ahern 80c0120a3c perf tools: Fix endianity swapping for adds_features bitmask
Based on Jiri's latest attempt:
https://lkml.org/lkml/2012/5/16/61

Basically, adds_features should be byte swapped assuming unsigned
longs are either 8-bytes (u64) or 4-bytes (u32).

    Fixes 32-bit ppc dumping 64-bit x86 feature data:
     ========
     captured on: Sun May 20 19:23:23 2012
     hostname : nxos-vdc-dev3
     os release : 3.4.0-rc7+
     perf version : 3.4.rc4.137.g978da3
     arch : x86_64
     nrcpus online : 16
     nrcpus avail : 16
     cpudesc : Intel(R) Xeon(R) CPU E5540 @ 2.53GHz
     cpuid : GenuineIntel,6,26,5
     total memory : 24680324 kB
    ...

Verified 64-bit x86 can still dump feature data for 32-bit ppc.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Jiri Olsa <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/4FBBB539.5010805@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-06-11 11:20:01 -03:00
..
include perf tools: Fix endianity swapping for adds_features bitmask 2012-06-11 11:20:01 -03:00
scripting-engines
abspath.c
alias.c
annotate.c
annotate.h
bitmap.c
build-id.c
build-id.h
cache.h
callchain.c perf callchain: Make callchain cursors TLS 2012-05-31 10:47:12 -03:00
callchain.h perf callchain: Make callchain cursors TLS 2012-05-31 10:47:12 -03:00
cgroup.c
cgroup.h
color.c
color.h
config.c perf config: Allow '_' in config file variable names 2012-05-29 21:59:02 -03:00
cpumap.c
cpumap.h
ctype.c
debug.c
debug.h
debugfs.c
debugfs.h
dwarf-aux.c
dwarf-aux.h
environment.c
event.c
event.h
evlist.c perf evlist: Pass third argument to ioctl explicitly 2012-05-31 11:39:16 -03:00
evlist.h perf stat: Initialize default events wrt exclude_{guest,host} 2012-05-30 14:02:38 -03:00
evsel.c perf evsel: Fix 32 bit values endianity swap for sample_id_all header 2012-05-31 11:59:01 -03:00
evsel.h perf tools: Reconstruct event with modifiers from perf_event_attr 2012-05-25 16:38:11 -03:00
exec_cmd.c
exec_cmd.h
generate-cmdlist.sh
header.c perf tools: Fix endianity swapping for adds_features bitmask 2012-06-11 11:20:01 -03:00
header.h
help.c
help.h
hist.c perf callchain: Make callchain cursors TLS 2012-05-31 10:47:12 -03:00
hist.h perf callchain: Make callchain cursors TLS 2012-05-31 10:47:12 -03:00
hweight.c
levenshtein.c
levenshtein.h
map.c
map.h
pager.c perf tools: Fix pager on minimal-install embedded systems 2012-05-30 15:10:39 -03:00
parse-events-test.c
parse-events.c perf tools: Reconstruct event with modifiers from perf_event_attr 2012-05-25 16:38:11 -03:00
parse-events.h
parse-events.l
parse-events.y
parse-options.c
parse-options.h
path.c
PERF-VERSION-GEN perf tools: Make --version show kernel version instead of pull req tag 2012-05-31 11:20:59 -03:00
pmu.c
pmu.h
pmu.l
pmu.y
probe-event.c perf uprobes: Remove unnecessary check before strlist__delete 2012-05-31 12:08:49 -03:00
probe-event.h
probe-finder.c
probe-finder.h
pstack.c
pstack.h
python-ext-sources
python.c
quote.c
quote.h
run-command.c
run-command.h
session.c perf tools: Fix endianity swapping for adds_features bitmask 2012-06-11 11:20:01 -03:00
session.h perf tools: Fix endianity swapping for adds_features bitmask 2012-06-11 11:20:01 -03:00
setup.py
sigchain.c
sigchain.h
sort.c
sort.h
strbuf.c
strbuf.h
strfilter.c
strfilter.h
string.c
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol.c perf symbols: Check for valid dso before creating map 2012-05-31 12:08:22 -03:00
symbol.h perf symbols: Handle different endians properly during symbol load 2012-05-31 11:55:36 -03:00
sysfs.c
sysfs.h
target.c
target.h
thread_map.c
thread_map.h
thread.c
thread.h
tool.h
top.c
top.h
trace-event-info.c
trace-event-parse.c
trace-event-read.c
trace-event-scripting.c
trace-event.h
types.h
usage.c
util.c
util.h
values.c
values.h
wrapper.c
xyarray.c
xyarray.h