aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2014-11-20 10:05:36 -0500
committerSteven Rostedt <rostedt@goodmis.org>2014-11-20 10:05:36 -0500
commit0af26492d5f5c00a08d52e9f3f3831faead90246 (patch)
treee97d37b4f96b467eec741ba1d3b64356b0edb4b9 /kernel/trace
parent16a8ef2751801346f1f76a18685b2beb63cd170f (diff)
tracing/trivial: Fix typos and make an int into a bool
Fix up a few typos in comments and convert an int into a bool in update_traceon_count(). Link: http://lkml.kernel.org/r/546DD445.5080108@hitachi.com Suggested-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/ftrace.c2
-rw-r--r--kernel/trace/trace_functions.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index fa0f36bb32e9..588af40d33db 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -1119,7 +1119,7 @@ static struct ftrace_ops global_ops = {
1119 1119
1120/* 1120/*
1121 * This is used by __kernel_text_address() to return true if the 1121 * This is used by __kernel_text_address() to return true if the
1122 * the address is on a dynamically allocated trampoline that would 1122 * address is on a dynamically allocated trampoline that would
1123 * not return true for either core_kernel_text() or 1123 * not return true for either core_kernel_text() or
1124 * is_module_text_address(). 1124 * is_module_text_address().
1125 */ 1125 */
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c
index 973db52eb070..fcd41a166405 100644
--- a/kernel/trace/trace_functions.c
+++ b/kernel/trace/trace_functions.c
@@ -261,14 +261,14 @@ static struct tracer function_trace __tracer_data =
261}; 261};
262 262
263#ifdef CONFIG_DYNAMIC_FTRACE 263#ifdef CONFIG_DYNAMIC_FTRACE
264static void update_traceon_count(void **data, int on) 264static void update_traceon_count(void **data, bool on)
265{ 265{
266 long *count = (long *)data; 266 long *count = (long *)data;
267 long old_count = *count; 267 long old_count = *count;
268 268
269 /* 269 /*
270 * Tracing gets disabled (or enabled) once per count. 270 * Tracing gets disabled (or enabled) once per count.
271 * This function can be called at the same time on mulitple CPUs. 271 * This function can be called at the same time on multiple CPUs.
272 * It is fine if both disable (or enable) tracing, as disabling 272 * It is fine if both disable (or enable) tracing, as disabling
273 * (or enabling) the second time doesn't do anything as the 273 * (or enabling) the second time doesn't do anything as the
274 * state of the tracer is already disabled (or enabled). 274 * state of the tracer is already disabled (or enabled).
@@ -288,7 +288,7 @@ static void update_traceon_count(void **data, int on)
288 * the new state is visible before changing the counter by 288 * the new state is visible before changing the counter by
289 * one minus the old counter. This guarantees that another CPU 289 * one minus the old counter. This guarantees that another CPU
290 * executing this code will see the new state before seeing 290 * executing this code will see the new state before seeing
291 * the new counter value, and would not do anthing if the new 291 * the new counter value, and would not do anything if the new
292 * counter is seen. 292 * counter is seen.
293 * 293 *
294 * Note, there is no synchronization between this and a user 294 * Note, there is no synchronization between this and a user