aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <[email protected]>2019-12-11 15:44:22 -0500
committerSteven Rostedt (VMware) <[email protected]>2019-12-19 18:26:00 -0500
commit106f41f5a302cb1f36c7543fae6a05de12e96fa4 (patch)
treec3b4c17919575dd2ad393048409cb142ce435115 /tools/perf/util/scripting-engines
parent79e65c27f09683fbb50c33acab395d0ddf5302d2 (diff)
tracing: Have the histogram compare functions convert to u64 first
The compare functions of the histogram code would be specific for the size of the value being compared (byte, short, int, long long). It would reference the value from the array via the type of the compare, but the value was stored in a 64 bit number. This is fine for little endian machines, but for big endian machines, it would end up comparing zeros or all ones (depending on the sign) for anything but 64 bit numbers. To fix this, first derference the value as a u64 then convert it to the type being compared. Link: http://lkml.kernel.org/r/[email protected] Cc: [email protected] Fixes: 08d43a5fa063e ("tracing: Add lock-free tracing_map") Acked-by: Tom Zanussi <[email protected]> Reported-by: Sven Schnelle <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines')
0 files changed, 0 insertions, 0 deletions