diff options
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 3abd645e8af2..4c453778a6ab 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -28,6 +28,7 @@ enum trace_type { | |||
28 | TRACE_FN_RET, | 28 | TRACE_FN_RET, |
29 | TRACE_USER_STACK, | 29 | TRACE_USER_STACK, |
30 | TRACE_BTS, | 30 | TRACE_BTS, |
31 | TRACE_POWER, | ||
31 | 32 | ||
32 | __TRACE_LAST_TYPE | 33 | __TRACE_LAST_TYPE |
33 | }; | 34 | }; |
@@ -160,6 +161,11 @@ struct bts_entry { | |||
160 | unsigned long to; | 161 | unsigned long to; |
161 | }; | 162 | }; |
162 | 163 | ||
164 | struct trace_power { | ||
165 | struct trace_entry ent; | ||
166 | struct power_trace state_data; | ||
167 | }; | ||
168 | |||
163 | /* | 169 | /* |
164 | * trace_flag_type is an enumeration that holds different | 170 | * trace_flag_type is an enumeration that holds different |
165 | * states when a trace occurs. These are: | 171 | * states when a trace occurs. These are: |
@@ -266,6 +272,7 @@ extern void __ftrace_bad_type(void); | |||
266 | IF_ASSIGN(var, ent, struct trace_branch, TRACE_BRANCH); \ | 272 | IF_ASSIGN(var, ent, struct trace_branch, TRACE_BRANCH); \ |
267 | IF_ASSIGN(var, ent, struct ftrace_ret_entry, TRACE_FN_RET);\ | 273 | IF_ASSIGN(var, ent, struct ftrace_ret_entry, TRACE_FN_RET);\ |
268 | IF_ASSIGN(var, ent, struct bts_entry, TRACE_BTS);\ | 274 | IF_ASSIGN(var, ent, struct bts_entry, TRACE_BTS);\ |
275 | IF_ASSIGN(var, ent, struct trace_power, TRACE_POWER); \ | ||
269 | __ftrace_bad_type(); \ | 276 | __ftrace_bad_type(); \ |
270 | } while (0) | 277 | } while (0) |
271 | 278 | ||