mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
ftrace: fix !CONFIG_DYNAMIC_FTRACE ftrace_swapper_pid definition
Impact: build fix Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
97d0bb8dcd
commit
73d3fd96e7
1 changed files with 5 additions and 3 deletions
|
@ -243,14 +243,16 @@ static void ftrace_update_pid_func(void)
|
|||
mutex_unlock(&ftrace_lock);
|
||||
}
|
||||
|
||||
/* set when tracing only a pid */
|
||||
struct pid *ftrace_pid_trace;
|
||||
static struct pid * const ftrace_swapper_pid = &init_struct_pid;
|
||||
|
||||
#ifdef CONFIG_DYNAMIC_FTRACE
|
||||
|
||||
#ifndef CONFIG_FTRACE_MCOUNT_RECORD
|
||||
# error Dynamic ftrace depends on MCOUNT_RECORD
|
||||
#endif
|
||||
|
||||
/* set when tracing only a pid */
|
||||
struct pid *ftrace_pid_trace;
|
||||
static struct pid * const ftrace_swapper_pid = &init_struct_pid;
|
||||
static struct hlist_head ftrace_func_hash[FTRACE_FUNC_HASHSIZE] __read_mostly;
|
||||
|
||||
struct ftrace_func_hook {
|
||||
|
|
Loading…
Reference in a new issue