Lines Matching refs:sname
138 #define SYSCALL_TRACE_ENTER_EVENT(sname) \ argument
139 static struct syscall_metadata __syscall_meta_##sname; \
141 event_enter_##sname = { \
144 .name = "sys_enter"#sname, \
147 .data = (void *)&__syscall_meta_##sname,\
152 *__event_enter_##sname = &event_enter_##sname;
154 #define SYSCALL_TRACE_EXIT_EVENT(sname) \ argument
155 static struct syscall_metadata __syscall_meta_##sname; \
157 event_exit_##sname = { \
160 .name = "sys_exit"#sname, \
163 .data = (void *)&__syscall_meta_##sname,\
168 *__event_exit_##sname = &event_exit_##sname;
170 #define SYSCALL_METADATA(sname, nb, ...) \ argument
171 static const char *types_##sname[] = { \
174 static const char *args_##sname[] = { \
177 SYSCALL_TRACE_ENTER_EVENT(sname); \
178 SYSCALL_TRACE_EXIT_EVENT(sname); \
180 __syscall_meta_##sname = { \
181 .name = "sys"#sname, \
184 .types = nb ? types_##sname : NULL, \
185 .args = nb ? args_##sname : NULL, \
186 .enter_event = &event_enter_##sname, \
187 .exit_event = &event_exit_##sname, \
188 .enter_fields = LIST_HEAD_INIT(__syscall_meta_##sname.enter_fields), \
192 *__p_syscall_meta_##sname = &__syscall_meta_##sname;
201 #define SYSCALL_METADATA(sname, nb, ...) argument
210 #define SYSCALL_DEFINE0(sname) \ argument
211 SYSCALL_METADATA(_##sname, 0); \
212 asmlinkage long sys_##sname(void); \
213 ALLOW_ERROR_INJECTION(sys_##sname, ERRNO); \
214 asmlinkage long sys_##sname(void)
226 #define SYSCALL_DEFINEx(x, sname, ...) \ argument
227 SYSCALL_METADATA(sname, x, __VA_ARGS__) \
228 __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)