aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitry Koshelev <[email protected]>2021-05-06 13:11:49 +0000
committerArnaldo Carvalho de Melo <[email protected]>2021-05-10 09:01:00 -0300
commita11c9a6e472457cf9eeafb585fc5c912f51d1b23 (patch)
treeda235c9b870b40c221e702bdd69d16e2016c1cc9 /lib
parent7aa3c9eabdf76017679e975e2ffd50cde3c010b8 (diff)
perf session: Fix swapping of cpu_map and stat_config records
'data' field in perf_record_cpu_map_data struct is 16-bit wide and so should be swapped using bswap_16(). 'nr' field in perf_record_stat_config struct should be swapped before being used for size calculation. Signed-off-by: Dmitry Koshelev <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Kan Liang <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions