diff options
Diffstat (limited to 'kernel/trace/trace.h')
| -rw-r--r-- | kernel/trace/trace.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 4a4f6e1828b6..afaae41b0a02 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
| @@ -130,19 +130,12 @@ enum trace_flag_type { | |||
| 130 | 130 | ||
| 131 | struct trace_array; | 131 | struct trace_array; |
| 132 | 132 | ||
| 133 | struct trace_cpu { | ||
| 134 | struct trace_array *tr; | ||
| 135 | struct dentry *dir; | ||
| 136 | int cpu; | ||
| 137 | }; | ||
| 138 | |||
| 139 | /* | 133 | /* |
| 140 | * The CPU trace array - it consists of thousands of trace entries | 134 | * The CPU trace array - it consists of thousands of trace entries |
| 141 | * plus some other descriptor data: (for example which task started | 135 | * plus some other descriptor data: (for example which task started |
| 142 | * the trace, etc.) | 136 | * the trace, etc.) |
| 143 | */ | 137 | */ |
| 144 | struct trace_array_cpu { | 138 | struct trace_array_cpu { |
| 145 | struct trace_cpu trace_cpu; | ||
| 146 | atomic_t disabled; | 139 | atomic_t disabled; |
| 147 | void *buffer_page; /* ring buffer spare */ | 140 | void *buffer_page; /* ring buffer spare */ |
| 148 | 141 | ||
| @@ -196,7 +189,6 @@ struct trace_array { | |||
| 196 | bool allocated_snapshot; | 189 | bool allocated_snapshot; |
| 197 | #endif | 190 | #endif |
| 198 | int buffer_disabled; | 191 | int buffer_disabled; |
| 199 | struct trace_cpu trace_cpu; /* place holder */ | ||
| 200 | #ifdef CONFIG_FTRACE_SYSCALLS | 192 | #ifdef CONFIG_FTRACE_SYSCALLS |
| 201 | int sys_refcount_enter; | 193 | int sys_refcount_enter; |
| 202 | int sys_refcount_exit; | 194 | int sys_refcount_exit; |
| @@ -214,7 +206,6 @@ struct trace_array { | |||
| 214 | struct dentry *event_dir; | 206 | struct dentry *event_dir; |
| 215 | struct list_head systems; | 207 | struct list_head systems; |
| 216 | struct list_head events; | 208 | struct list_head events; |
| 217 | struct task_struct *waiter; | ||
| 218 | int ref; | 209 | int ref; |
| 219 | }; | 210 | }; |
| 220 | 211 | ||
| @@ -680,6 +671,15 @@ extern int trace_selftest_startup_sched_switch(struct tracer *trace, | |||
| 680 | struct trace_array *tr); | 671 | struct trace_array *tr); |
| 681 | extern int trace_selftest_startup_branch(struct tracer *trace, | 672 | extern int trace_selftest_startup_branch(struct tracer *trace, |
| 682 | struct trace_array *tr); | 673 | struct trace_array *tr); |
| 674 | /* | ||
| 675 | * Tracer data references selftest functions that only occur | ||
| 676 | * on boot up. These can be __init functions. Thus, when selftests | ||
| 677 | * are enabled, then the tracers need to reference __init functions. | ||
| 678 | */ | ||
| 679 | #define __tracer_data __refdata | ||
| 680 | #else | ||
| 681 | /* Tracers are seldom changed. Optimize when selftests are disabled. */ | ||
| 682 | #define __tracer_data __read_mostly | ||
| 683 | #endif /* CONFIG_FTRACE_STARTUP_TEST */ | 683 | #endif /* CONFIG_FTRACE_STARTUP_TEST */ |
| 684 | 684 | ||
| 685 | extern void *head_page(struct trace_array_cpu *data); | 685 | extern void *head_page(struct trace_array_cpu *data); |
