android_kernel_oneplus_msm8998/tools/perf/util/include/linux
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
..
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: Fix build against newer glibc 2011-08-18 07:24:53 -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 options: Check v type in OPT_U?INTEGER 2010-05-17 15:43:38 -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
poison.h
prefetch.h
rbtree.h
string.h perf tools: Add missing tools/perf/util/include/string.h 2009-10-20 02:59:34 +02:00
types.h perf: Add back list_head data types 2010-08-12 21:50:00 +02:00