]> granicus.if.org Git - strace/commitdiff
Introduce linux/syscallent-common.h and linux/syscallent-common-32.h
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 26 Jun 2019 08:00:39 +0000 (08:00 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 29 Jun 2019 17:38:25 +0000 (17:38 +0000)
These files are going to be used to define syscall entries for common
syscalls added in Linux kernel 5.1+.

* linux/syscallent-common.h: New file.
* linux/syscallent-common-32.h: Likewise.
* Makefile.am (EXTRA_DIST): Add them.
(syscallent_names): Add syscallent-common.h and syscallent-common-32.h.
* linux/mips/.gitignore: Add syscallent-common-32-stub.h
and syscallent-common-stub.h.
* linux/mips/genstub.sh: Parametrize source directory.  Change syscall
name prefix to SYSCALL_NAME_PREFIX.
* configure.ac [MIPS]: Generate stubs for linux/syscallent-common.h
and linux/syscallent-common-32.h files.
* linux/mips/syscallent-n32.h [LINUX_MIPSN32]
[BASE_NR + 403..BASE_NR + 427]: Remove, include "syscallent-common-32.h"
and "syscallent-common.h" instead.
[!LINUX_MIPSN32] (SYSCALL_NAME_PREFIX): Define.
[!LINUX_MIPSN32]: Include "syscallent-common-32-sub.h"
and "syscallent-common-stub.h".
* linux/mips/syscallent-o32.h [LINUX_MIPSO32]
[BASE_NR + 403..BASE_NR + 427]: Remove, include "syscallent-common-32.h"
and "syscallent-common.h" instead.
[!LINUX_MIPSO32] (SYSCALL_NAME_PREFIX): Define.
[!LINUX_MIPSO32]: Include "syscallent-common-32-sub.h"
* linux/32/syscallent.h [403..427]: Remove, include
"syscallent-common-32.h" and "syscallent-common.h" instead.
* linux/arm/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/alpha/syscallent.h (BASE_NR): Define.
[534..537]: Remove, include "syscallent-common.h" instead.
* linux/ia64/syscallent.h [BASE_NR + 424..BASE_NR + 427]: Remove,
include "syscallent-common.h" instead.
* linux/mips/syscallent-n64.h [LINUX_MIPSN64]: Likewise.
[!LINUX_MIPSN64] (SYSCALL_NAME_PREFIX): Define.
[!LINUX_MIPSN64]: Include "syscallent-common-stub.h".
* linux/64/syscallent.h [424..427]: Remove, include
"syscallent-common.h" instead.
* linux/powerpc64/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.

29 files changed:
Makefile.am
configure.ac
linux/32/syscallent.h
linux/64/syscallent.h
linux/alpha/syscallent.h
linux/arm/syscallent.h
linux/hppa/syscallent.h
linux/i386/syscallent.h
linux/ia64/syscallent.h
linux/m68k/syscallent.h
linux/microblaze/syscallent.h
linux/mips/.gitignore
linux/mips/genstub.sh
linux/mips/syscallent-n32.h
linux/mips/syscallent-n64.h
linux/mips/syscallent-o32.h
linux/powerpc/syscallent.h
linux/powerpc64/syscallent.h
linux/s390/syscallent.h
linux/s390x/syscallent.h
linux/sh/syscallent.h
linux/sh64/syscallent.h
linux/sparc/syscallent.h
linux/sparc64/syscallent.h
linux/syscallent-common-32.h [new file with mode: 0644]
linux/syscallent-common.h [new file with mode: 0644]
linux/x32/syscallent.h
linux/x86_64/syscallent.h
linux/xtensa/syscallent.h

index a8ace321d08bd2b2af5791c8a4fc0737bf506846..07918ec92480bfec94e99fe0bc3b0d0f5faacb87 100644 (file)
@@ -841,6 +841,8 @@ EXTRA_DIST =                                \
        linux/subcall32.h               \
        linux/subcall64.h               \
        linux/syscall.h                 \
+       linux/syscallent-common-32.h    \
+       linux/syscallent-common.h       \
        linux/tile/arch_defs_.h         \
        linux/tile/arch_get_personality.c \
        linux/tile/arch_regs.c          \
@@ -963,6 +965,7 @@ sys_func.h: $(patsubst %,$(srcdir)/%,$(sys_func_h_sources))
        done | sort -u > $@
 
 syscallent_names = subcall.h syscallent.h syscallent1.h \
+                  syscallent-common.h syscallent-common-32.h \
                   syscallent-n32.h syscallent-n64.h syscallent-o32.h
 syscallent_patterns = $(patsubst %,\%/%,$(syscallent_names))
 syscallent_files = $(filter $(syscallent_patterns),$(EXTRA_DIST))
index 621312ac4b38b2e0a0f335e4133014fb04ac1079..f3769ca7ebdc4c65788a22535d7b0e53a0158ca3 100644 (file)
@@ -897,7 +897,10 @@ st_STACKTRACE
 
 if test "$arch" = mips && test "$no_create" != yes; then
        mkdir -p linux/mips
-       if $srcdir/linux/mips/genstub.sh linux/mips; then
+       if $srcdir/linux/mips/genstub.sh \
+          $srcdir/linux/mips linux/mips n32 n64 o32 &&
+          $srcdir/linux/mips/genstub.sh \
+          $srcdir/linux linux/mips common common-32; then
                AC_MSG_RESULT([Generated MIPS syscallent stubs])
        else
                AC_MSG_ERROR([Failed to generate syscallent stubs])
index 01a5009df1ace0b40919ad4503c3c3e2af4724ef..a08d5cc6381624284d2b7d3801540de641e6b960 100644 (file)
 [292] = { 6,   0,              SEN(io_pgetevents_time32),      "io_pgetevents"         },
 [293] = { 4,   0,              SEN(rseq),                      "rseq"                  },
 [294] = { 5,   TD,             SEN(kexec_file_load),           "kexec_file_load"       },
-[403] = { 2,   0,              SEN(clock_gettime64),           "clock_gettime64"       },
-[404] = { 2,   0,              SEN(clock_settime64),           "clock_settime64"       },
-[405] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
-[406] = { 2,   0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
-[407] = { 4,   0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
-[408] = { 2,   0,              SEN(timer_gettime64),           "timer_gettime64"       },
-[409] = { 4,   0,              SEN(timer_settime64),           "timer_settime64"       },
-[410] = { 2,   TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
-[411] = { 4,   TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
-[412] = { 4,   TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
-[413] = { 6,   TD,             SEN(pselect6_time64),           "pselect6_time64"       },
-[414] = { 5,   TD,             SEN(ppoll_time64),              "ppoll_time64"          },
-[416] = { 6,   0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
-[417] = { 5,   TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
-[418] = { 5,   TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
-[419] = { 5,   TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
-[420] = { 4,   TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
-[421] = { 4,   TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
-[422] = { 6,   0,              SEN(futex_time64),              "futex_time64"          },
-[423] = { 2,   0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+/* [295 ... 402] - reserved to sync up with other architectures */
+#include "syscallent-common-32.h"
+#include "syscallent-common.h"
 
 #undef sys_ARCH_mmap
 #undef ARCH_WANT_SYNC_FILE_RANGE2
index 294da6901c638ee4ed58190945670b3d73d2d0de..9a531ada732a54c8fc595d794e085fb4c8bbd04b 100644 (file)
 [293] = { 4,   0,              SEN(rseq),                      "rseq"                  },
 [294] = { 5,   TD,             SEN(kexec_file_load),           "kexec_file_load"       },
 /* [295 ... 423] - reserved to sync up with other architectures */
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common.h"
index d569fa6760d29ddf408aee7a0ffd68f682d97530..f38d5243471bee2ec42537b6bbf22087ae941e9f 100644 (file)
 [531] = { 0,   PU|NF,          SEN(geteuid),                   "geteuid"               },
 [532] = { 0,   PU|NF,          SEN(getppid),                   "getppid"               },
 /* all other architectures have common numbers for new syscalls, alpha is the exception */
-[534] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[535] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[536] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[537] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+/* 534 - 424 == 110 */
+#define BASE_NR 110
+#include "syscallent-common.h"
+#undef BASE_NR
index 065e79f3d2b4c107354aa63e80e1a1cdded22422..9fe6b27bcece88c3fb684f382fdb89e874e0f2d5 100644 (file)
 [400] = { 4,   TM,             SEN(migrate_pages),             "migrate_pages"         },
 [401] = { 5,   TD,             SEN(kexec_file_load),           "kexec_file_load"       },
 /* [402] - unused */
-[403] = { 2,   0,              SEN(clock_gettime64),           "clock_gettime64"       },
-[404] = { 2,   0,              SEN(clock_settime64),           "clock_settime64"       },
-[405] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
-[406] = { 2,   0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
-[407] = { 4,   0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
-[408] = { 2,   0,              SEN(timer_gettime64),           "timer_gettime64"       },
-[409] = { 4,   0,              SEN(timer_settime64),           "timer_settime64"       },
-[410] = { 2,   TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
-[411] = { 4,   TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
-[412] = { 4,   TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
-[413] = { 6,   TD,             SEN(pselect6_time64),           "pselect6_time64"       },
-[414] = { 5,   TD,             SEN(ppoll_time64),              "ppoll_time64"          },
-[416] = { 6,   0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
-[417] = { 5,   TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
-[418] = { 5,   TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
-[419] = { 5,   TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
-[420] = { 4,   TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
-[421] = { 4,   TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
-[422] = { 6,   0,              SEN(futex_time64),              "futex_time64"          },
-[423] = { 2,   0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common-32.h"
+#include "syscallent-common.h"
 
 #ifdef __ARM_EABI__
 # define ARM_FIRST_SHUFFLED_SYSCALL 500
index 72f15190b140843aa659c43fe54cf1c910e520af..4cbde965456493282b0f51adab56663d3326c1f1 100644 (file)
 [353] = { 1,   0,              SEN(pkey_free),                 "pkey_free"             },
 [354] = { 4,   0,              SEN(rseq),                      "rseq"                  },
 /* [355 ... 402] - reserved to sync up with other architectures */
-[403] = { 2,   0,              SEN(clock_gettime64),           "clock_gettime64"       },
-[404] = { 2,   0,              SEN(clock_settime64),           "clock_settime64"       },
-[405] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
-[406] = { 2,   0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
-[407] = { 4,   0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
-[408] = { 2,   0,              SEN(timer_gettime64),           "timer_gettime64"       },
-[409] = { 4,   0,              SEN(timer_settime64),           "timer_settime64"       },
-[410] = { 2,   TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
-[411] = { 4,   TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
-[412] = { 4,   TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
-[413] = { 6,   TD,             SEN(pselect6_time64),           "pselect6_time64"       },
-[414] = { 5,   TD,             SEN(ppoll_time64),              "ppoll_time64"          },
-[416] = { 6,   0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
-[417] = { 5,   TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
-[418] = { 5,   TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
-[419] = { 5,   TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
-[420] = { 4,   TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
-[421] = { 4,   TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
-[422] = { 6,   0,              SEN(futex_time64),              "futex_time64"          },
-[423] = { 2,   0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common-32.h"
+#include "syscallent-common.h"
index 98866f3da7490f5ac06f9f816ce8172f345c6895..e2233ec99e6575b8c7c43840922ffb7c83db6b01 100644 (file)
 [400] = { 4,   TI,             SEN(msgsnd),                    "msgsnd"                },
 [401] = { 5,   TI,             SEN(msgrcv),                    "msgrcv"                },
 [402] = { 3,   TI,             SEN(msgctl),                    "msgctl"                },
-[403] = { 2,   0,              SEN(clock_gettime64),           "clock_gettime64"       },
-[404] = { 2,   0,              SEN(clock_settime64),           "clock_settime64"       },
-[405] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
-[406] = { 2,   0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
-[407] = { 4,   0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
-[408] = { 2,   0,              SEN(timer_gettime64),           "timer_gettime64"       },
-[409] = { 4,   0,              SEN(timer_settime64),           "timer_settime64"       },
-[410] = { 2,   TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
-[411] = { 4,   TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
-[412] = { 4,   TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
-[413] = { 6,   TD,             SEN(pselect6_time64),           "pselect6_time64"       },
-[414] = { 5,   TD,             SEN(ppoll_time64),              "ppoll_time64"          },
-[416] = { 6,   0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
-[417] = { 5,   TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
-[418] = { 5,   TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
-[419] = { 5,   TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
-[420] = { 4,   TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
-[421] = { 4,   TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
-[422] = { 6,   0,              SEN(futex_time64),              "futex_time64"          },
-[423] = { 2,   0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common-32.h"
+#include "syscallent-common.h"
 
 #define SYS_socket_subcall     500
 #include "subcall32.h"
index bf1cc42494e0f38feb7b23622d1fa69c377125cb..86f7efd7a1c73f2bea8ef9256c29f9107e1a0235 100644 (file)
 [BASE_NR + 332] = { 1, 0,              SEN(pkey_free),                 "pkey_free"             },
 [BASE_NR + 333] = { 4, 0,              SEN(rseq),                      "rseq"                  },
 /* [BASE_NR + 334 ... BASE_NR + 423] - reserved to sync up with other architectures */
-[BASE_NR + 424] = { 4, TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[BASE_NR + 425] = { 2, TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[BASE_NR + 426] = { 6, TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[BASE_NR + 427] = { 4, TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common.h"
 #undef BASE_NR
index f21176975489993a6ad340b89bd363f930751069..708e89c921c6d9e69426d1f959f84e2f7b9eccc5 100644 (file)
 [400] = { 4,   TI,             SEN(msgsnd),                    "msgsnd"                },
 [401] = { 5,   TI,             SEN(msgrcv),                    "msgrcv"                },
 [402] = { 3,   TI,             SEN(msgctl),                    "msgctl"                },
-[403] = { 2,   0,              SEN(clock_gettime64),           "clock_gettime64"       },
-[404] = { 2,   0,              SEN(clock_settime64),           "clock_settime64"       },
-[405] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
-[406] = { 2,   0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
-[407] = { 4,   0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
-[408] = { 2,   0,              SEN(timer_gettime64),           "timer_gettime64"       },
-[409] = { 4,   0,              SEN(timer_settime64),           "timer_settime64"       },
-[410] = { 2,   TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
-[411] = { 4,   TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
-[412] = { 4,   TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
-[413] = { 6,   TD,             SEN(pselect6_time64),           "pselect6_time64"       },
-[414] = { 5,   TD,             SEN(ppoll_time64),              "ppoll_time64"          },
-[416] = { 6,   0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
-[417] = { 5,   TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
-[418] = { 5,   TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
-[419] = { 5,   TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
-[420] = { 4,   TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
-[421] = { 4,   TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
-[422] = { 6,   0,              SEN(futex_time64),              "futex_time64"          },
-[423] = { 2,   0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common-32.h"
+#include "syscallent-common.h"
 
 #define SYS_socket_subcall     500
 #include "subcall32.h"
index 8e2a3dd95e99bd42715d355143ec7bbc2e223593..dcb00305c0660eff6258715444209bd97ff8dc4f 100644 (file)
 [399] = { 6,   0,              SEN(io_pgetevents_time32),      "io_pgetevents"         },
 [400] = { 4,   0,              SEN(rseq),                      "rseq"                  },
 /* [401 ... 402] - unused */
-[403] = { 2,   0,              SEN(clock_gettime64),           "clock_gettime64"       },
-[404] = { 2,   0,              SEN(clock_settime64),           "clock_settime64"       },
-[405] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
-[406] = { 2,   0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
-[407] = { 4,   0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
-[408] = { 2,   0,              SEN(timer_gettime64),           "timer_gettime64"       },
-[409] = { 4,   0,              SEN(timer_settime64),           "timer_settime64"       },
-[410] = { 2,   TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
-[411] = { 4,   TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
-[412] = { 4,   TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
-[413] = { 6,   TD,             SEN(pselect6_time64),           "pselect6_time64"       },
-[414] = { 5,   TD,             SEN(ppoll_time64),              "ppoll_time64"          },
-[416] = { 6,   0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
-[417] = { 5,   TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
-[418] = { 5,   TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
-[419] = { 5,   TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
-[420] = { 4,   TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
-[421] = { 4,   TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
-[422] = { 6,   0,              SEN(futex_time64),              "futex_time64"          },
-[423] = { 2,   0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common-32.h"
+#include "syscallent-common.h"
index 51a6ade035ce71cd46579433e4747264fd95de2d..ece2db3457de241fca76848e6d1a7240ef1c65ce 100644 (file)
@@ -1,3 +1,5 @@
+syscallent-common-32-stub.h
+syscallent-common-stub.h
 syscallent-n32-stub.h
 syscallent-n64-stub.h
 syscallent-o32-stub.h
index 0d21692e6809f59b672edb32d06110fde8ff8cf5..2ffba812c2d93837ff00925feb9a306bd6aaab9a 100755 (executable)
@@ -5,11 +5,11 @@
 #
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-srcdir="${0%/*}"
+srcdir="$1"; shift
 dstdir="$1"; shift
 
-for n in n32 n64 o32; do
+for n; do
        in="$srcdir/syscallent-$n.h"
        out="$dstdir/syscallent-$n-stub.h"
-       sed -r -n '/^#if/,/^#else/ {s/^([^{]*\{[^,]*,[^,]*,[[:space:]]*)[^,[:space:]]+,[[:space:]]*"([^"]+".*)/\1SEN(printargs), "'$n':\2/; s/^\[.*/&/p}' < "$in" > "$out"
+       sed -r -n '/^#if/,/^#else/ {s/^([^{]*\{[^,]*,[^,]*,[[:space:]]*)[^,[:space:]]+,[[:space:]]*"([^"]+".*)/\1SEN(printargs), SYSCALL_NAME_PREFIX "\2/; s/^\[.*/&/p}' < "$in" > "$out"
 done
index 98bf9824ff139a3aaf3d97935190a6f16130fe8b..143f8110555fc7d562439c8048dbaa96de540b6a 100644 (file)
 [BASE_NR + 330] = { 5, TD|TF|TSTA,     SEN(statx),                     "statx"                 },
 [BASE_NR + 331] = { 4, 0,              SEN(rseq),                      "rseq"                  },
 [BASE_NR + 332] = { 6, 0,              SEN(io_pgetevents_time32),      "io_pgetevents"         },
-/* [6333 ... 6402] - reserved to sync up with other architectures */
-[BASE_NR + 403] = { 2, 0,              SEN(clock_gettime64),           "clock_gettime64"       },
-[BASE_NR + 404] = { 2, 0,              SEN(clock_settime64),           "clock_settime64"       },
-[BASE_NR + 405] = { 2, 0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
-[BASE_NR + 406] = { 2, 0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
-[BASE_NR + 407] = { 4, 0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
-[BASE_NR + 408] = { 2, 0,              SEN(timer_gettime64),           "timer_gettime64"       },
-[BASE_NR + 409] = { 4, 0,              SEN(timer_settime64),           "timer_settime64"       },
-[BASE_NR + 410] = { 2, TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
-[BASE_NR + 411] = { 4, TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
-[BASE_NR + 412] = { 4, TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
-[BASE_NR + 413] = { 6, TD,             SEN(pselect6_time64),           "pselect6_time64"       },
-[BASE_NR + 414] = { 5, TD,             SEN(ppoll_time64),              "ppoll_time64"          },
-[BASE_NR + 416] = { 6, 0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
-[BASE_NR + 417] = { 5, TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
-[BASE_NR + 418] = { 5, TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
-[BASE_NR + 419] = { 5, TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
-[BASE_NR + 420] = { 4, TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
-[BASE_NR + 421] = { 4, TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
-[BASE_NR + 422] = { 6, 0,              SEN(futex_time64),              "futex_time64"          },
-[BASE_NR + 423] = { 2, 0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
-[BASE_NR + 424] = { 4, TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[BASE_NR + 425] = { 2, TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[BASE_NR + 426] = { 6, TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[BASE_NR + 427] = { 4, TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+# include "syscallent-common-32.h"
+# include "syscallent-common.h"
 
 # define SYS_socket_subcall      6500
 # include "subcall32.h"
 
 #else
 
+# define SYSCALL_NAME_PREFIX "n32:"
 # include "syscallent-n32-stub.h"
+# include "syscallent-common-32-stub.h"
+# include "syscallent-common-stub.h"
+# undef SYSCALL_NAME_PREFIX
 
 #endif
 #undef BASE_NR
index 96f90e8391aca9eb914f69b18dcade831bfbdeb9..74076823b40867e188ac9af5b71520747adfaee8 100644 (file)
 [BASE_NR + 326] = { 5, TD|TF|TSTA,     SEN(statx),                     "statx"                 },
 [BASE_NR + 327] = { 4, 0,              SEN(rseq),                      "rseq"                  },
 [BASE_NR + 328] = { 6, 0,              SEN(io_pgetevents_time64),      "io_pgetevents"         },
-/* [5329 ... 5423] - reserved to sync up with other architectures */
-[BASE_NR + 424] = { 4, TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[BASE_NR + 425] = { 2, TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[BASE_NR + 426] = { 6, TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[BASE_NR + 427] = { 4, TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+# include "syscallent-common.h"
 
 # define SYS_socket_subcall      5500
 # include "subcall64.h"
 
 #else
 
+# define SYSCALL_NAME_PREFIX "n64:"
 # include "syscallent-n64-stub.h"
+# include "syscallent-common-stub.h"
+# undef SYSCALL_NAME_PREFIX
 
 #endif
 #undef BASE_NR
index 6428e355a42c7373a8f7e42ef1f88dd5bf84c6eb..5a356fb8a590b3196261a60d496ed8b403d31a8f 100644 (file)
 [BASE_NR + 400] = { 4, TI,             SEN(msgsnd),                    "msgsnd"                },
 [BASE_NR + 401] = { 5, TI,             SEN(msgrcv),                    "msgrcv"                },
 [BASE_NR + 402] = { 3, TI,             SEN(msgctl),                    "msgctl"                },
-[BASE_NR + 403] = { 2, 0,              SEN(clock_gettime64),           "clock_gettime64"       },
-[BASE_NR + 404] = { 2, 0,              SEN(clock_settime64),           "clock_settime64"       },
-[BASE_NR + 405] = { 2, 0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
-[BASE_NR + 406] = { 2, 0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
-[BASE_NR + 407] = { 4, 0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
-[BASE_NR + 408] = { 2, 0,              SEN(timer_gettime64),           "timer_gettime64"       },
-[BASE_NR + 409] = { 4, 0,              SEN(timer_settime64),           "timer_settime64"       },
-[BASE_NR + 410] = { 2, TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
-[BASE_NR + 411] = { 4, TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
-[BASE_NR + 412] = { 4, TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
-[BASE_NR + 413] = { 6, TD,             SEN(pselect6_time64),           "pselect6_time64"       },
-[BASE_NR + 414] = { 5, TD,             SEN(ppoll_time64),              "ppoll_time64"          },
-[BASE_NR + 416] = { 6, 0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
-[BASE_NR + 417] = { 5, TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
-[BASE_NR + 418] = { 5, TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
-[BASE_NR + 419] = { 5, TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
-[BASE_NR + 420] = { 4, TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
-[BASE_NR + 421] = { 4, TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
-[BASE_NR + 422] = { 6, 0,              SEN(futex_time64),              "futex_time64"          },
-[BASE_NR + 423] = { 2, 0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
-[BASE_NR + 424] = { 4, TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[BASE_NR + 425] = { 2, TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[BASE_NR + 426] = { 6, TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[BASE_NR + 427] = { 4, TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+# include "syscallent-common-32.h"
+# include "syscallent-common.h"
 
 # define SYS_socket_subcall      4500
 # include "subcall32.h"
 
 #else
 
+# define SYSCALL_NAME_PREFIX "o32:"
 # include "syscallent-o32-stub.h"
+# include "syscallent-common-32-stub.h"
+# include "syscallent-common-stub.h"
+# undef SYSCALL_NAME_PREFIX
 
 #endif
 #undef BASE_NR
index 4e184646b7b4fe9a7f205de168f9ecb8fd5a8045..f4e11861dd3c18186919c21897287c4301211309 100644 (file)
 [400] = { 4,   TI,             SEN(msgsnd),                    "msgsnd"                },
 [401] = { 5,   TI,             SEN(msgrcv),                    "msgrcv"                },
 [402] = { 3,   TI,             SEN(msgctl),                    "msgctl"                },
-[403] = { 2,   0,              SEN(clock_gettime64),           "clock_gettime64"       },
-[404] = { 2,   0,              SEN(clock_settime64),           "clock_settime64"       },
-[405] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
-[406] = { 2,   0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
-[407] = { 4,   0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
-[408] = { 2,   0,              SEN(timer_gettime64),           "timer_gettime64"       },
-[409] = { 4,   0,              SEN(timer_settime64),           "timer_settime64"       },
-[410] = { 2,   TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
-[411] = { 4,   TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
-[412] = { 4,   TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
-[413] = { 6,   TD,             SEN(pselect6_time64),           "pselect6_time64"       },
-[414] = { 5,   TD,             SEN(ppoll_time64),              "ppoll_time64"          },
-[416] = { 6,   0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
-[417] = { 5,   TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
-[418] = { 5,   TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
-[419] = { 5,   TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
-[420] = { 4,   TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
-[421] = { 4,   TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
-[422] = { 6,   0,              SEN(futex_time64),              "futex_time64"          },
-[423] = { 2,   0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common-32.h"
+#include "syscallent-common.h"
 
 #define SYS_socket_subcall     500
 #include "subcall32.h"
index 47a59990015a9ca1ad6faa77a60c1a1277213214..edf56388b0ac5f27586e5173a12eafe80eb8d4bc 100644 (file)
 [401] = { 5,   TI,             SEN(msgrcv),                    "msgrcv"                },
 [402] = { 3,   TI,             SEN(msgctl),                    "msgctl"                },
 /* [403 ... 423] - reserved to sync up with other architectures */
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common.h"
 
 #define SYS_socket_subcall     500
 #include "subcall64.h"
index 24cd190b70e154c1dfd66819690237065e4cf8f5..e83dc8639a1819261300253ec9cb3e7ac829d722 100644 (file)
 [400] = { 4,   TI,             SEN(msgsnd),                    "msgsnd"                },
 [401] = { 5,   TI,             SEN(msgrcv),                    "msgrcv"                },
 [402] = { 3,   TI,             SEN(msgctl),                    "msgctl"                },
-[403] = { 2,   0,              SEN(clock_gettime64),           "clock_gettime64"       },
-[404] = { 2,   0,              SEN(clock_settime64),           "clock_settime64"       },
-[405] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
-[406] = { 2,   0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
-[407] = { 4,   0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
-[408] = { 2,   0,              SEN(timer_gettime64),           "timer_gettime64"       },
-[409] = { 4,   0,              SEN(timer_settime64),           "timer_settime64"       },
-[410] = { 2,   TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
-[411] = { 4,   TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
-[412] = { 4,   TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
-[413] = { 6,   TD,             SEN(pselect6_time64),           "pselect6_time64"       },
-[414] = { 5,   TD,             SEN(ppoll_time64),              "ppoll_time64"          },
-[416] = { 6,   0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
-[417] = { 5,   TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
-[418] = { 5,   TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
-[419] = { 5,   TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
-[420] = { 4,   TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
-[421] = { 4,   TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
-[422] = { 6,   0,              SEN(futex_time64),              "futex_time64"          },
-[423] = { 2,   0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common-32.h"
+#include "syscallent-common.h"
 
 #define SYS_socket_subcall     500
 #include "subcall32.h"
index 5b61cdc28fe0fb089fdbfda0df452d31eef7d28a..aed5f72a4ab4e7025a32c89f9c04f3727164fa09 100644 (file)
 [401] = { 5,   TI,             SEN(msgrcv),                    "msgrcv"                },
 [402] = { 3,   TI,             SEN(msgctl),                    "msgctl"                },
 /* [403 ... 423] - reserved to sync up with other architectures */
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common.h"
 
 #define SYS_socket_subcall     500
 #include "subcall64.h"
index 44cc9d90c67d7dfa4070a173022cc9ab2db507f4..8a5edd3ddabe8cf93f8aec9ba84c2d77cd83af01 100644 (file)
 [400] = { 4,   TI,             SEN(msgsnd),                    "msgsnd"                },
 [401] = { 5,   TI,             SEN(msgrcv),                    "msgrcv"                },
 [402] = { 3,   TI,             SEN(msgctl),                    "msgctl"                },
-[403] = { 2,   0,              SEN(clock_gettime64),           "clock_gettime64"       },
-[404] = { 2,   0,              SEN(clock_settime64),           "clock_settime64"       },
-[405] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
-[406] = { 2,   0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
-[407] = { 4,   0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
-[408] = { 2,   0,              SEN(timer_gettime64),           "timer_gettime64"       },
-[409] = { 4,   0,              SEN(timer_settime64),           "timer_settime64"       },
-[410] = { 2,   TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
-[411] = { 4,   TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
-[412] = { 4,   TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
-[413] = { 6,   TD,             SEN(pselect6_time64),           "pselect6_time64"       },
-[414] = { 5,   TD,             SEN(ppoll_time64),              "ppoll_time64"          },
-[416] = { 6,   0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
-[417] = { 5,   TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
-[418] = { 5,   TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
-[419] = { 5,   TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
-[420] = { 4,   TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
-[421] = { 4,   TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
-[422] = { 6,   0,              SEN(futex_time64),              "futex_time64"          },
-[423] = { 2,   0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common-32.h"
+#include "syscallent-common.h"
 
 #define SYS_socket_subcall     500
 #include "subcall32.h"
index a21b0c47d63cdf54cde08aff03b7e84da35679ba..9f2d6e3790c2a6d1e3d0f079c9b731160be820de 100644 (file)
 [392] = { 6,   TD,             SEN(preadv2),                   "preadv2"               },
 [393] = { 6,   TD,             SEN(pwritev2),                  "pwritev2"              },
 /* [403 ... 423] - reserved to sync up with other architectures */
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common.h"
 
 #define SYS_socket_subcall     500
 #include "subcall64.h"
index 706c15e6e38706d8394e2518c117d6ce03c4a50c..8a49b6867a3483ca64023cad953a3ae9fc9fce72 100644 (file)
 [400] = { 4,   TI,             SEN(msgsnd),                    "msgsnd"                },
 [401] = { 5,   TI,             SEN(msgrcv),                    "msgrcv"                },
 [402] = { 3,   TI,             SEN(msgctl),                    "msgctl"                },
-[403] = { 2,   0,              SEN(clock_gettime64),           "clock_gettime64"       },
-[404] = { 2,   0,              SEN(clock_settime64),           "clock_settime64"       },
-[405] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
-[406] = { 2,   0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
-[407] = { 4,   0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
-[408] = { 2,   0,              SEN(timer_gettime64),           "timer_gettime64"       },
-[409] = { 4,   0,              SEN(timer_settime64),           "timer_settime64"       },
-[410] = { 2,   TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
-[411] = { 4,   TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
-[412] = { 4,   TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
-[413] = { 6,   TD,             SEN(pselect6_time64),           "pselect6_time64"       },
-[414] = { 5,   TD,             SEN(ppoll_time64),              "ppoll_time64"          },
-[416] = { 6,   0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
-[417] = { 5,   TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
-[418] = { 5,   TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
-[419] = { 5,   TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
-[420] = { 4,   TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
-[421] = { 4,   TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
-[422] = { 6,   0,              SEN(futex_time64),              "futex_time64"          },
-[423] = { 2,   0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common-32.h"
+#include "syscallent-common.h"
 
 #define SYS_socket_subcall     500
 #include "subcall32.h"
index 1023b07df292b45de2f9c9c3e09472a01d40533c..fe8e75e9b27b84fd379af442fecf3d345ab63f01 100644 (file)
 [401] = { 5,   TI,             SEN(msgrcv),                    "msgrcv"                },
 [402] = { 3,   TI,             SEN(msgctl),                    "msgctl"                },
 /* [403 ... 423] - reserved to sync up with other architectures */
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common.h"
 
 #define SYS_socket_subcall     500
 #include "subcall64.h"
diff --git a/linux/syscallent-common-32.h b/linux/syscallent-common-32.h
new file mode 100644 (file)
index 0000000..57d6004
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2019 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
+#ifndef BASE_NR
+# define BASE_NR 0
+#endif
+[BASE_NR + 403] = { 2, 0,              SEN(clock_gettime64),           "clock_gettime64"       },
+[BASE_NR + 404] = { 2, 0,              SEN(clock_settime64),           "clock_settime64"       },
+[BASE_NR + 405] = { 2, 0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
+[BASE_NR + 406] = { 2, 0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
+[BASE_NR + 407] = { 4, 0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
+[BASE_NR + 408] = { 2, 0,              SEN(timer_gettime64),           "timer_gettime64"       },
+[BASE_NR + 409] = { 4, 0,              SEN(timer_settime64),           "timer_settime64"       },
+[BASE_NR + 410] = { 2, TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
+[BASE_NR + 411] = { 4, TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
+[BASE_NR + 412] = { 4, TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
+[BASE_NR + 413] = { 6, TD,             SEN(pselect6_time64),           "pselect6_time64"       },
+[BASE_NR + 414] = { 5, TD,             SEN(ppoll_time64),              "ppoll_time64"          },
+[BASE_NR + 416] = { 6, 0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
+[BASE_NR + 417] = { 5, TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
+[BASE_NR + 418] = { 5, TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
+[BASE_NR + 419] = { 5, TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
+[BASE_NR + 420] = { 4, TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
+[BASE_NR + 421] = { 4, TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
+[BASE_NR + 422] = { 6, 0,              SEN(futex_time64),              "futex_time64"          },
+[BASE_NR + 423] = { 2, 0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
diff --git a/linux/syscallent-common.h b/linux/syscallent-common.h
new file mode 100644 (file)
index 0000000..70116c2
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * Copyright (c) 2019 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
+#ifndef BASE_NR
+# define BASE_NR 0
+#endif
+[BASE_NR + 424] = { 4, TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
+[BASE_NR + 425] = { 2, TD,             SEN(io_uring_setup),            "io_uring_setup"        },
+[BASE_NR + 426] = { 6, TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
+[BASE_NR + 427] = { 4, TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
index 76d4676eaa7d76a9850e989e44f13eb28a1e53aa..530e7e931e12670f1ad8015279ce6e1aef87887a 100644 (file)
 [333] = { 6,   0,              SEN(io_pgetevents_time64),      "io_pgetevents"         },
 [334] = { 4,   0,              SEN(rseq),                      "rseq"                  },
 /* [335 ... 423] - reserved to sync up with other architectures */
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
+#include "syscallent-common.h"
 /*
  * x32-specific system call numbers start at 512 to avoid cache impact
  * for native 64-bit operation.
 [545] = { 5,   CST|TD|TF|TP|SE|SI,     SEN(execveat),          "execveat"              },
 [546] = { 5,   TD,             SEN(preadv2),                   "preadv2"               },
 [547] = { 5,   TD,             SEN(pwritev2),                  "pwritev2"              },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
index 03bda0d6ccadf78d2357d9f417846959f86734ae..40becd821bad31a1ca9f3ea4d921dc79b26889d2 100644 (file)
 [333] = { 6,   0,              SEN(io_pgetevents_time64),      "io_pgetevents"         },
 [334] = { 4,   0,              SEN(rseq),                      "rseq"                  },
 /* [335 ... 423] - reserved to sync up with other architectures */
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common.h"
index 8cb6a46c76054249b3f76334ff85e2dd87bb06ac..dd2795d376c6eb64a42a51f7a2fb11dacdacc63d 100644 (file)
 [351] = { 5,   TD|TF|TSTA,     SEN(statx),                     "statx"                 },
 [352] = { 4,   0,              SEN(rseq),                      "rseq"                  },
 /* [353 ... 402] - reserved to sync up with other architectures */
-[403] = { 2,   0,              SEN(clock_gettime64),           "clock_gettime64"       },
-[404] = { 2,   0,              SEN(clock_settime64),           "clock_settime64"       },
-[405] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime64"       },
-[406] = { 2,   0,              SEN(clock_getres_time64),       "clock_getres_time64"   },
-[407] = { 4,   0,              SEN(clock_nanosleep_time64),    "clock_nanosleep_time64"},
-[408] = { 2,   0,              SEN(timer_gettime64),           "timer_gettime64"       },
-[409] = { 4,   0,              SEN(timer_settime64),           "timer_settime64"       },
-[410] = { 2,   TD,             SEN(timerfd_gettime64),         "timerfd_gettime64"     },
-[411] = { 4,   TD,             SEN(timerfd_settime64),         "timerfd_settime64"     },
-[412] = { 4,   TD|TF,          SEN(utimensat_time64),          "utimensat_time64"      },
-[413] = { 6,   TD,             SEN(pselect6_time64),           "pselect6_time64"       },
-[414] = { 5,   TD,             SEN(ppoll_time64),              "ppoll_time64"          },
-[416] = { 6,   0,              SEN(io_pgetevents_time64),      "io_pgetevents_time64"  },
-[417] = { 5,   TN,             SEN(recvmmsg_time64),           "recvmmsg_time64"       },
-[418] = { 5,   TD,             SEN(mq_timedsend_time64),       "mq_timedsend_time64"   },
-[419] = { 5,   TD,             SEN(mq_timedreceive_time64),    "mq_timedreceive_time64"},
-[420] = { 4,   TI,             SEN(semtimedop_time64),         "semtimedop_time64"     },
-[421] = { 4,   TS,             SEN(rt_sigtimedwait_time64),    "rt_sigtimedwait_time64"},
-[422] = { 6,   0,              SEN(futex_time64),              "futex_time64"          },
-[423] = { 2,   0,              SEN(sched_rr_get_interval_time64),      "sched_rr_get_interval_time64"  },
-[424] = { 4,   TD|TS,          SEN(pidfd_send_signal),         "pidfd_send_signal"     },
-[425] = { 2,   TD,             SEN(io_uring_setup),            "io_uring_setup"        },
-[426] = { 6,   TD|TS,          SEN(io_uring_enter),            "io_uring_enter"        },
-[427] = { 4,   TD|TM,          SEN(io_uring_register),         "io_uring_register"     },
+#include "syscallent-common-32.h"
+#include "syscallent-common.h"