aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/tests/mem2node.c
diff options
context:
space:
mode:
authorMadhavan Srinivasan <[email protected]>2021-10-28 17:07:13 +0530
committerArnaldo Carvalho de Melo <[email protected]>2021-10-28 09:33:02 -0300
commit63c12ae2f246dcdc30895ec7c980365a5133433d (patch)
tree377b04fbe28ee674ce6dc6131098f0c4d6966907 /tools/perf/tests/mem2node.c
parent6ea5d1a3e301a3d1f0364dfd481210aa6aa3cf17 (diff)
perf evsel: Add bitfield_swap() to handle branch_stack endian issue
The branch_stack struct has bit field definition which produces different bit ordering for big/little endian. Because of this, when branch_stack sample is collected in a BE system and viewed/reported in a LE system, bit fields of the branch stack are not presented properly. To address this issue, a evsel__bitfield_swap_branch_stack() is defined and introduced in evsel__parse_sample. Signed-off-by: Madhavan Srinivasan <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Athira Jajeev <[email protected]> Cc: Kajol Jain <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/tests/mem2node.c')
0 files changed, 0 insertions, 0 deletions