aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorSven Schnelle <[email protected]>2024-02-05 07:53:40 +0100
committerSteven Rostedt (Google) <[email protected]>2024-02-13 12:04:17 -0500
commita6eaa24f1cc2c7aecec6047556bdfe32042094c3 (patch)
tree76923262e62aae112de52af55b5226ba6a4bd0a9 /lib/test_fortify/write_overflow-strncpy-src.c
parentbdbddb109c75365d22ec4826f480c5e75869e1cb (diff)
tracing: Use ring_buffer_record_is_set_on() in tracer_tracing_is_on()
tracer_tracing_is_on() checks whether record_disabled is not zero. This checks both the record_disabled counter and the RB_BUFFER_OFF flag. Reading the source it looks like this function should only check for the RB_BUFFER_OFF flag. Therefore use ring_buffer_record_is_set_on(). This fixes spurious fails in the 'test for function traceon/off triggers' test from the ftrace testsuite when the system is under load. Link: https://lore.kernel.org/linux-trace-kernel/[email protected] Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Tested-By: Mete Durlu <[email protected]> Signed-off-by: Sven Schnelle <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions