tracing/syscalls: Annotate raw_init function with __init
init_syscall_trace() can only be called during kernel bootup only, so we can mark it and the functions it calls as __init. Link: http://lkml.kernel.org/r/51528E89.6080508@huawei.com Signed-off-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
9457158bbc
commit
3ddc77f6f4
|
@ -200,8 +200,8 @@ extern char *__bad_type_size(void);
|
||||||
#type, #name, offsetof(typeof(trace), name), \
|
#type, #name, offsetof(typeof(trace), name), \
|
||||||
sizeof(trace.name), is_signed_type(type)
|
sizeof(trace.name), is_signed_type(type)
|
||||||
|
|
||||||
static
|
static int __init
|
||||||
int __set_enter_print_fmt(struct syscall_metadata *entry, char *buf, int len)
|
__set_enter_print_fmt(struct syscall_metadata *entry, char *buf, int len)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
|
@ -228,7 +228,7 @@ int __set_enter_print_fmt(struct syscall_metadata *entry, char *buf, int len)
|
||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int set_syscall_print_fmt(struct ftrace_event_call *call)
|
static int __init set_syscall_print_fmt(struct ftrace_event_call *call)
|
||||||
{
|
{
|
||||||
char *print_fmt;
|
char *print_fmt;
|
||||||
int len;
|
int len;
|
||||||
|
@ -253,7 +253,7 @@ static int set_syscall_print_fmt(struct ftrace_event_call *call)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void free_syscall_print_fmt(struct ftrace_event_call *call)
|
static void __init free_syscall_print_fmt(struct ftrace_event_call *call)
|
||||||
{
|
{
|
||||||
struct syscall_metadata *entry = call->data;
|
struct syscall_metadata *entry = call->data;
|
||||||
|
|
||||||
|
@ -459,7 +459,7 @@ static void unreg_event_syscall_exit(struct ftrace_event_file *file,
|
||||||
mutex_unlock(&syscall_trace_lock);
|
mutex_unlock(&syscall_trace_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int init_syscall_trace(struct ftrace_event_call *call)
|
static int __init init_syscall_trace(struct ftrace_event_call *call)
|
||||||
{
|
{
|
||||||
int id;
|
int id;
|
||||||
int num;
|
int num;
|
||||||
|
|
Loading…
Reference in a new issue