diff options
author | David Ahern <dsahern@gmail.com> | 2011-07-15 12:34:09 -0600 |
---|---|---|
committer | Jonas ABERG <jonas.aberg@stericsson.com> | 2011-10-28 11:08:40 +0200 |
commit | 5b66db2e9035bd200a657d65bb0e1a1bb97da8b2 (patch) | |
tree | 16dbbb98271267b9caba1a069b4c01b1ab30714b /firmware/bnx2/bnx2-rv2p-09ax-6.0.17.fw.ihex | |
parent | fcc7ac57a7667dc023279ac8d8f28a8ab4db7437 (diff) |
perf tools: Fix endian conversion reading event attr from file header
commit eda3913bb70ecebac13adccffe1e7f96e93cee02 upstream.
The perf_event_attr struct has two __u32's at the top and
they need to be swapped individually.
With this change I was able to analyze a perf.data collected in a
32-bit PPC VM on an x86 system. I tested both 32-bit and 64-bit
binaries for the Intel analysis side; both read the PPC perf.data
file correctly.
-v2:
- changed the existing perf_event__attr_swap() to swap only elements
of perf_event_attr and exported it for use in swapping the
attributes in the file header
- updated swap_ops used for processing events
Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: acme@ghostprotocols.net
Cc: peterz@infradead.org
Cc: paulus@samba.org
Link: http://lkml.kernel.org/r/1310754849-12474-1-git-send-email-dsahern@gmail.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Change-Id: I1ea43d0c121009e8b44e9b68cc9aa7664f779db0
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35616
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'firmware/bnx2/bnx2-rv2p-09ax-6.0.17.fw.ihex')
0 files changed, 0 insertions, 0 deletions