aboutsummaryrefslogtreecommitdiff
path: root/samples/ftrace/sample-trace-array.c
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <[email protected]>2023-12-15 08:41:14 -0500
committerSteven Rostedt (Google) <[email protected]>2023-12-15 08:43:35 -0500
commit0aa0e5289cfe984a8a9fdd79ccf46ccf080151f7 (patch)
treec557cbdf38ddd1fa36716271ee32181f963ed5f5 /samples/ftrace/sample-trace-array.c
parentdec890089bf79a4954b61482715ee2d084364856 (diff)
ring-buffer: Have rb_time_cmpxchg() set the msb counter too
The rb_time_cmpxchg() on 32-bit architectures requires setting three 32-bit words to represent the 64-bit timestamp, with some salt for synchronization. Those are: msb, top, and bottom The issue is, the rb_time_cmpxchg() did not properly salt the msb portion, and the msb that was written was stale. Link: https://lore.kernel.org/linux-trace-kernel/[email protected] Cc: [email protected] Cc: Masami Hiramatsu <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Fixes: f03f2abce4f39 ("ring-buffer: Have 32 bit time stamps use all 64 bits") Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'samples/ftrace/sample-trace-array.c')
0 files changed, 0 insertions, 0 deletions