Skip to content

Commit e96dc96

Browse files
Lai Jiangshanrostedt
authored andcommitted
tracing/syscalls: Fix typo in SYSCALL_DEFINE0
The struct syscall_metadata variable name in SYSCALL_DEFINE0 should be __syscall_meta__##sname instead of __syscall_meta_##sname to match the name that is in SYSCALL_DEFINE1/2/3/4/5/6. This error causes event_enter_##sname->data to point to the wrong location, which causes syscalls which are defined by SYSCALL_DEFINE0() not to be traced. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> LKML-Reference: <4B273D2E.1010807@cn.fujitsu.com> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent 79b4082 commit e96dc96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/syscalls.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ struct perf_event_attr;
195195
static const struct syscall_metadata __used \
196196
__attribute__((__aligned__(4))) \
197197
__attribute__((section("__syscalls_metadata"))) \
198-
__syscall_meta_##sname = { \
198+
__syscall_meta__##sname = { \
199199
.name = "sys_"#sname, \
200200
.nb_args = 0, \
201201
.enter_event = &event_enter__##sname, \

0 commit comments

Comments
 (0)