| 1 | /* THIS FILE IS AUTO-GENERATED. DO NOT EDIT */ |
| 2 | #ifndef CREATE_SYSCALL_TABLE |
| 3 | |
| 4 | #if !defined(_TRACE_SYSCALLS_INTEGERS_H) || defined(TRACE_HEADER_MULTI_READ) |
| 5 | #define _TRACE_SYSCALLS_INTEGERS_H |
| 6 | |
| 7 | #include "../../../probes/lttng-tracepoint-event.h" |
| 8 | #include <linux/syscalls.h> |
| 9 | #include "x86-64-syscalls-3.10.0-rc7_integers_override.h" |
| 10 | #include "syscalls_integers_override.h" |
| 11 | |
| 12 | #ifdef SC_ENTER |
| 13 | SC_LTTNG_TRACEPOINT_EVENT_CLASS_NOARGS(syscalls_noargs, |
| 14 | TP_STRUCT__entry(), |
| 15 | TP_fast_assign(), |
| 16 | TP_printk() |
| 17 | ) |
| 18 | #ifndef OVERRIDE_64_sched_yield |
| 19 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, sched_yield) |
| 20 | #endif |
| 21 | #ifndef OVERRIDE_64_pause |
| 22 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, pause) |
| 23 | #endif |
| 24 | #ifndef OVERRIDE_64_getpid |
| 25 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, getpid) |
| 26 | #endif |
| 27 | #ifndef OVERRIDE_64_getuid |
| 28 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, getuid) |
| 29 | #endif |
| 30 | #ifndef OVERRIDE_64_getgid |
| 31 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, getgid) |
| 32 | #endif |
| 33 | #ifndef OVERRIDE_64_geteuid |
| 34 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, geteuid) |
| 35 | #endif |
| 36 | #ifndef OVERRIDE_64_getegid |
| 37 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, getegid) |
| 38 | #endif |
| 39 | #ifndef OVERRIDE_64_getppid |
| 40 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, getppid) |
| 41 | #endif |
| 42 | #ifndef OVERRIDE_64_getpgrp |
| 43 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, getpgrp) |
| 44 | #endif |
| 45 | #ifndef OVERRIDE_64_setsid |
| 46 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, setsid) |
| 47 | #endif |
| 48 | #ifndef OVERRIDE_64_munlockall |
| 49 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, munlockall) |
| 50 | #endif |
| 51 | #ifndef OVERRIDE_64_vhangup |
| 52 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, vhangup) |
| 53 | #endif |
| 54 | #ifndef OVERRIDE_64_sync |
| 55 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, sync) |
| 56 | #endif |
| 57 | #ifndef OVERRIDE_64_gettid |
| 58 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, gettid) |
| 59 | #endif |
| 60 | #ifndef OVERRIDE_64_restart_syscall |
| 61 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, restart_syscall) |
| 62 | #endif |
| 63 | #ifndef OVERRIDE_64_inotify_init |
| 64 | SC_LTTNG_TRACEPOINT_EVENT_INSTANCE_NOARGS(syscalls_noargs, inotify_init) |
| 65 | #endif |
| 66 | #else /* #ifdef SC_ENTER */ |
| 67 | #ifndef OVERRIDE_64_sched_yield |
| 68 | SC_LTTNG_TRACEPOINT_EVENT(sched_yield, |
| 69 | TP_PROTO(sc_exit(long ret)), |
| 70 | TP_ARGS(sc_exit(ret)), |
| 71 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 72 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 73 | TP_printk() |
| 74 | ) |
| 75 | #endif |
| 76 | #ifndef OVERRIDE_64_pause |
| 77 | SC_LTTNG_TRACEPOINT_EVENT(pause, |
| 78 | TP_PROTO(sc_exit(long ret)), |
| 79 | TP_ARGS(sc_exit(ret)), |
| 80 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 81 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 82 | TP_printk() |
| 83 | ) |
| 84 | #endif |
| 85 | #ifndef OVERRIDE_64_getpid |
| 86 | SC_LTTNG_TRACEPOINT_EVENT(getpid, |
| 87 | TP_PROTO(sc_exit(long ret)), |
| 88 | TP_ARGS(sc_exit(ret)), |
| 89 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 90 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 91 | TP_printk() |
| 92 | ) |
| 93 | #endif |
| 94 | #ifndef OVERRIDE_64_getuid |
| 95 | SC_LTTNG_TRACEPOINT_EVENT(getuid, |
| 96 | TP_PROTO(sc_exit(long ret)), |
| 97 | TP_ARGS(sc_exit(ret)), |
| 98 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 99 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 100 | TP_printk() |
| 101 | ) |
| 102 | #endif |
| 103 | #ifndef OVERRIDE_64_getgid |
| 104 | SC_LTTNG_TRACEPOINT_EVENT(getgid, |
| 105 | TP_PROTO(sc_exit(long ret)), |
| 106 | TP_ARGS(sc_exit(ret)), |
| 107 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 108 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 109 | TP_printk() |
| 110 | ) |
| 111 | #endif |
| 112 | #ifndef OVERRIDE_64_geteuid |
| 113 | SC_LTTNG_TRACEPOINT_EVENT(geteuid, |
| 114 | TP_PROTO(sc_exit(long ret)), |
| 115 | TP_ARGS(sc_exit(ret)), |
| 116 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 117 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 118 | TP_printk() |
| 119 | ) |
| 120 | #endif |
| 121 | #ifndef OVERRIDE_64_getegid |
| 122 | SC_LTTNG_TRACEPOINT_EVENT(getegid, |
| 123 | TP_PROTO(sc_exit(long ret)), |
| 124 | TP_ARGS(sc_exit(ret)), |
| 125 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 126 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 127 | TP_printk() |
| 128 | ) |
| 129 | #endif |
| 130 | #ifndef OVERRIDE_64_getppid |
| 131 | SC_LTTNG_TRACEPOINT_EVENT(getppid, |
| 132 | TP_PROTO(sc_exit(long ret)), |
| 133 | TP_ARGS(sc_exit(ret)), |
| 134 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 135 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 136 | TP_printk() |
| 137 | ) |
| 138 | #endif |
| 139 | #ifndef OVERRIDE_64_getpgrp |
| 140 | SC_LTTNG_TRACEPOINT_EVENT(getpgrp, |
| 141 | TP_PROTO(sc_exit(long ret)), |
| 142 | TP_ARGS(sc_exit(ret)), |
| 143 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 144 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 145 | TP_printk() |
| 146 | ) |
| 147 | #endif |
| 148 | #ifndef OVERRIDE_64_setsid |
| 149 | SC_LTTNG_TRACEPOINT_EVENT(setsid, |
| 150 | TP_PROTO(sc_exit(long ret)), |
| 151 | TP_ARGS(sc_exit(ret)), |
| 152 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 153 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 154 | TP_printk() |
| 155 | ) |
| 156 | #endif |
| 157 | #ifndef OVERRIDE_64_munlockall |
| 158 | SC_LTTNG_TRACEPOINT_EVENT(munlockall, |
| 159 | TP_PROTO(sc_exit(long ret)), |
| 160 | TP_ARGS(sc_exit(ret)), |
| 161 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 162 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 163 | TP_printk() |
| 164 | ) |
| 165 | #endif |
| 166 | #ifndef OVERRIDE_64_vhangup |
| 167 | SC_LTTNG_TRACEPOINT_EVENT(vhangup, |
| 168 | TP_PROTO(sc_exit(long ret)), |
| 169 | TP_ARGS(sc_exit(ret)), |
| 170 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 171 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 172 | TP_printk() |
| 173 | ) |
| 174 | #endif |
| 175 | #ifndef OVERRIDE_64_sync |
| 176 | SC_LTTNG_TRACEPOINT_EVENT(sync, |
| 177 | TP_PROTO(sc_exit(long ret)), |
| 178 | TP_ARGS(sc_exit(ret)), |
| 179 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 180 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 181 | TP_printk() |
| 182 | ) |
| 183 | #endif |
| 184 | #ifndef OVERRIDE_64_gettid |
| 185 | SC_LTTNG_TRACEPOINT_EVENT(gettid, |
| 186 | TP_PROTO(sc_exit(long ret)), |
| 187 | TP_ARGS(sc_exit(ret)), |
| 188 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 189 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 190 | TP_printk() |
| 191 | ) |
| 192 | #endif |
| 193 | #ifndef OVERRIDE_64_restart_syscall |
| 194 | SC_LTTNG_TRACEPOINT_EVENT(restart_syscall, |
| 195 | TP_PROTO(sc_exit(long ret)), |
| 196 | TP_ARGS(sc_exit(ret)), |
| 197 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 198 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 199 | TP_printk() |
| 200 | ) |
| 201 | #endif |
| 202 | #ifndef OVERRIDE_64_inotify_init |
| 203 | SC_LTTNG_TRACEPOINT_EVENT(inotify_init, |
| 204 | TP_PROTO(sc_exit(long ret)), |
| 205 | TP_ARGS(sc_exit(ret)), |
| 206 | TP_STRUCT__entry(sc_exit(__field(long, ret))), |
| 207 | TP_fast_assign(sc_exit(tp_assign(ret, ret))), |
| 208 | TP_printk() |
| 209 | ) |
| 210 | #endif |
| 211 | #endif /* else #ifdef SC_ENTER */ |
| 212 | #ifndef OVERRIDE_64_close |
| 213 | SC_LTTNG_TRACEPOINT_EVENT(close, |
| 214 | TP_PROTO(sc_exit(long ret,) unsigned int fd), |
| 215 | TP_ARGS(sc_exit(ret,) fd), |
| 216 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, fd))), |
| 217 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd))), |
| 218 | TP_printk() |
| 219 | ) |
| 220 | #endif |
| 221 | #ifndef OVERRIDE_64_brk |
| 222 | SC_LTTNG_TRACEPOINT_EVENT(brk, |
| 223 | TP_PROTO(sc_exit(long ret,) unsigned long brk), |
| 224 | TP_ARGS(sc_exit(ret,) brk), |
| 225 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned long, brk))), |
| 226 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(brk, brk))), |
| 227 | TP_printk() |
| 228 | ) |
| 229 | #endif |
| 230 | #ifndef OVERRIDE_64_dup |
| 231 | SC_LTTNG_TRACEPOINT_EVENT(dup, |
| 232 | TP_PROTO(sc_exit(long ret,) unsigned int fildes), |
| 233 | TP_ARGS(sc_exit(ret,) fildes), |
| 234 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, fildes))), |
| 235 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fildes, fildes))), |
| 236 | TP_printk() |
| 237 | ) |
| 238 | #endif |
| 239 | #ifndef OVERRIDE_64_alarm |
| 240 | SC_LTTNG_TRACEPOINT_EVENT(alarm, |
| 241 | TP_PROTO(sc_exit(long ret,) unsigned int seconds), |
| 242 | TP_ARGS(sc_exit(ret,) seconds), |
| 243 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, seconds))), |
| 244 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(seconds, seconds))), |
| 245 | TP_printk() |
| 246 | ) |
| 247 | #endif |
| 248 | #ifndef OVERRIDE_64_exit |
| 249 | SC_LTTNG_TRACEPOINT_EVENT(exit, |
| 250 | TP_PROTO(sc_exit(long ret,) int error_code), |
| 251 | TP_ARGS(sc_exit(ret,) error_code), |
| 252 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, error_code))), |
| 253 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(error_code, error_code))), |
| 254 | TP_printk() |
| 255 | ) |
| 256 | #endif |
| 257 | #ifndef OVERRIDE_64_fsync |
| 258 | SC_LTTNG_TRACEPOINT_EVENT(fsync, |
| 259 | TP_PROTO(sc_exit(long ret,) unsigned int fd), |
| 260 | TP_ARGS(sc_exit(ret,) fd), |
| 261 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, fd))), |
| 262 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd))), |
| 263 | TP_printk() |
| 264 | ) |
| 265 | #endif |
| 266 | #ifndef OVERRIDE_64_fdatasync |
| 267 | SC_LTTNG_TRACEPOINT_EVENT(fdatasync, |
| 268 | TP_PROTO(sc_exit(long ret,) unsigned int fd), |
| 269 | TP_ARGS(sc_exit(ret,) fd), |
| 270 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, fd))), |
| 271 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd))), |
| 272 | TP_printk() |
| 273 | ) |
| 274 | #endif |
| 275 | #ifndef OVERRIDE_64_fchdir |
| 276 | SC_LTTNG_TRACEPOINT_EVENT(fchdir, |
| 277 | TP_PROTO(sc_exit(long ret,) unsigned int fd), |
| 278 | TP_ARGS(sc_exit(ret,) fd), |
| 279 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, fd))), |
| 280 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd))), |
| 281 | TP_printk() |
| 282 | ) |
| 283 | #endif |
| 284 | #ifndef OVERRIDE_64_umask |
| 285 | SC_LTTNG_TRACEPOINT_EVENT(umask, |
| 286 | TP_PROTO(sc_exit(long ret,) int mask), |
| 287 | TP_ARGS(sc_exit(ret,) mask), |
| 288 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, mask))), |
| 289 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(mask, mask))), |
| 290 | TP_printk() |
| 291 | ) |
| 292 | #endif |
| 293 | #ifndef OVERRIDE_64_setuid |
| 294 | SC_LTTNG_TRACEPOINT_EVENT(setuid, |
| 295 | TP_PROTO(sc_exit(long ret,) uid_t uid), |
| 296 | TP_ARGS(sc_exit(ret,) uid), |
| 297 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(uid_t, uid))), |
| 298 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(uid, uid))), |
| 299 | TP_printk() |
| 300 | ) |
| 301 | #endif |
| 302 | #ifndef OVERRIDE_64_setgid |
| 303 | SC_LTTNG_TRACEPOINT_EVENT(setgid, |
| 304 | TP_PROTO(sc_exit(long ret,) gid_t gid), |
| 305 | TP_ARGS(sc_exit(ret,) gid), |
| 306 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(gid_t, gid))), |
| 307 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(gid, gid))), |
| 308 | TP_printk() |
| 309 | ) |
| 310 | #endif |
| 311 | #ifndef OVERRIDE_64_getpgid |
| 312 | SC_LTTNG_TRACEPOINT_EVENT(getpgid, |
| 313 | TP_PROTO(sc_exit(long ret,) pid_t pid), |
| 314 | TP_ARGS(sc_exit(ret,) pid), |
| 315 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(pid_t, pid))), |
| 316 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(pid, pid))), |
| 317 | TP_printk() |
| 318 | ) |
| 319 | #endif |
| 320 | #ifndef OVERRIDE_64_setfsuid |
| 321 | SC_LTTNG_TRACEPOINT_EVENT(setfsuid, |
| 322 | TP_PROTO(sc_exit(long ret,) uid_t uid), |
| 323 | TP_ARGS(sc_exit(ret,) uid), |
| 324 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(uid_t, uid))), |
| 325 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(uid, uid))), |
| 326 | TP_printk() |
| 327 | ) |
| 328 | #endif |
| 329 | #ifndef OVERRIDE_64_setfsgid |
| 330 | SC_LTTNG_TRACEPOINT_EVENT(setfsgid, |
| 331 | TP_PROTO(sc_exit(long ret,) gid_t gid), |
| 332 | TP_ARGS(sc_exit(ret,) gid), |
| 333 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(gid_t, gid))), |
| 334 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(gid, gid))), |
| 335 | TP_printk() |
| 336 | ) |
| 337 | #endif |
| 338 | #ifndef OVERRIDE_64_getsid |
| 339 | SC_LTTNG_TRACEPOINT_EVENT(getsid, |
| 340 | TP_PROTO(sc_exit(long ret,) pid_t pid), |
| 341 | TP_ARGS(sc_exit(ret,) pid), |
| 342 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(pid_t, pid))), |
| 343 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(pid, pid))), |
| 344 | TP_printk() |
| 345 | ) |
| 346 | #endif |
| 347 | #ifndef OVERRIDE_64_personality |
| 348 | SC_LTTNG_TRACEPOINT_EVENT(personality, |
| 349 | TP_PROTO(sc_exit(long ret,) unsigned int personality), |
| 350 | TP_ARGS(sc_exit(ret,) personality), |
| 351 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, personality))), |
| 352 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(personality, personality))), |
| 353 | TP_printk() |
| 354 | ) |
| 355 | #endif |
| 356 | #ifndef OVERRIDE_64_sched_getscheduler |
| 357 | SC_LTTNG_TRACEPOINT_EVENT(sched_getscheduler, |
| 358 | TP_PROTO(sc_exit(long ret,) pid_t pid), |
| 359 | TP_ARGS(sc_exit(ret,) pid), |
| 360 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(pid_t, pid))), |
| 361 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(pid, pid))), |
| 362 | TP_printk() |
| 363 | ) |
| 364 | #endif |
| 365 | #ifndef OVERRIDE_64_sched_get_priority_max |
| 366 | SC_LTTNG_TRACEPOINT_EVENT(sched_get_priority_max, |
| 367 | TP_PROTO(sc_exit(long ret,) int policy), |
| 368 | TP_ARGS(sc_exit(ret,) policy), |
| 369 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, policy))), |
| 370 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(policy, policy))), |
| 371 | TP_printk() |
| 372 | ) |
| 373 | #endif |
| 374 | #ifndef OVERRIDE_64_sched_get_priority_min |
| 375 | SC_LTTNG_TRACEPOINT_EVENT(sched_get_priority_min, |
| 376 | TP_PROTO(sc_exit(long ret,) int policy), |
| 377 | TP_ARGS(sc_exit(ret,) policy), |
| 378 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, policy))), |
| 379 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(policy, policy))), |
| 380 | TP_printk() |
| 381 | ) |
| 382 | #endif |
| 383 | #ifndef OVERRIDE_64_mlockall |
| 384 | SC_LTTNG_TRACEPOINT_EVENT(mlockall, |
| 385 | TP_PROTO(sc_exit(long ret,) int flags), |
| 386 | TP_ARGS(sc_exit(ret,) flags), |
| 387 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, flags))), |
| 388 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(flags, flags))), |
| 389 | TP_printk() |
| 390 | ) |
| 391 | #endif |
| 392 | #ifndef OVERRIDE_64_io_destroy |
| 393 | SC_LTTNG_TRACEPOINT_EVENT(io_destroy, |
| 394 | TP_PROTO(sc_exit(long ret,) aio_context_t ctx), |
| 395 | TP_ARGS(sc_exit(ret,) ctx), |
| 396 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(aio_context_t, ctx))), |
| 397 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(ctx, ctx))), |
| 398 | TP_printk() |
| 399 | ) |
| 400 | #endif |
| 401 | #ifndef OVERRIDE_64_epoll_create |
| 402 | SC_LTTNG_TRACEPOINT_EVENT(epoll_create, |
| 403 | TP_PROTO(sc_exit(long ret,) int size), |
| 404 | TP_ARGS(sc_exit(ret,) size), |
| 405 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, size))), |
| 406 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(size, size))), |
| 407 | TP_printk() |
| 408 | ) |
| 409 | #endif |
| 410 | #ifndef OVERRIDE_64_timer_getoverrun |
| 411 | SC_LTTNG_TRACEPOINT_EVENT(timer_getoverrun, |
| 412 | TP_PROTO(sc_exit(long ret,) timer_t timer_id), |
| 413 | TP_ARGS(sc_exit(ret,) timer_id), |
| 414 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(timer_t, timer_id))), |
| 415 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(timer_id, timer_id))), |
| 416 | TP_printk() |
| 417 | ) |
| 418 | #endif |
| 419 | #ifndef OVERRIDE_64_timer_delete |
| 420 | SC_LTTNG_TRACEPOINT_EVENT(timer_delete, |
| 421 | TP_PROTO(sc_exit(long ret,) timer_t timer_id), |
| 422 | TP_ARGS(sc_exit(ret,) timer_id), |
| 423 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(timer_t, timer_id))), |
| 424 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(timer_id, timer_id))), |
| 425 | TP_printk() |
| 426 | ) |
| 427 | #endif |
| 428 | #ifndef OVERRIDE_64_exit_group |
| 429 | SC_LTTNG_TRACEPOINT_EVENT(exit_group, |
| 430 | TP_PROTO(sc_exit(long ret,) int error_code), |
| 431 | TP_ARGS(sc_exit(ret,) error_code), |
| 432 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, error_code))), |
| 433 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(error_code, error_code))), |
| 434 | TP_printk() |
| 435 | ) |
| 436 | #endif |
| 437 | #ifndef OVERRIDE_64_unshare |
| 438 | SC_LTTNG_TRACEPOINT_EVENT(unshare, |
| 439 | TP_PROTO(sc_exit(long ret,) unsigned long unshare_flags), |
| 440 | TP_ARGS(sc_exit(ret,) unshare_flags), |
| 441 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned long, unshare_flags))), |
| 442 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(unshare_flags, unshare_flags))), |
| 443 | TP_printk() |
| 444 | ) |
| 445 | #endif |
| 446 | #ifndef OVERRIDE_64_eventfd |
| 447 | SC_LTTNG_TRACEPOINT_EVENT(eventfd, |
| 448 | TP_PROTO(sc_exit(long ret,) unsigned int count), |
| 449 | TP_ARGS(sc_exit(ret,) count), |
| 450 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, count))), |
| 451 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(count, count))), |
| 452 | TP_printk() |
| 453 | ) |
| 454 | #endif |
| 455 | #ifndef OVERRIDE_64_epoll_create1 |
| 456 | SC_LTTNG_TRACEPOINT_EVENT(epoll_create1, |
| 457 | TP_PROTO(sc_exit(long ret,) int flags), |
| 458 | TP_ARGS(sc_exit(ret,) flags), |
| 459 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, flags))), |
| 460 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(flags, flags))), |
| 461 | TP_printk() |
| 462 | ) |
| 463 | #endif |
| 464 | #ifndef OVERRIDE_64_inotify_init1 |
| 465 | SC_LTTNG_TRACEPOINT_EVENT(inotify_init1, |
| 466 | TP_PROTO(sc_exit(long ret,) int flags), |
| 467 | TP_ARGS(sc_exit(ret,) flags), |
| 468 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, flags))), |
| 469 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(flags, flags))), |
| 470 | TP_printk() |
| 471 | ) |
| 472 | #endif |
| 473 | #ifndef OVERRIDE_64_syncfs |
| 474 | SC_LTTNG_TRACEPOINT_EVENT(syncfs, |
| 475 | TP_PROTO(sc_exit(long ret,) int fd), |
| 476 | TP_ARGS(sc_exit(ret,) fd), |
| 477 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, fd))), |
| 478 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd))), |
| 479 | TP_printk() |
| 480 | ) |
| 481 | #endif |
| 482 | #ifndef OVERRIDE_64_munmap |
| 483 | SC_LTTNG_TRACEPOINT_EVENT(munmap, |
| 484 | TP_PROTO(sc_exit(long ret,) unsigned long addr, size_t len), |
| 485 | TP_ARGS(sc_exit(ret,) addr, len), |
| 486 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field_hex(unsigned long, addr)) sc_in(__field(size_t, len))), |
| 487 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(addr, addr)) sc_in(tp_assign(len, len))), |
| 488 | TP_printk() |
| 489 | ) |
| 490 | #endif |
| 491 | #ifndef OVERRIDE_64_dup2 |
| 492 | SC_LTTNG_TRACEPOINT_EVENT(dup2, |
| 493 | TP_PROTO(sc_exit(long ret,) unsigned int oldfd, unsigned int newfd), |
| 494 | TP_ARGS(sc_exit(ret,) oldfd, newfd), |
| 495 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, oldfd)) sc_in(__field(unsigned int, newfd))), |
| 496 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(oldfd, oldfd)) sc_in(tp_assign(newfd, newfd))), |
| 497 | TP_printk() |
| 498 | ) |
| 499 | #endif |
| 500 | #ifndef OVERRIDE_64_shutdown |
| 501 | SC_LTTNG_TRACEPOINT_EVENT(shutdown, |
| 502 | TP_PROTO(sc_exit(long ret,) int fd, int how), |
| 503 | TP_ARGS(sc_exit(ret,) fd, how), |
| 504 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, fd)) sc_in(__field(int, how))), |
| 505 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(how, how))), |
| 506 | TP_printk() |
| 507 | ) |
| 508 | #endif |
| 509 | #ifndef OVERRIDE_64_listen |
| 510 | SC_LTTNG_TRACEPOINT_EVENT(listen, |
| 511 | TP_PROTO(sc_exit(long ret,) int fd, int backlog), |
| 512 | TP_ARGS(sc_exit(ret,) fd, backlog), |
| 513 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, fd)) sc_in(__field(int, backlog))), |
| 514 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(backlog, backlog))), |
| 515 | TP_printk() |
| 516 | ) |
| 517 | #endif |
| 518 | #ifndef OVERRIDE_64_kill |
| 519 | SC_LTTNG_TRACEPOINT_EVENT(kill, |
| 520 | TP_PROTO(sc_exit(long ret,) pid_t pid, int sig), |
| 521 | TP_ARGS(sc_exit(ret,) pid, sig), |
| 522 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(pid_t, pid)) sc_in(__field(int, sig))), |
| 523 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(pid, pid)) sc_in(tp_assign(sig, sig))), |
| 524 | TP_printk() |
| 525 | ) |
| 526 | #endif |
| 527 | #ifndef OVERRIDE_64_msgget |
| 528 | SC_LTTNG_TRACEPOINT_EVENT(msgget, |
| 529 | TP_PROTO(sc_exit(long ret,) key_t key, int msgflg), |
| 530 | TP_ARGS(sc_exit(ret,) key, msgflg), |
| 531 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(key_t, key)) sc_in(__field(int, msgflg))), |
| 532 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(key, key)) sc_in(tp_assign(msgflg, msgflg))), |
| 533 | TP_printk() |
| 534 | ) |
| 535 | #endif |
| 536 | #ifndef OVERRIDE_64_flock |
| 537 | SC_LTTNG_TRACEPOINT_EVENT(flock, |
| 538 | TP_PROTO(sc_exit(long ret,) unsigned int fd, unsigned int cmd), |
| 539 | TP_ARGS(sc_exit(ret,) fd, cmd), |
| 540 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, fd)) sc_in(__field(unsigned int, cmd))), |
| 541 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(cmd, cmd))), |
| 542 | TP_printk() |
| 543 | ) |
| 544 | #endif |
| 545 | #ifndef OVERRIDE_64_ftruncate |
| 546 | SC_LTTNG_TRACEPOINT_EVENT(ftruncate, |
| 547 | TP_PROTO(sc_exit(long ret,) unsigned int fd, unsigned long length), |
| 548 | TP_ARGS(sc_exit(ret,) fd, length), |
| 549 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, fd)) sc_in(__field(unsigned long, length))), |
| 550 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(length, length))), |
| 551 | TP_printk() |
| 552 | ) |
| 553 | #endif |
| 554 | #ifndef OVERRIDE_64_fchmod |
| 555 | SC_LTTNG_TRACEPOINT_EVENT(fchmod, |
| 556 | TP_PROTO(sc_exit(long ret,) unsigned int fd, umode_t mode), |
| 557 | TP_ARGS(sc_exit(ret,) fd, mode), |
| 558 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, fd)) sc_in(__field(umode_t, mode))), |
| 559 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(mode, mode))), |
| 560 | TP_printk() |
| 561 | ) |
| 562 | #endif |
| 563 | #ifndef OVERRIDE_64_setpgid |
| 564 | SC_LTTNG_TRACEPOINT_EVENT(setpgid, |
| 565 | TP_PROTO(sc_exit(long ret,) pid_t pid, pid_t pgid), |
| 566 | TP_ARGS(sc_exit(ret,) pid, pgid), |
| 567 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(pid_t, pid)) sc_in(__field(pid_t, pgid))), |
| 568 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(pid, pid)) sc_in(tp_assign(pgid, pgid))), |
| 569 | TP_printk() |
| 570 | ) |
| 571 | #endif |
| 572 | #ifndef OVERRIDE_64_setreuid |
| 573 | SC_LTTNG_TRACEPOINT_EVENT(setreuid, |
| 574 | TP_PROTO(sc_exit(long ret,) uid_t ruid, uid_t euid), |
| 575 | TP_ARGS(sc_exit(ret,) ruid, euid), |
| 576 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(uid_t, ruid)) sc_in(__field(uid_t, euid))), |
| 577 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(ruid, ruid)) sc_in(tp_assign(euid, euid))), |
| 578 | TP_printk() |
| 579 | ) |
| 580 | #endif |
| 581 | #ifndef OVERRIDE_64_setregid |
| 582 | SC_LTTNG_TRACEPOINT_EVENT(setregid, |
| 583 | TP_PROTO(sc_exit(long ret,) gid_t rgid, gid_t egid), |
| 584 | TP_ARGS(sc_exit(ret,) rgid, egid), |
| 585 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(gid_t, rgid)) sc_in(__field(gid_t, egid))), |
| 586 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(rgid, rgid)) sc_in(tp_assign(egid, egid))), |
| 587 | TP_printk() |
| 588 | ) |
| 589 | #endif |
| 590 | #ifndef OVERRIDE_64_getpriority |
| 591 | SC_LTTNG_TRACEPOINT_EVENT(getpriority, |
| 592 | TP_PROTO(sc_exit(long ret,) int which, int who), |
| 593 | TP_ARGS(sc_exit(ret,) which, who), |
| 594 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, which)) sc_in(__field(int, who))), |
| 595 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(which, which)) sc_in(tp_assign(who, who))), |
| 596 | TP_printk() |
| 597 | ) |
| 598 | #endif |
| 599 | #ifndef OVERRIDE_64_mlock |
| 600 | SC_LTTNG_TRACEPOINT_EVENT(mlock, |
| 601 | TP_PROTO(sc_exit(long ret,) unsigned long start, size_t len), |
| 602 | TP_ARGS(sc_exit(ret,) start, len), |
| 603 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned long, start)) sc_in(__field(size_t, len))), |
| 604 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(start, start)) sc_in(tp_assign(len, len))), |
| 605 | TP_printk() |
| 606 | ) |
| 607 | #endif |
| 608 | #ifndef OVERRIDE_64_munlock |
| 609 | SC_LTTNG_TRACEPOINT_EVENT(munlock, |
| 610 | TP_PROTO(sc_exit(long ret,) unsigned long start, size_t len), |
| 611 | TP_ARGS(sc_exit(ret,) start, len), |
| 612 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned long, start)) sc_in(__field(size_t, len))), |
| 613 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(start, start)) sc_in(tp_assign(len, len))), |
| 614 | TP_printk() |
| 615 | ) |
| 616 | #endif |
| 617 | #ifndef OVERRIDE_64_tkill |
| 618 | SC_LTTNG_TRACEPOINT_EVENT(tkill, |
| 619 | TP_PROTO(sc_exit(long ret,) pid_t pid, int sig), |
| 620 | TP_ARGS(sc_exit(ret,) pid, sig), |
| 621 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(pid_t, pid)) sc_in(__field(int, sig))), |
| 622 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(pid, pid)) sc_in(tp_assign(sig, sig))), |
| 623 | TP_printk() |
| 624 | ) |
| 625 | #endif |
| 626 | #ifndef OVERRIDE_64_ioprio_get |
| 627 | SC_LTTNG_TRACEPOINT_EVENT(ioprio_get, |
| 628 | TP_PROTO(sc_exit(long ret,) int which, int who), |
| 629 | TP_ARGS(sc_exit(ret,) which, who), |
| 630 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, which)) sc_in(__field(int, who))), |
| 631 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(which, which)) sc_in(tp_assign(who, who))), |
| 632 | TP_printk() |
| 633 | ) |
| 634 | #endif |
| 635 | #ifndef OVERRIDE_64_inotify_rm_watch |
| 636 | SC_LTTNG_TRACEPOINT_EVENT(inotify_rm_watch, |
| 637 | TP_PROTO(sc_exit(long ret,) int fd, __s32 wd), |
| 638 | TP_ARGS(sc_exit(ret,) fd, wd), |
| 639 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, fd)) sc_in(__field(__s32, wd))), |
| 640 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(wd, wd))), |
| 641 | TP_printk() |
| 642 | ) |
| 643 | #endif |
| 644 | #ifndef OVERRIDE_64_timerfd_create |
| 645 | SC_LTTNG_TRACEPOINT_EVENT(timerfd_create, |
| 646 | TP_PROTO(sc_exit(long ret,) int clockid, int flags), |
| 647 | TP_ARGS(sc_exit(ret,) clockid, flags), |
| 648 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, clockid)) sc_in(__field(int, flags))), |
| 649 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(clockid, clockid)) sc_in(tp_assign(flags, flags))), |
| 650 | TP_printk() |
| 651 | ) |
| 652 | #endif |
| 653 | #ifndef OVERRIDE_64_eventfd2 |
| 654 | SC_LTTNG_TRACEPOINT_EVENT(eventfd2, |
| 655 | TP_PROTO(sc_exit(long ret,) unsigned int count, int flags), |
| 656 | TP_ARGS(sc_exit(ret,) count, flags), |
| 657 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, count)) sc_in(__field(int, flags))), |
| 658 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(count, count)) sc_in(tp_assign(flags, flags))), |
| 659 | TP_printk() |
| 660 | ) |
| 661 | #endif |
| 662 | #ifndef OVERRIDE_64_fanotify_init |
| 663 | SC_LTTNG_TRACEPOINT_EVENT(fanotify_init, |
| 664 | TP_PROTO(sc_exit(long ret,) unsigned int flags, unsigned int event_f_flags), |
| 665 | TP_ARGS(sc_exit(ret,) flags, event_f_flags), |
| 666 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, flags)) sc_in(__field(unsigned int, event_f_flags))), |
| 667 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(flags, flags)) sc_in(tp_assign(event_f_flags, event_f_flags))), |
| 668 | TP_printk() |
| 669 | ) |
| 670 | #endif |
| 671 | #ifndef OVERRIDE_64_setns |
| 672 | SC_LTTNG_TRACEPOINT_EVENT(setns, |
| 673 | TP_PROTO(sc_exit(long ret,) int fd, int nstype), |
| 674 | TP_ARGS(sc_exit(ret,) fd, nstype), |
| 675 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, fd)) sc_in(__field(int, nstype))), |
| 676 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(nstype, nstype))), |
| 677 | TP_printk() |
| 678 | ) |
| 679 | #endif |
| 680 | #ifndef OVERRIDE_64_lseek |
| 681 | SC_LTTNG_TRACEPOINT_EVENT(lseek, |
| 682 | TP_PROTO(sc_exit(long ret,) unsigned int fd, off_t offset, unsigned int whence), |
| 683 | TP_ARGS(sc_exit(ret,) fd, offset, whence), |
| 684 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, fd)) sc_in(__field(off_t, offset)) sc_in(__field(unsigned int, whence))), |
| 685 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(offset, offset)) sc_in(tp_assign(whence, whence))), |
| 686 | TP_printk() |
| 687 | ) |
| 688 | #endif |
| 689 | #ifndef OVERRIDE_64_mprotect |
| 690 | SC_LTTNG_TRACEPOINT_EVENT(mprotect, |
| 691 | TP_PROTO(sc_exit(long ret,) unsigned long start, size_t len, unsigned long prot), |
| 692 | TP_ARGS(sc_exit(ret,) start, len, prot), |
| 693 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned long, start)) sc_in(__field(size_t, len)) sc_in(__field(unsigned long, prot))), |
| 694 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(start, start)) sc_in(tp_assign(len, len)) sc_in(tp_assign(prot, prot))), |
| 695 | TP_printk() |
| 696 | ) |
| 697 | #endif |
| 698 | #ifndef OVERRIDE_64_ioctl |
| 699 | SC_LTTNG_TRACEPOINT_EVENT(ioctl, |
| 700 | TP_PROTO(sc_exit(long ret,) unsigned int fd, unsigned int cmd, unsigned long arg), |
| 701 | TP_ARGS(sc_exit(ret,) fd, cmd, arg), |
| 702 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, fd)) sc_in(__field(unsigned int, cmd)) sc_inout(__field(unsigned long, arg))), |
| 703 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(cmd, cmd)) sc_inout(tp_assign(arg, arg))), |
| 704 | TP_printk() |
| 705 | ) |
| 706 | #endif |
| 707 | #ifndef OVERRIDE_64_msync |
| 708 | SC_LTTNG_TRACEPOINT_EVENT(msync, |
| 709 | TP_PROTO(sc_exit(long ret,) unsigned long start, size_t len, int flags), |
| 710 | TP_ARGS(sc_exit(ret,) start, len, flags), |
| 711 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned long, start)) sc_in(__field(size_t, len)) sc_in(__field(int, flags))), |
| 712 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(start, start)) sc_in(tp_assign(len, len)) sc_in(tp_assign(flags, flags))), |
| 713 | TP_printk() |
| 714 | ) |
| 715 | #endif |
| 716 | #ifndef OVERRIDE_64_madvise |
| 717 | SC_LTTNG_TRACEPOINT_EVENT(madvise, |
| 718 | TP_PROTO(sc_exit(long ret,) unsigned long start, size_t len_in, int behavior), |
| 719 | TP_ARGS(sc_exit(ret,) start, len_in, behavior), |
| 720 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned long, start)) sc_in(__field(size_t, len_in)) sc_in(__field(int, behavior))), |
| 721 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(start, start)) sc_in(tp_assign(len_in, len_in)) sc_in(tp_assign(behavior, behavior))), |
| 722 | TP_printk() |
| 723 | ) |
| 724 | #endif |
| 725 | #ifndef OVERRIDE_64_shmget |
| 726 | SC_LTTNG_TRACEPOINT_EVENT(shmget, |
| 727 | TP_PROTO(sc_exit(long ret,) key_t key, size_t size, int shmflg), |
| 728 | TP_ARGS(sc_exit(ret,) key, size, shmflg), |
| 729 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(key_t, key)) sc_in(__field(size_t, size)) sc_in(__field(int, shmflg))), |
| 730 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(key, key)) sc_in(tp_assign(size, size)) sc_in(tp_assign(shmflg, shmflg))), |
| 731 | TP_printk() |
| 732 | ) |
| 733 | #endif |
| 734 | #ifndef OVERRIDE_64_socket |
| 735 | SC_LTTNG_TRACEPOINT_EVENT(socket, |
| 736 | TP_PROTO(sc_exit(long ret,) int family, int type, int protocol), |
| 737 | TP_ARGS(sc_exit(ret,) family, type, protocol), |
| 738 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, family)) sc_in(__field(int, type)) sc_in(__field(int, protocol))), |
| 739 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(family, family)) sc_in(tp_assign(type, type)) sc_in(tp_assign(protocol, protocol))), |
| 740 | TP_printk() |
| 741 | ) |
| 742 | #endif |
| 743 | #ifndef OVERRIDE_64_semget |
| 744 | SC_LTTNG_TRACEPOINT_EVENT(semget, |
| 745 | TP_PROTO(sc_exit(long ret,) key_t key, int nsems, int semflg), |
| 746 | TP_ARGS(sc_exit(ret,) key, nsems, semflg), |
| 747 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(key_t, key)) sc_in(__field(int, nsems)) sc_in(__field(int, semflg))), |
| 748 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(key, key)) sc_in(tp_assign(nsems, nsems)) sc_in(tp_assign(semflg, semflg))), |
| 749 | TP_printk() |
| 750 | ) |
| 751 | #endif |
| 752 | #ifndef OVERRIDE_64_fcntl |
| 753 | SC_LTTNG_TRACEPOINT_EVENT(fcntl, |
| 754 | TP_PROTO(sc_exit(long ret,) unsigned int fd, unsigned int cmd, unsigned long arg), |
| 755 | TP_ARGS(sc_exit(ret,) fd, cmd, arg), |
| 756 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, fd)) sc_in(__field(unsigned int, cmd)) sc_inout(__field(unsigned long, arg))), |
| 757 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(cmd, cmd)) sc_inout(tp_assign(arg, arg))), |
| 758 | TP_printk() |
| 759 | ) |
| 760 | #endif |
| 761 | #ifndef OVERRIDE_64_fchown |
| 762 | SC_LTTNG_TRACEPOINT_EVENT(fchown, |
| 763 | TP_PROTO(sc_exit(long ret,) unsigned int fd, uid_t user, gid_t group), |
| 764 | TP_ARGS(sc_exit(ret,) fd, user, group), |
| 765 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, fd)) sc_in(__field(uid_t, user)) sc_in(__field(gid_t, group))), |
| 766 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(user, user)) sc_in(tp_assign(group, group))), |
| 767 | TP_printk() |
| 768 | ) |
| 769 | #endif |
| 770 | #ifndef OVERRIDE_64_setresuid |
| 771 | SC_LTTNG_TRACEPOINT_EVENT(setresuid, |
| 772 | TP_PROTO(sc_exit(long ret,) uid_t ruid, uid_t euid, uid_t suid), |
| 773 | TP_ARGS(sc_exit(ret,) ruid, euid, suid), |
| 774 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(uid_t, ruid)) sc_in(__field(uid_t, euid)) sc_in(__field(uid_t, suid))), |
| 775 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(ruid, ruid)) sc_in(tp_assign(euid, euid)) sc_in(tp_assign(suid, suid))), |
| 776 | TP_printk() |
| 777 | ) |
| 778 | #endif |
| 779 | #ifndef OVERRIDE_64_setresgid |
| 780 | SC_LTTNG_TRACEPOINT_EVENT(setresgid, |
| 781 | TP_PROTO(sc_exit(long ret,) gid_t rgid, gid_t egid, gid_t sgid), |
| 782 | TP_ARGS(sc_exit(ret,) rgid, egid, sgid), |
| 783 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(gid_t, rgid)) sc_in(__field(gid_t, egid)) sc_in(__field(gid_t, sgid))), |
| 784 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(rgid, rgid)) sc_in(tp_assign(egid, egid)) sc_in(tp_assign(sgid, sgid))), |
| 785 | TP_printk() |
| 786 | ) |
| 787 | #endif |
| 788 | #ifndef OVERRIDE_64_sysfs |
| 789 | SC_LTTNG_TRACEPOINT_EVENT(sysfs, |
| 790 | TP_PROTO(sc_exit(long ret,) int option, unsigned long arg1, unsigned long arg2), |
| 791 | TP_ARGS(sc_exit(ret,) option, arg1, arg2), |
| 792 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, option)) sc_in(__field(unsigned long, arg1)) sc_in(__field(unsigned long, arg2))), |
| 793 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(option, option)) sc_in(tp_assign(arg1, arg1)) sc_in(tp_assign(arg2, arg2))), |
| 794 | TP_printk() |
| 795 | ) |
| 796 | #endif |
| 797 | #ifndef OVERRIDE_64_setpriority |
| 798 | SC_LTTNG_TRACEPOINT_EVENT(setpriority, |
| 799 | TP_PROTO(sc_exit(long ret,) int which, int who, int niceval), |
| 800 | TP_ARGS(sc_exit(ret,) which, who, niceval), |
| 801 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, which)) sc_in(__field(int, who)) sc_in(__field(int, niceval))), |
| 802 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(which, which)) sc_in(tp_assign(who, who)) sc_in(tp_assign(niceval, niceval))), |
| 803 | TP_printk() |
| 804 | ) |
| 805 | #endif |
| 806 | #ifndef OVERRIDE_64_readahead |
| 807 | SC_LTTNG_TRACEPOINT_EVENT(readahead, |
| 808 | TP_PROTO(sc_exit(long ret,) int fd, loff_t offset, size_t count), |
| 809 | TP_ARGS(sc_exit(ret,) fd, offset, count), |
| 810 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, fd)) sc_in(__field(loff_t, offset)) sc_in(__field(size_t, count))), |
| 811 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(offset, offset)) sc_in(tp_assign(count, count))), |
| 812 | TP_printk() |
| 813 | ) |
| 814 | #endif |
| 815 | #ifndef OVERRIDE_64_tgkill |
| 816 | SC_LTTNG_TRACEPOINT_EVENT(tgkill, |
| 817 | TP_PROTO(sc_exit(long ret,) pid_t tgid, pid_t pid, int sig), |
| 818 | TP_ARGS(sc_exit(ret,) tgid, pid, sig), |
| 819 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(pid_t, tgid)) sc_in(__field(pid_t, pid)) sc_in(__field(int, sig))), |
| 820 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(tgid, tgid)) sc_in(tp_assign(pid, pid)) sc_in(tp_assign(sig, sig))), |
| 821 | TP_printk() |
| 822 | ) |
| 823 | #endif |
| 824 | #ifndef OVERRIDE_64_ioprio_set |
| 825 | SC_LTTNG_TRACEPOINT_EVENT(ioprio_set, |
| 826 | TP_PROTO(sc_exit(long ret,) int which, int who, int ioprio), |
| 827 | TP_ARGS(sc_exit(ret,) which, who, ioprio), |
| 828 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, which)) sc_in(__field(int, who)) sc_in(__field(int, ioprio))), |
| 829 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(which, which)) sc_in(tp_assign(who, who)) sc_in(tp_assign(ioprio, ioprio))), |
| 830 | TP_printk() |
| 831 | ) |
| 832 | #endif |
| 833 | #ifndef OVERRIDE_64_dup3 |
| 834 | SC_LTTNG_TRACEPOINT_EVENT(dup3, |
| 835 | TP_PROTO(sc_exit(long ret,) unsigned int oldfd, unsigned int newfd, int flags), |
| 836 | TP_ARGS(sc_exit(ret,) oldfd, newfd, flags), |
| 837 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned int, oldfd)) sc_in(__field(unsigned int, newfd)) sc_in(__field(int, flags))), |
| 838 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(oldfd, oldfd)) sc_in(tp_assign(newfd, newfd)) sc_in(tp_assign(flags, flags))), |
| 839 | TP_printk() |
| 840 | ) |
| 841 | #endif |
| 842 | #ifndef OVERRIDE_64_semctl |
| 843 | SC_LTTNG_TRACEPOINT_EVENT(semctl, |
| 844 | TP_PROTO(sc_exit(long ret,) int semid, int semnum, int cmd, unsigned long arg), |
| 845 | TP_ARGS(sc_exit(ret,) semid, semnum, cmd, arg), |
| 846 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, semid)) sc_in(__field(int, semnum)) sc_in(__field(int, cmd)) sc_inout(__field(unsigned long, arg))), |
| 847 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(semid, semid)) sc_in(tp_assign(semnum, semnum)) sc_in(tp_assign(cmd, cmd)) sc_inout(tp_assign(arg, arg))), |
| 848 | TP_printk() |
| 849 | ) |
| 850 | #endif |
| 851 | #ifndef OVERRIDE_64_ptrace |
| 852 | SC_LTTNG_TRACEPOINT_EVENT(ptrace, |
| 853 | TP_PROTO(sc_exit(long ret,) long request, long pid, unsigned long addr, unsigned long data), |
| 854 | TP_ARGS(sc_exit(ret,) request, pid, addr, data), |
| 855 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(long, request)) sc_in(__field(long, pid)) sc_inout(__field_hex(unsigned long, addr)) sc_inout(__field(unsigned long, data))), |
| 856 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(request, request)) sc_in(tp_assign(pid, pid)) sc_inout(tp_assign(addr, addr)) sc_inout(tp_assign(data, data))), |
| 857 | TP_printk() |
| 858 | ) |
| 859 | #endif |
| 860 | #ifndef OVERRIDE_64_fadvise64 |
| 861 | SC_LTTNG_TRACEPOINT_EVENT(fadvise64, |
| 862 | TP_PROTO(sc_exit(long ret,) int fd, loff_t offset, size_t len, int advice), |
| 863 | TP_ARGS(sc_exit(ret,) fd, offset, len, advice), |
| 864 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, fd)) sc_in(__field(loff_t, offset)) sc_in(__field(size_t, len)) sc_in(__field(int, advice))), |
| 865 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(offset, offset)) sc_in(tp_assign(len, len)) sc_in(tp_assign(advice, advice))), |
| 866 | TP_printk() |
| 867 | ) |
| 868 | #endif |
| 869 | #ifndef OVERRIDE_64_tee |
| 870 | SC_LTTNG_TRACEPOINT_EVENT(tee, |
| 871 | TP_PROTO(sc_exit(long ret,) int fdin, int fdout, size_t len, unsigned int flags), |
| 872 | TP_ARGS(sc_exit(ret,) fdin, fdout, len, flags), |
| 873 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, fdin)) sc_in(__field(int, fdout)) sc_in(__field(size_t, len)) sc_in(__field(unsigned int, flags))), |
| 874 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fdin, fdin)) sc_in(tp_assign(fdout, fdout)) sc_in(tp_assign(len, len)) sc_in(tp_assign(flags, flags))), |
| 875 | TP_printk() |
| 876 | ) |
| 877 | #endif |
| 878 | #ifndef OVERRIDE_64_sync_file_range |
| 879 | SC_LTTNG_TRACEPOINT_EVENT(sync_file_range, |
| 880 | TP_PROTO(sc_exit(long ret,) int fd, loff_t offset, loff_t nbytes, unsigned int flags), |
| 881 | TP_ARGS(sc_exit(ret,) fd, offset, nbytes, flags), |
| 882 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, fd)) sc_in(__field(loff_t, offset)) sc_in(__field(loff_t, nbytes)) sc_in(__field(unsigned int, flags))), |
| 883 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(offset, offset)) sc_in(tp_assign(nbytes, nbytes)) sc_in(tp_assign(flags, flags))), |
| 884 | TP_printk() |
| 885 | ) |
| 886 | #endif |
| 887 | #ifndef OVERRIDE_64_fallocate |
| 888 | SC_LTTNG_TRACEPOINT_EVENT(fallocate, |
| 889 | TP_PROTO(sc_exit(long ret,) int fd, int mode, loff_t offset, loff_t len), |
| 890 | TP_ARGS(sc_exit(ret,) fd, mode, offset, len), |
| 891 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, fd)) sc_in(__field(int, mode)) sc_in(__field(loff_t, offset)) sc_in(__field(loff_t, len))), |
| 892 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(mode, mode)) sc_in(tp_assign(offset, offset)) sc_in(tp_assign(len, len))), |
| 893 | TP_printk() |
| 894 | ) |
| 895 | #endif |
| 896 | #ifndef OVERRIDE_64_mremap |
| 897 | SC_LTTNG_TRACEPOINT_EVENT(mremap, |
| 898 | TP_PROTO(sc_exit(long ret,) unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, unsigned long new_addr), |
| 899 | TP_ARGS(sc_exit(ret,) addr, old_len, new_len, flags, new_addr), |
| 900 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field_hex(unsigned long, addr)) sc_in(__field(unsigned long, old_len)) sc_in(__field(unsigned long, new_len)) sc_in(__field(unsigned long, flags)) sc_in(__field_hex(unsigned long, new_addr))), |
| 901 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(addr, addr)) sc_in(tp_assign(old_len, old_len)) sc_in(tp_assign(new_len, new_len)) sc_in(tp_assign(flags, flags)) sc_in(tp_assign(new_addr, new_addr))), |
| 902 | TP_printk() |
| 903 | ) |
| 904 | #endif |
| 905 | #ifndef OVERRIDE_64_prctl |
| 906 | SC_LTTNG_TRACEPOINT_EVENT(prctl, |
| 907 | TP_PROTO(sc_exit(long ret,) int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5), |
| 908 | TP_ARGS(sc_exit(ret,) option, arg2, arg3, arg4, arg5), |
| 909 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, option)) sc_inout(__field(unsigned long, arg2)) sc_in(__field(unsigned long, arg3)) sc_in(__field(unsigned long, arg4)) sc_in(__field(unsigned long, arg5))), |
| 910 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(option, option)) sc_inout(tp_assign(arg2, arg2)) sc_in(tp_assign(arg3, arg3)) sc_in(tp_assign(arg4, arg4)) sc_in(tp_assign(arg5, arg5))), |
| 911 | TP_printk() |
| 912 | ) |
| 913 | #endif |
| 914 | #ifndef OVERRIDE_64_remap_file_pages |
| 915 | SC_LTTNG_TRACEPOINT_EVENT(remap_file_pages, |
| 916 | TP_PROTO(sc_exit(long ret,) unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long flags), |
| 917 | TP_ARGS(sc_exit(ret,) start, size, prot, pgoff, flags), |
| 918 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(unsigned long, start)) sc_in(__field(unsigned long, size)) sc_in(__field(unsigned long, prot)) sc_in(__field(unsigned long, pgoff)) sc_in(__field(unsigned long, flags))), |
| 919 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(start, start)) sc_in(tp_assign(size, size)) sc_in(tp_assign(prot, prot)) sc_in(tp_assign(pgoff, pgoff)) sc_in(tp_assign(flags, flags))), |
| 920 | TP_printk() |
| 921 | ) |
| 922 | #endif |
| 923 | #ifndef OVERRIDE_64_keyctl |
| 924 | SC_LTTNG_TRACEPOINT_EVENT(keyctl, |
| 925 | TP_PROTO(sc_exit(long ret,) int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5), |
| 926 | TP_ARGS(sc_exit(ret,) option, arg2, arg3, arg4, arg5), |
| 927 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field(int, option)) sc_inout(__field(unsigned long, arg2)) sc_inout(__field(unsigned long, arg3)) sc_inout(__field(unsigned long, arg4)) sc_inout(__field(unsigned long, arg5))), |
| 928 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(option, option)) sc_inout(tp_assign(arg2, arg2)) sc_inout(tp_assign(arg3, arg3)) sc_inout(tp_assign(arg4, arg4)) sc_inout(tp_assign(arg5, arg5))), |
| 929 | TP_printk() |
| 930 | ) |
| 931 | #endif |
| 932 | #ifndef OVERRIDE_64_mmap |
| 933 | SC_LTTNG_TRACEPOINT_EVENT(mmap, |
| 934 | TP_PROTO(sc_exit(long ret,) unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long off), |
| 935 | TP_ARGS(sc_exit(ret,) addr, len, prot, flags, fd, off), |
| 936 | TP_STRUCT__entry(sc_exit(__field(long, ret)) sc_in(__field_hex(unsigned long, addr)) sc_in(__field(unsigned long, len)) sc_in(__field(unsigned long, prot)) sc_in(__field(unsigned long, flags)) sc_in(__field(unsigned long, fd)) sc_in(__field(unsigned long, off))), |
| 937 | TP_fast_assign(sc_exit(tp_assign(ret, ret)) sc_in(tp_assign(addr, addr)) sc_in(tp_assign(len, len)) sc_in(tp_assign(prot, prot)) sc_in(tp_assign(flags, flags)) sc_in(tp_assign(fd, fd)) sc_in(tp_assign(off, off))), |
| 938 | TP_printk() |
| 939 | ) |
| 940 | #endif |
| 941 | |
| 942 | #endif /* _TRACE_SYSCALLS_INTEGERS_H */ |
| 943 | |
| 944 | /* This part must be outside protection */ |
| 945 | #include "../../../probes/define_trace.h" |
| 946 | |
| 947 | #else /* CREATE_SYSCALL_TABLE */ |
| 948 | |
| 949 | #include "x86-64-syscalls-3.10.0-rc7_integers_override.h" |
| 950 | #include "syscalls_integers_override.h" |
| 951 | |
| 952 | #ifdef SC_ENTER |
| 953 | #ifndef OVERRIDE_TABLE_64_sched_yield |
| 954 | TRACE_SYSCALL_TABLE(syscalls_noargs, sched_yield, 24, 0) |
| 955 | #endif |
| 956 | #ifndef OVERRIDE_TABLE_64_pause |
| 957 | TRACE_SYSCALL_TABLE(syscalls_noargs, pause, 34, 0) |
| 958 | #endif |
| 959 | #ifndef OVERRIDE_TABLE_64_getpid |
| 960 | TRACE_SYSCALL_TABLE(syscalls_noargs, getpid, 39, 0) |
| 961 | #endif |
| 962 | #ifndef OVERRIDE_TABLE_64_getuid |
| 963 | TRACE_SYSCALL_TABLE(syscalls_noargs, getuid, 102, 0) |
| 964 | #endif |
| 965 | #ifndef OVERRIDE_TABLE_64_getgid |
| 966 | TRACE_SYSCALL_TABLE(syscalls_noargs, getgid, 104, 0) |
| 967 | #endif |
| 968 | #ifndef OVERRIDE_TABLE_64_geteuid |
| 969 | TRACE_SYSCALL_TABLE(syscalls_noargs, geteuid, 107, 0) |
| 970 | #endif |
| 971 | #ifndef OVERRIDE_TABLE_64_getegid |
| 972 | TRACE_SYSCALL_TABLE(syscalls_noargs, getegid, 108, 0) |
| 973 | #endif |
| 974 | #ifndef OVERRIDE_TABLE_64_getppid |
| 975 | TRACE_SYSCALL_TABLE(syscalls_noargs, getppid, 110, 0) |
| 976 | #endif |
| 977 | #ifndef OVERRIDE_TABLE_64_getpgrp |
| 978 | TRACE_SYSCALL_TABLE(syscalls_noargs, getpgrp, 111, 0) |
| 979 | #endif |
| 980 | #ifndef OVERRIDE_TABLE_64_setsid |
| 981 | TRACE_SYSCALL_TABLE(syscalls_noargs, setsid, 112, 0) |
| 982 | #endif |
| 983 | #ifndef OVERRIDE_TABLE_64_munlockall |
| 984 | TRACE_SYSCALL_TABLE(syscalls_noargs, munlockall, 152, 0) |
| 985 | #endif |
| 986 | #ifndef OVERRIDE_TABLE_64_vhangup |
| 987 | TRACE_SYSCALL_TABLE(syscalls_noargs, vhangup, 153, 0) |
| 988 | #endif |
| 989 | #ifndef OVERRIDE_TABLE_64_sync |
| 990 | TRACE_SYSCALL_TABLE(syscalls_noargs, sync, 162, 0) |
| 991 | #endif |
| 992 | #ifndef OVERRIDE_TABLE_64_gettid |
| 993 | TRACE_SYSCALL_TABLE(syscalls_noargs, gettid, 186, 0) |
| 994 | #endif |
| 995 | #ifndef OVERRIDE_TABLE_64_restart_syscall |
| 996 | TRACE_SYSCALL_TABLE(syscalls_noargs, restart_syscall, 219, 0) |
| 997 | #endif |
| 998 | #ifndef OVERRIDE_TABLE_64_inotify_init |
| 999 | TRACE_SYSCALL_TABLE(syscalls_noargs, inotify_init, 253, 0) |
| 1000 | #endif |
| 1001 | #else /* #ifdef SC_ENTER */ |
| 1002 | #ifndef OVERRIDE_TABLE_64_sched_yield |
| 1003 | TRACE_SYSCALL_TABLE(sched_yield, sched_yield, 24, 0) |
| 1004 | #endif |
| 1005 | #ifndef OVERRIDE_TABLE_64_pause |
| 1006 | TRACE_SYSCALL_TABLE(pause, pause, 34, 0) |
| 1007 | #endif |
| 1008 | #ifndef OVERRIDE_TABLE_64_getpid |
| 1009 | TRACE_SYSCALL_TABLE(getpid, getpid, 39, 0) |
| 1010 | #endif |
| 1011 | #ifndef OVERRIDE_TABLE_64_getuid |
| 1012 | TRACE_SYSCALL_TABLE(getuid, getuid, 102, 0) |
| 1013 | #endif |
| 1014 | #ifndef OVERRIDE_TABLE_64_getgid |
| 1015 | TRACE_SYSCALL_TABLE(getgid, getgid, 104, 0) |
| 1016 | #endif |
| 1017 | #ifndef OVERRIDE_TABLE_64_geteuid |
| 1018 | TRACE_SYSCALL_TABLE(geteuid, geteuid, 107, 0) |
| 1019 | #endif |
| 1020 | #ifndef OVERRIDE_TABLE_64_getegid |
| 1021 | TRACE_SYSCALL_TABLE(getegid, getegid, 108, 0) |
| 1022 | #endif |
| 1023 | #ifndef OVERRIDE_TABLE_64_getppid |
| 1024 | TRACE_SYSCALL_TABLE(getppid, getppid, 110, 0) |
| 1025 | #endif |
| 1026 | #ifndef OVERRIDE_TABLE_64_getpgrp |
| 1027 | TRACE_SYSCALL_TABLE(getpgrp, getpgrp, 111, 0) |
| 1028 | #endif |
| 1029 | #ifndef OVERRIDE_TABLE_64_setsid |
| 1030 | TRACE_SYSCALL_TABLE(setsid, setsid, 112, 0) |
| 1031 | #endif |
| 1032 | #ifndef OVERRIDE_TABLE_64_munlockall |
| 1033 | TRACE_SYSCALL_TABLE(munlockall, munlockall, 152, 0) |
| 1034 | #endif |
| 1035 | #ifndef OVERRIDE_TABLE_64_vhangup |
| 1036 | TRACE_SYSCALL_TABLE(vhangup, vhangup, 153, 0) |
| 1037 | #endif |
| 1038 | #ifndef OVERRIDE_TABLE_64_sync |
| 1039 | TRACE_SYSCALL_TABLE(sync, sync, 162, 0) |
| 1040 | #endif |
| 1041 | #ifndef OVERRIDE_TABLE_64_gettid |
| 1042 | TRACE_SYSCALL_TABLE(gettid, gettid, 186, 0) |
| 1043 | #endif |
| 1044 | #ifndef OVERRIDE_TABLE_64_restart_syscall |
| 1045 | TRACE_SYSCALL_TABLE(restart_syscall, restart_syscall, 219, 0) |
| 1046 | #endif |
| 1047 | #ifndef OVERRIDE_TABLE_64_inotify_init |
| 1048 | TRACE_SYSCALL_TABLE(inotify_init, inotify_init, 253, 0) |
| 1049 | #endif |
| 1050 | #endif /* else #ifdef SC_ENTER */ |
| 1051 | #ifndef OVERRIDE_TABLE_64_close |
| 1052 | TRACE_SYSCALL_TABLE(close, close, 3, 1) |
| 1053 | #endif |
| 1054 | #ifndef OVERRIDE_TABLE_64_lseek |
| 1055 | TRACE_SYSCALL_TABLE(lseek, lseek, 8, 3) |
| 1056 | #endif |
| 1057 | #ifndef OVERRIDE_TABLE_64_mmap |
| 1058 | TRACE_SYSCALL_TABLE(mmap, mmap, 9, 6) |
| 1059 | #endif |
| 1060 | #ifndef OVERRIDE_TABLE_64_mprotect |
| 1061 | TRACE_SYSCALL_TABLE(mprotect, mprotect, 10, 3) |
| 1062 | #endif |
| 1063 | #ifndef OVERRIDE_TABLE_64_munmap |
| 1064 | TRACE_SYSCALL_TABLE(munmap, munmap, 11, 2) |
| 1065 | #endif |
| 1066 | #ifndef OVERRIDE_TABLE_64_brk |
| 1067 | TRACE_SYSCALL_TABLE(brk, brk, 12, 1) |
| 1068 | #endif |
| 1069 | #ifndef OVERRIDE_TABLE_64_ioctl |
| 1070 | TRACE_SYSCALL_TABLE(ioctl, ioctl, 16, 3) |
| 1071 | #endif |
| 1072 | #ifndef OVERRIDE_TABLE_64_mremap |
| 1073 | TRACE_SYSCALL_TABLE(mremap, mremap, 25, 5) |
| 1074 | #endif |
| 1075 | #ifndef OVERRIDE_TABLE_64_msync |
| 1076 | TRACE_SYSCALL_TABLE(msync, msync, 26, 3) |
| 1077 | #endif |
| 1078 | #ifndef OVERRIDE_TABLE_64_madvise |
| 1079 | TRACE_SYSCALL_TABLE(madvise, madvise, 28, 3) |
| 1080 | #endif |
| 1081 | #ifndef OVERRIDE_TABLE_64_shmget |
| 1082 | TRACE_SYSCALL_TABLE(shmget, shmget, 29, 3) |
| 1083 | #endif |
| 1084 | #ifndef OVERRIDE_TABLE_64_dup |
| 1085 | TRACE_SYSCALL_TABLE(dup, dup, 32, 1) |
| 1086 | #endif |
| 1087 | #ifndef OVERRIDE_TABLE_64_dup2 |
| 1088 | TRACE_SYSCALL_TABLE(dup2, dup2, 33, 2) |
| 1089 | #endif |
| 1090 | #ifndef OVERRIDE_TABLE_64_alarm |
| 1091 | TRACE_SYSCALL_TABLE(alarm, alarm, 37, 1) |
| 1092 | #endif |
| 1093 | #ifndef OVERRIDE_TABLE_64_socket |
| 1094 | TRACE_SYSCALL_TABLE(socket, socket, 41, 3) |
| 1095 | #endif |
| 1096 | #ifndef OVERRIDE_TABLE_64_shutdown |
| 1097 | TRACE_SYSCALL_TABLE(shutdown, shutdown, 48, 2) |
| 1098 | #endif |
| 1099 | #ifndef OVERRIDE_TABLE_64_listen |
| 1100 | TRACE_SYSCALL_TABLE(listen, listen, 50, 2) |
| 1101 | #endif |
| 1102 | #ifndef OVERRIDE_TABLE_64_exit |
| 1103 | TRACE_SYSCALL_TABLE(exit, exit, 60, 1) |
| 1104 | #endif |
| 1105 | #ifndef OVERRIDE_TABLE_64_kill |
| 1106 | TRACE_SYSCALL_TABLE(kill, kill, 62, 2) |
| 1107 | #endif |
| 1108 | #ifndef OVERRIDE_TABLE_64_semget |
| 1109 | TRACE_SYSCALL_TABLE(semget, semget, 64, 3) |
| 1110 | #endif |
| 1111 | #ifndef OVERRIDE_TABLE_64_semctl |
| 1112 | TRACE_SYSCALL_TABLE(semctl, semctl, 66, 4) |
| 1113 | #endif |
| 1114 | #ifndef OVERRIDE_TABLE_64_msgget |
| 1115 | TRACE_SYSCALL_TABLE(msgget, msgget, 68, 2) |
| 1116 | #endif |
| 1117 | #ifndef OVERRIDE_TABLE_64_fcntl |
| 1118 | TRACE_SYSCALL_TABLE(fcntl, fcntl, 72, 3) |
| 1119 | #endif |
| 1120 | #ifndef OVERRIDE_TABLE_64_flock |
| 1121 | TRACE_SYSCALL_TABLE(flock, flock, 73, 2) |
| 1122 | #endif |
| 1123 | #ifndef OVERRIDE_TABLE_64_fsync |
| 1124 | TRACE_SYSCALL_TABLE(fsync, fsync, 74, 1) |
| 1125 | #endif |
| 1126 | #ifndef OVERRIDE_TABLE_64_fdatasync |
| 1127 | TRACE_SYSCALL_TABLE(fdatasync, fdatasync, 75, 1) |
| 1128 | #endif |
| 1129 | #ifndef OVERRIDE_TABLE_64_ftruncate |
| 1130 | TRACE_SYSCALL_TABLE(ftruncate, ftruncate, 77, 2) |
| 1131 | #endif |
| 1132 | #ifndef OVERRIDE_TABLE_64_fchdir |
| 1133 | TRACE_SYSCALL_TABLE(fchdir, fchdir, 81, 1) |
| 1134 | #endif |
| 1135 | #ifndef OVERRIDE_TABLE_64_fchmod |
| 1136 | TRACE_SYSCALL_TABLE(fchmod, fchmod, 91, 2) |
| 1137 | #endif |
| 1138 | #ifndef OVERRIDE_TABLE_64_fchown |
| 1139 | TRACE_SYSCALL_TABLE(fchown, fchown, 93, 3) |
| 1140 | #endif |
| 1141 | #ifndef OVERRIDE_TABLE_64_umask |
| 1142 | TRACE_SYSCALL_TABLE(umask, umask, 95, 1) |
| 1143 | #endif |
| 1144 | #ifndef OVERRIDE_TABLE_64_ptrace |
| 1145 | TRACE_SYSCALL_TABLE(ptrace, ptrace, 101, 4) |
| 1146 | #endif |
| 1147 | #ifndef OVERRIDE_TABLE_64_setuid |
| 1148 | TRACE_SYSCALL_TABLE(setuid, setuid, 105, 1) |
| 1149 | #endif |
| 1150 | #ifndef OVERRIDE_TABLE_64_setgid |
| 1151 | TRACE_SYSCALL_TABLE(setgid, setgid, 106, 1) |
| 1152 | #endif |
| 1153 | #ifndef OVERRIDE_TABLE_64_setpgid |
| 1154 | TRACE_SYSCALL_TABLE(setpgid, setpgid, 109, 2) |
| 1155 | #endif |
| 1156 | #ifndef OVERRIDE_TABLE_64_setreuid |
| 1157 | TRACE_SYSCALL_TABLE(setreuid, setreuid, 113, 2) |
| 1158 | #endif |
| 1159 | #ifndef OVERRIDE_TABLE_64_setregid |
| 1160 | TRACE_SYSCALL_TABLE(setregid, setregid, 114, 2) |
| 1161 | #endif |
| 1162 | #ifndef OVERRIDE_TABLE_64_setresuid |
| 1163 | TRACE_SYSCALL_TABLE(setresuid, setresuid, 117, 3) |
| 1164 | #endif |
| 1165 | #ifndef OVERRIDE_TABLE_64_setresgid |
| 1166 | TRACE_SYSCALL_TABLE(setresgid, setresgid, 119, 3) |
| 1167 | #endif |
| 1168 | #ifndef OVERRIDE_TABLE_64_getpgid |
| 1169 | TRACE_SYSCALL_TABLE(getpgid, getpgid, 121, 1) |
| 1170 | #endif |
| 1171 | #ifndef OVERRIDE_TABLE_64_setfsuid |
| 1172 | TRACE_SYSCALL_TABLE(setfsuid, setfsuid, 122, 1) |
| 1173 | #endif |
| 1174 | #ifndef OVERRIDE_TABLE_64_setfsgid |
| 1175 | TRACE_SYSCALL_TABLE(setfsgid, setfsgid, 123, 1) |
| 1176 | #endif |
| 1177 | #ifndef OVERRIDE_TABLE_64_getsid |
| 1178 | TRACE_SYSCALL_TABLE(getsid, getsid, 124, 1) |
| 1179 | #endif |
| 1180 | #ifndef OVERRIDE_TABLE_64_personality |
| 1181 | TRACE_SYSCALL_TABLE(personality, personality, 135, 1) |
| 1182 | #endif |
| 1183 | #ifndef OVERRIDE_TABLE_64_sysfs |
| 1184 | TRACE_SYSCALL_TABLE(sysfs, sysfs, 139, 3) |
| 1185 | #endif |
| 1186 | #ifndef OVERRIDE_TABLE_64_getpriority |
| 1187 | TRACE_SYSCALL_TABLE(getpriority, getpriority, 140, 2) |
| 1188 | #endif |
| 1189 | #ifndef OVERRIDE_TABLE_64_setpriority |
| 1190 | TRACE_SYSCALL_TABLE(setpriority, setpriority, 141, 3) |
| 1191 | #endif |
| 1192 | #ifndef OVERRIDE_TABLE_64_sched_getscheduler |
| 1193 | TRACE_SYSCALL_TABLE(sched_getscheduler, sched_getscheduler, 145, 1) |
| 1194 | #endif |
| 1195 | #ifndef OVERRIDE_TABLE_64_sched_get_priority_max |
| 1196 | TRACE_SYSCALL_TABLE(sched_get_priority_max, sched_get_priority_max, 146, 1) |
| 1197 | #endif |
| 1198 | #ifndef OVERRIDE_TABLE_64_sched_get_priority_min |
| 1199 | TRACE_SYSCALL_TABLE(sched_get_priority_min, sched_get_priority_min, 147, 1) |
| 1200 | #endif |
| 1201 | #ifndef OVERRIDE_TABLE_64_mlock |
| 1202 | TRACE_SYSCALL_TABLE(mlock, mlock, 149, 2) |
| 1203 | #endif |
| 1204 | #ifndef OVERRIDE_TABLE_64_munlock |
| 1205 | TRACE_SYSCALL_TABLE(munlock, munlock, 150, 2) |
| 1206 | #endif |
| 1207 | #ifndef OVERRIDE_TABLE_64_mlockall |
| 1208 | TRACE_SYSCALL_TABLE(mlockall, mlockall, 151, 1) |
| 1209 | #endif |
| 1210 | #ifndef OVERRIDE_TABLE_64_prctl |
| 1211 | TRACE_SYSCALL_TABLE(prctl, prctl, 157, 5) |
| 1212 | #endif |
| 1213 | #ifndef OVERRIDE_TABLE_64_readahead |
| 1214 | TRACE_SYSCALL_TABLE(readahead, readahead, 187, 3) |
| 1215 | #endif |
| 1216 | #ifndef OVERRIDE_TABLE_64_tkill |
| 1217 | TRACE_SYSCALL_TABLE(tkill, tkill, 200, 2) |
| 1218 | #endif |
| 1219 | #ifndef OVERRIDE_TABLE_64_io_destroy |
| 1220 | TRACE_SYSCALL_TABLE(io_destroy, io_destroy, 207, 1) |
| 1221 | #endif |
| 1222 | #ifndef OVERRIDE_TABLE_64_epoll_create |
| 1223 | TRACE_SYSCALL_TABLE(epoll_create, epoll_create, 213, 1) |
| 1224 | #endif |
| 1225 | #ifndef OVERRIDE_TABLE_64_remap_file_pages |
| 1226 | TRACE_SYSCALL_TABLE(remap_file_pages, remap_file_pages, 216, 5) |
| 1227 | #endif |
| 1228 | #ifndef OVERRIDE_TABLE_64_fadvise64 |
| 1229 | TRACE_SYSCALL_TABLE(fadvise64, fadvise64, 221, 4) |
| 1230 | #endif |
| 1231 | #ifndef OVERRIDE_TABLE_64_timer_getoverrun |
| 1232 | TRACE_SYSCALL_TABLE(timer_getoverrun, timer_getoverrun, 225, 1) |
| 1233 | #endif |
| 1234 | #ifndef OVERRIDE_TABLE_64_timer_delete |
| 1235 | TRACE_SYSCALL_TABLE(timer_delete, timer_delete, 226, 1) |
| 1236 | #endif |
| 1237 | #ifndef OVERRIDE_TABLE_64_exit_group |
| 1238 | TRACE_SYSCALL_TABLE(exit_group, exit_group, 231, 1) |
| 1239 | #endif |
| 1240 | #ifndef OVERRIDE_TABLE_64_tgkill |
| 1241 | TRACE_SYSCALL_TABLE(tgkill, tgkill, 234, 3) |
| 1242 | #endif |
| 1243 | #ifndef OVERRIDE_TABLE_64_keyctl |
| 1244 | TRACE_SYSCALL_TABLE(keyctl, keyctl, 250, 5) |
| 1245 | #endif |
| 1246 | #ifndef OVERRIDE_TABLE_64_ioprio_set |
| 1247 | TRACE_SYSCALL_TABLE(ioprio_set, ioprio_set, 251, 3) |
| 1248 | #endif |
| 1249 | #ifndef OVERRIDE_TABLE_64_ioprio_get |
| 1250 | TRACE_SYSCALL_TABLE(ioprio_get, ioprio_get, 252, 2) |
| 1251 | #endif |
| 1252 | #ifndef OVERRIDE_TABLE_64_inotify_rm_watch |
| 1253 | TRACE_SYSCALL_TABLE(inotify_rm_watch, inotify_rm_watch, 255, 2) |
| 1254 | #endif |
| 1255 | #ifndef OVERRIDE_TABLE_64_unshare |
| 1256 | TRACE_SYSCALL_TABLE(unshare, unshare, 272, 1) |
| 1257 | #endif |
| 1258 | #ifndef OVERRIDE_TABLE_64_tee |
| 1259 | TRACE_SYSCALL_TABLE(tee, tee, 276, 4) |
| 1260 | #endif |
| 1261 | #ifndef OVERRIDE_TABLE_64_sync_file_range |
| 1262 | TRACE_SYSCALL_TABLE(sync_file_range, sync_file_range, 277, 4) |
| 1263 | #endif |
| 1264 | #ifndef OVERRIDE_TABLE_64_timerfd_create |
| 1265 | TRACE_SYSCALL_TABLE(timerfd_create, timerfd_create, 283, 2) |
| 1266 | #endif |
| 1267 | #ifndef OVERRIDE_TABLE_64_eventfd |
| 1268 | TRACE_SYSCALL_TABLE(eventfd, eventfd, 284, 1) |
| 1269 | #endif |
| 1270 | #ifndef OVERRIDE_TABLE_64_fallocate |
| 1271 | TRACE_SYSCALL_TABLE(fallocate, fallocate, 285, 4) |
| 1272 | #endif |
| 1273 | #ifndef OVERRIDE_TABLE_64_eventfd2 |
| 1274 | TRACE_SYSCALL_TABLE(eventfd2, eventfd2, 290, 2) |
| 1275 | #endif |
| 1276 | #ifndef OVERRIDE_TABLE_64_epoll_create1 |
| 1277 | TRACE_SYSCALL_TABLE(epoll_create1, epoll_create1, 291, 1) |
| 1278 | #endif |
| 1279 | #ifndef OVERRIDE_TABLE_64_dup3 |
| 1280 | TRACE_SYSCALL_TABLE(dup3, dup3, 292, 3) |
| 1281 | #endif |
| 1282 | #ifndef OVERRIDE_TABLE_64_inotify_init1 |
| 1283 | TRACE_SYSCALL_TABLE(inotify_init1, inotify_init1, 294, 1) |
| 1284 | #endif |
| 1285 | #ifndef OVERRIDE_TABLE_64_fanotify_init |
| 1286 | TRACE_SYSCALL_TABLE(fanotify_init, fanotify_init, 300, 2) |
| 1287 | #endif |
| 1288 | #ifndef OVERRIDE_TABLE_64_syncfs |
| 1289 | TRACE_SYSCALL_TABLE(syncfs, syncfs, 306, 1) |
| 1290 | #endif |
| 1291 | #ifndef OVERRIDE_TABLE_64_setns |
| 1292 | TRACE_SYSCALL_TABLE(setns, setns, 308, 2) |
| 1293 | #endif |
| 1294 | |
| 1295 | #endif /* CREATE_SYSCALL_TABLE */ |