diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ftrace.h | 11 | ||||
| -rw-r--r-- | include/linux/sched.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 11cac81eed08..44020f31bd81 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
| @@ -377,6 +377,16 @@ struct ftrace_graph_ret { | |||
| 377 | */ | 377 | */ |
| 378 | #define __notrace_funcgraph notrace | 378 | #define __notrace_funcgraph notrace |
| 379 | 379 | ||
| 380 | /* | ||
| 381 | * We want to which function is an entrypoint of a hardirq. | ||
| 382 | * That will help us to put a signal on output. | ||
| 383 | */ | ||
| 384 | #define __irq_entry __attribute__((__section__(".irqentry.text"))) | ||
| 385 | |||
| 386 | /* Limits of hardirq entrypoints */ | ||
| 387 | extern char __irqentry_text_start[]; | ||
| 388 | extern char __irqentry_text_end[]; | ||
| 389 | |||
| 380 | #define FTRACE_RETFUNC_DEPTH 50 | 390 | #define FTRACE_RETFUNC_DEPTH 50 |
| 381 | #define FTRACE_RETSTACK_ALLOC_SIZE 32 | 391 | #define FTRACE_RETSTACK_ALLOC_SIZE 32 |
| 382 | /* Type of the callback handlers for tracing function graph*/ | 392 | /* Type of the callback handlers for tracing function graph*/ |
| @@ -414,6 +424,7 @@ static inline void unpause_graph_tracing(void) | |||
| 414 | #else | 424 | #else |
| 415 | 425 | ||
| 416 | #define __notrace_funcgraph | 426 | #define __notrace_funcgraph |
| 427 | #define __irq_entry | ||
| 417 | 428 | ||
| 418 | static inline void ftrace_graph_init_task(struct task_struct *t) { } | 429 | static inline void ftrace_graph_init_task(struct task_struct *t) { } |
| 419 | static inline void ftrace_graph_exit_task(struct task_struct *t) { } | 430 | static inline void ftrace_graph_exit_task(struct task_struct *t) { } |
diff --git a/include/linux/sched.h b/include/linux/sched.h index 4b81fc5f7731..dc5ea65dc716 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -1176,6 +1176,7 @@ struct task_struct { | |||
| 1176 | * The buffer to hold the BTS data. | 1176 | * The buffer to hold the BTS data. |
| 1177 | */ | 1177 | */ |
| 1178 | void *bts_buffer; | 1178 | void *bts_buffer; |
| 1179 | size_t bts_size; | ||
| 1179 | #endif /* CONFIG_X86_PTRACE_BTS */ | 1180 | #endif /* CONFIG_X86_PTRACE_BTS */ |
| 1180 | 1181 | ||
| 1181 | /* PID/PID hash table linkage. */ | 1182 | /* PID/PID hash table linkage. */ |
