mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
16a8ef2751
commit
0af26492d5
@ -1119,7 +1119,7 @@ static struct ftrace_ops global_ops = {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* This is used by __kernel_text_address() to return true if the
|
* This is used by __kernel_text_address() to return true if the
|
||||||
* the address is on a dynamically allocated trampoline that would
|
* address is on a dynamically allocated trampoline that would
|
||||||
* not return true for either core_kernel_text() or
|
* not return true for either core_kernel_text() or
|
||||||
* is_module_text_address().
|
* is_module_text_address().
|
||||||
*/
|
*/
|
||||||
|
@ -261,14 +261,14 @@ static struct tracer function_trace __tracer_data =
|
|||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_DYNAMIC_FTRACE
|
#ifdef CONFIG_DYNAMIC_FTRACE
|
||||||
static void update_traceon_count(void **data, int on)
|
static void update_traceon_count(void **data, bool on)
|
||||||
{
|
{
|
||||||
long *count = (long *)data;
|
long *count = (long *)data;
|
||||||
long old_count = *count;
|
long old_count = *count;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Tracing gets disabled (or enabled) once per count.
|
* Tracing gets disabled (or enabled) once per count.
|
||||||
* This function can be called at the same time on mulitple CPUs.
|
* This function can be called at the same time on multiple CPUs.
|
||||||
* It is fine if both disable (or enable) tracing, as disabling
|
* It is fine if both disable (or enable) tracing, as disabling
|
||||||
* (or enabling) the second time doesn't do anything as the
|
* (or enabling) the second time doesn't do anything as the
|
||||||
* state of the tracer is already disabled (or enabled).
|
* state of the tracer is already disabled (or enabled).
|
||||||
@ -288,7 +288,7 @@ static void update_traceon_count(void **data, int on)
|
|||||||
* the new state is visible before changing the counter by
|
* the new state is visible before changing the counter by
|
||||||
* one minus the old counter. This guarantees that another CPU
|
* one minus the old counter. This guarantees that another CPU
|
||||||
* executing this code will see the new state before seeing
|
* executing this code will see the new state before seeing
|
||||||
* the new counter value, and would not do anthing if the new
|
* the new counter value, and would not do anything if the new
|
||||||
* counter is seen.
|
* counter is seen.
|
||||||
*
|
*
|
||||||
* Note, there is no synchronization between this and a user
|
* Note, there is no synchronization between this and a user
|
||||||
|
Loading…
x
Reference in New Issue
Block a user