summaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-01-29 12:08:34 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2018-01-29 12:08:34 -0500
commit49f9c3552ccc30f4f98c45d94d7f9b335596913f (patch)
treee02f0c4b54a8e741c5aa87576d3e51c0dbb5b882 /include/linux/ftrace.h
parentd8a5b80568a9cb66810e75b182018e9edb68e8ff (diff)
parente1e871aff3ded26348c631b1370e257d401cd22d (diff)
Merge tag 'init_task-20180117' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
Pull init_task initializer cleanups from David Howells: "It doesn't seem useful to have the init_task in a header file rather than in a normal source file. We could consolidate init_task handling instead and expand out various macros. Here's a series of patches that consolidate init_task handling: (1) Make THREAD_SIZE available to vmlinux.lds for cris, hexagon and openrisc. (2) Alter the INIT_TASK_DATA linker script macro to set init_thread_union and init_stack rather than defining these in C. Insert init_task and init_thread_into into the init_stack area in the linker script as appropriate to the configuration, with different section markers so that they end up correctly ordered. We can then get merge ia64's init_task.c into the main one. We then have a bunch of single-use INIT_*() macros that seem only to be macros because they used to be used per-arch. We can then expand these in place of the user and get rid of a few lines and a lot of backslashes. (3) Expand INIT_TASK() in place. (4) Expand in place various small INIT_*() macros that are defined conditionally. Expand them and surround them by #if[n]def/#endif in the .c file as it takes fewer lines. (5) Expand INIT_SIGNALS() and INIT_SIGHAND() in place. (6) Expand INIT_STRUCT_PID in place. These macros can then be discarded" * tag 'init_task-20180117' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs: Expand INIT_STRUCT_PID and remove Expand the INIT_SIGNALS and INIT_SIGHAND macros and remove Expand various INIT_* macros and remove Expand INIT_TASK() in init/init_task.c and remove Construct init thread stack in the linker script rather than by union openrisc: Make THREAD_SIZE available to vmlinux.lds hexagon: Make THREAD_SIZE available to vmlinux.lds cris: Make THREAD_SIZE available to vmlinux.lds
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 3319df9727aa..9c3c9a319e48 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -766,9 +766,6 @@ typedef int (*trace_func_graph_ent_t)(struct ftrace_graph_ent *); /* entry */
766 766
767#ifdef CONFIG_FUNCTION_GRAPH_TRACER 767#ifdef CONFIG_FUNCTION_GRAPH_TRACER
768 768
769/* for init task */
770#define INIT_FTRACE_GRAPH .ret_stack = NULL,
771
772/* 769/*
773 * Stack of return addresses for functions 770 * Stack of return addresses for functions
774 * of a thread. 771 * of a thread.
@@ -846,7 +843,6 @@ static inline void unpause_graph_tracing(void)
846#else /* !CONFIG_FUNCTION_GRAPH_TRACER */ 843#else /* !CONFIG_FUNCTION_GRAPH_TRACER */
847 844
848#define __notrace_funcgraph 845#define __notrace_funcgraph
849#define INIT_FTRACE_GRAPH
850 846
851static inline void ftrace_graph_init_task(struct task_struct *t) { } 847static inline void ftrace_graph_init_task(struct task_struct *t) { }
852static inline void ftrace_graph_exit_task(struct task_struct *t) { } 848static inline void ftrace_graph_exit_task(struct task_struct *t) { }
@@ -925,10 +921,6 @@ extern int tracepoint_printk;
925extern void disable_trace_on_warning(void); 921extern void disable_trace_on_warning(void);
926extern int __disable_trace_on_warning; 922extern int __disable_trace_on_warning;
927 923
928#ifdef CONFIG_PREEMPT
929#define INIT_TRACE_RECURSION .trace_recursion = 0,
930#endif
931
932int tracepoint_printk_sysctl(struct ctl_table *table, int write, 924int tracepoint_printk_sysctl(struct ctl_table *table, int write,
933 void __user *buffer, size_t *lenp, 925 void __user *buffer, size_t *lenp,
934 loff_t *ppos); 926 loff_t *ppos);
@@ -937,10 +929,6 @@ int tracepoint_printk_sysctl(struct ctl_table *table, int write,
937static inline void disable_trace_on_warning(void) { } 929static inline void disable_trace_on_warning(void) { }
938#endif /* CONFIG_TRACING */ 930#endif /* CONFIG_TRACING */
939 931
940#ifndef INIT_TRACE_RECURSION
941#define INIT_TRACE_RECURSION
942#endif
943
944#ifdef CONFIG_FTRACE_SYSCALLS 932#ifdef CONFIG_FTRACE_SYSCALLS
945 933
946unsigned long arch_syscall_addr(int nr); 934unsigned long arch_syscall_addr(int nr);