ftrace: Add comments to ftrace_hash_rec_disable/enable()
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 5 Jun 2024 18:03:37 +0000 (14:03 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 6 Jun 2024 19:21:25 +0000 (15:21 -0400)
commitda73f6d49007d1b6889d5cb3320dc9f90cf3ccbe
tree402018b5c56109a61efaf421d70bf22f280f5a6c
parent07bbe0833ed62f48785dffa8e429f35c1d906415
ftrace: Add comments to ftrace_hash_rec_disable/enable()

Add comments to describe what the functions ftrace_hash_rec_disable() and
ftrace_hash_rec_enable() do. Also change the passing of the "inc" variable
to __ftrace_hash_rec_update() to a boolean value as that is what it is
supposed to take.

Link: https://lore.kernel.org/linux-trace-kernel/20240605180408.857333430@goodmis.org
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ftrace.c