diff options
Diffstat (limited to 'kernel/trace/trace_sched_switch.c')
-rw-r--r-- | kernel/trace/trace_sched_switch.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c index 8d656672da93..b738eaca1dbe 100644 --- a/kernel/trace/trace_sched_switch.c +++ b/kernel/trace/trace_sched_switch.c | |||
@@ -17,7 +17,7 @@ | |||
17 | static struct trace_array *ctx_trace; | 17 | static struct trace_array *ctx_trace; |
18 | static int __read_mostly tracer_enabled; | 18 | static int __read_mostly tracer_enabled; |
19 | 19 | ||
20 | static void notrace | 20 | static void |
21 | ctx_switch_func(struct task_struct *prev, struct task_struct *next) | 21 | ctx_switch_func(struct task_struct *prev, struct task_struct *next) |
22 | { | 22 | { |
23 | struct trace_array *tr = ctx_trace; | 23 | struct trace_array *tr = ctx_trace; |
@@ -57,7 +57,7 @@ void ftrace_ctx_switch(struct task_struct *prev, struct task_struct *next) | |||
57 | wakeup_sched_switch(prev, next); | 57 | wakeup_sched_switch(prev, next); |
58 | } | 58 | } |
59 | 59 | ||
60 | static notrace void sched_switch_reset(struct trace_array *tr) | 60 | static void sched_switch_reset(struct trace_array *tr) |
61 | { | 61 | { |
62 | int cpu; | 62 | int cpu; |
63 | 63 | ||
@@ -67,18 +67,18 @@ static notrace void sched_switch_reset(struct trace_array *tr) | |||
67 | tracing_reset(tr->data[cpu]); | 67 | tracing_reset(tr->data[cpu]); |
68 | } | 68 | } |
69 | 69 | ||
70 | static notrace void start_sched_trace(struct trace_array *tr) | 70 | static void start_sched_trace(struct trace_array *tr) |
71 | { | 71 | { |
72 | sched_switch_reset(tr); | 72 | sched_switch_reset(tr); |
73 | tracer_enabled = 1; | 73 | tracer_enabled = 1; |
74 | } | 74 | } |
75 | 75 | ||
76 | static notrace void stop_sched_trace(struct trace_array *tr) | 76 | static void stop_sched_trace(struct trace_array *tr) |
77 | { | 77 | { |
78 | tracer_enabled = 0; | 78 | tracer_enabled = 0; |
79 | } | 79 | } |
80 | 80 | ||
81 | static notrace void sched_switch_trace_init(struct trace_array *tr) | 81 | static void sched_switch_trace_init(struct trace_array *tr) |
82 | { | 82 | { |
83 | ctx_trace = tr; | 83 | ctx_trace = tr; |
84 | 84 | ||
@@ -86,7 +86,7 @@ static notrace void sched_switch_trace_init(struct trace_array *tr) | |||
86 | start_sched_trace(tr); | 86 | start_sched_trace(tr); |
87 | } | 87 | } |
88 | 88 | ||
89 | static notrace void sched_switch_trace_reset(struct trace_array *tr) | 89 | static void sched_switch_trace_reset(struct trace_array *tr) |
90 | { | 90 | { |
91 | if (tr->ctrl) | 91 | if (tr->ctrl) |
92 | stop_sched_trace(tr); | 92 | stop_sched_trace(tr); |