Lines Matching refs:sname
141 #define SYSCALL_TRACE_ENTER_EVENT(sname) \ argument
142 static struct syscall_metadata __syscall_meta_##sname; \
144 event_enter_##sname = { \
147 .name = "sys_enter"#sname, \
150 .data = (void *)&__syscall_meta_##sname,\
155 *__event_enter_##sname = &event_enter_##sname;
157 #define SYSCALL_TRACE_EXIT_EVENT(sname) \ argument
158 static struct syscall_metadata __syscall_meta_##sname; \
160 event_exit_##sname = { \
163 .name = "sys_exit"#sname, \
166 .data = (void *)&__syscall_meta_##sname,\
171 *__event_exit_##sname = &event_exit_##sname;
173 #define SYSCALL_METADATA(sname, nb, ...) \ argument
174 static const char *types_##sname[] = { \
177 static const char *args_##sname[] = { \
180 SYSCALL_TRACE_ENTER_EVENT(sname); \
181 SYSCALL_TRACE_EXIT_EVENT(sname); \
183 __syscall_meta_##sname = { \
184 .name = "sys"#sname, \
187 .types = nb ? types_##sname : NULL, \
188 .args = nb ? args_##sname : NULL, \
189 .enter_event = &event_enter_##sname, \
190 .exit_event = &event_exit_##sname, \
191 .enter_fields = LIST_HEAD_INIT(__syscall_meta_##sname.enter_fields), \
195 *__p_syscall_meta_##sname = &__syscall_meta_##sname;
204 #define SYSCALL_METADATA(sname, nb, ...) argument
213 #define SYSCALL_DEFINE0(sname) \ argument
214 SYSCALL_METADATA(_##sname, 0); \
215 asmlinkage long sys_##sname(void); \
216 ALLOW_ERROR_INJECTION(sys_##sname, ERRNO); \
217 asmlinkage long sys_##sname(void)
229 #define SYSCALL_DEFINEx(x, sname, ...) \ argument
230 SYSCALL_METADATA(sname, x, __VA_ARGS__) \
231 __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)