summaryrefslogtreecommitdiffstats
path: root/kernel/trace/ring_buffer.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2018-08-02 03:08:30 +0200
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2018-08-02 03:08:30 +0200
commit3ebea280d7e9b610fa3d31c9cfd556b1705eeedf (patch)
tree03ea6a2ee84fe552b558c59ef78d3672de673f61 /kernel/trace/ring_buffer.c
parenttracing: Make tracer_tracing_is_on() return bool (diff)
downloadlinux-3ebea280d7e9b610fa3d31c9cfd556b1705eeedf.tar.xz
linux-3ebea280d7e9b610fa3d31c9cfd556b1705eeedf.zip
ring-buffer: Make ring_buffer_record_is_on() return bool
The value of ring_buffer_record_is_on() is either true or false, so have its return value be bool. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/ring_buffer.c')
-rw-r--r--kernel/trace/ring_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index 0b0b688ea166..ffb43cbc5c13 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -3221,7 +3221,7 @@ EXPORT_SYMBOL_GPL(ring_buffer_record_on);
*
* Returns true if the ring buffer is in a state that it accepts writes.
*/
-int ring_buffer_record_is_on(struct ring_buffer *buffer)
+bool ring_buffer_record_is_on(struct ring_buffer *buffer)
{
return !atomic_read(&buffer->record_disabled);
}