linux(4): Regen for pselect6_time64 system call.

MFC after:	2 weeks
This commit is contained in:
Dmitry Chagin 2021-06-10 15:04:37 +03:00
parent f6d075ecd7
commit 981a60f112
6 changed files with 80 additions and 6 deletions

View File

@ -1558,7 +1558,12 @@ struct linux_utimensat_time64_args {
char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)];
};
struct linux_pselect6_time64_args {
register_t dummy;
char nfds_l_[PADL_(l_int)]; l_int nfds; char nfds_r_[PADR_(l_int)];
char readfds_l_[PADL_(l_fd_set *)]; l_fd_set * readfds; char readfds_r_[PADR_(l_fd_set *)];
char writefds_l_[PADL_(l_fd_set *)]; l_fd_set * writefds; char writefds_r_[PADR_(l_fd_set *)];
char exceptfds_l_[PADL_(l_fd_set *)]; l_fd_set * exceptfds; char exceptfds_r_[PADR_(l_fd_set *)];
char tsp_l_[PADL_(struct l_timespec64 *)]; struct l_timespec64 * tsp; char tsp_r_[PADR_(struct l_timespec64 *)];
char sig_l_[PADL_(l_uintptr_t *)]; l_uintptr_t * sig; char sig_r_[PADR_(l_uintptr_t *)];
};
struct linux_ppoll_time64_args {
register_t dummy;

View File

@ -430,7 +430,7 @@ struct sysent linux32_sysent[] = {
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_timerfd_gettime64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 410 = linux_timerfd_gettime64 */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_timerfd_settime64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 411 = linux_timerfd_settime64 */
{ .sy_narg = AS(linux_utimensat_time64_args), .sy_call = (sy_call_t *)linux_utimensat_time64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 412 = linux_utimensat_time64 */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_pselect6_time64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 413 = linux_pselect6_time64 */
{ .sy_narg = AS(linux_pselect6_time64_args), .sy_call = (sy_call_t *)linux_pselect6_time64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 413 = linux_pselect6_time64 */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_ppoll_time64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 414 = linux_ppoll_time64 */
{ .sy_narg = 0, .sy_call = (sy_call_t *)nosys, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_ABSENT }, /* 415 = nosys */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_io_pgetevents_time64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 416 = linux_io_pgetevents_time64 */

View File

@ -3031,7 +3031,14 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
}
/* linux_pselect6_time64 */
case 413: {
*n_args = 0;
struct linux_pselect6_time64_args *p = params;
iarg[0] = p->nfds; /* l_int */
uarg[1] = (intptr_t)p->readfds; /* l_fd_set * */
uarg[2] = (intptr_t)p->writefds; /* l_fd_set * */
uarg[3] = (intptr_t)p->exceptfds; /* l_fd_set * */
uarg[4] = (intptr_t)p->tsp; /* struct l_timespec64 * */
uarg[5] = (intptr_t)p->sig; /* l_uintptr_t * */
*n_args = 6;
break;
}
/* linux_ppoll_time64 */
@ -8109,6 +8116,28 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* linux_pselect6_time64 */
case 413:
switch (ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "userland l_fd_set *";
break;
case 2:
p = "userland l_fd_set *";
break;
case 3:
p = "userland l_fd_set *";
break;
case 4:
p = "userland struct l_timespec64 *";
break;
case 5:
p = "userland l_uintptr_t *";
break;
default:
break;
};
break;
/* linux_ppoll_time64 */
case 414:
@ -9922,6 +9951,9 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* linux_pselect6_time64 */
case 413:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_ppoll_time64 */
case 414:
/* linux_io_pgetevents_time64 */

View File

@ -1551,7 +1551,12 @@ struct linux_utimensat_time64_args {
char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)];
};
struct linux_pselect6_time64_args {
register_t dummy;
char nfds_l_[PADL_(l_int)]; l_int nfds; char nfds_r_[PADR_(l_int)];
char readfds_l_[PADL_(l_fd_set *)]; l_fd_set * readfds; char readfds_r_[PADR_(l_fd_set *)];
char writefds_l_[PADL_(l_fd_set *)]; l_fd_set * writefds; char writefds_r_[PADR_(l_fd_set *)];
char exceptfds_l_[PADL_(l_fd_set *)]; l_fd_set * exceptfds; char exceptfds_r_[PADR_(l_fd_set *)];
char tsp_l_[PADL_(struct l_timespec64 *)]; struct l_timespec64 * tsp; char tsp_r_[PADR_(struct l_timespec64 *)];
char sig_l_[PADL_(l_uintptr_t *)]; l_uintptr_t * sig; char sig_r_[PADR_(l_uintptr_t *)];
};
struct linux_ppoll_time64_args {
register_t dummy;

View File

@ -430,7 +430,7 @@ struct sysent linux_sysent[] = {
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_timerfd_gettime64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 410 = linux_timerfd_gettime64 */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_timerfd_settime64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 411 = linux_timerfd_settime64 */
{ .sy_narg = AS(linux_utimensat_time64_args), .sy_call = (sy_call_t *)linux_utimensat_time64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 412 = linux_utimensat_time64 */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_pselect6_time64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 413 = linux_pselect6_time64 */
{ .sy_narg = AS(linux_pselect6_time64_args), .sy_call = (sy_call_t *)linux_pselect6_time64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 413 = linux_pselect6_time64 */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_ppoll_time64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 414 = linux_ppoll_time64 */
{ .sy_narg = 0, .sy_call = (sy_call_t *)nosys, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_ABSENT }, /* 415 = nosys */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_io_pgetevents_time64, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 416 = linux_io_pgetevents_time64 */

View File

@ -3070,7 +3070,14 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
}
/* linux_pselect6_time64 */
case 413: {
*n_args = 0;
struct linux_pselect6_time64_args *p = params;
iarg[0] = p->nfds; /* l_int */
uarg[1] = (intptr_t)p->readfds; /* l_fd_set * */
uarg[2] = (intptr_t)p->writefds; /* l_fd_set * */
uarg[3] = (intptr_t)p->exceptfds; /* l_fd_set * */
uarg[4] = (intptr_t)p->tsp; /* struct l_timespec64 * */
uarg[5] = (intptr_t)p->sig; /* l_uintptr_t * */
*n_args = 6;
break;
}
/* linux_ppoll_time64 */
@ -8186,6 +8193,28 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* linux_pselect6_time64 */
case 413:
switch (ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "userland l_fd_set *";
break;
case 2:
p = "userland l_fd_set *";
break;
case 3:
p = "userland l_fd_set *";
break;
case 4:
p = "userland struct l_timespec64 *";
break;
case 5:
p = "userland l_uintptr_t *";
break;
default:
break;
};
break;
/* linux_ppoll_time64 */
case 414:
@ -10028,6 +10057,9 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* linux_pselect6_time64 */
case 413:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_ppoll_time64 */
case 414:
/* linux_io_pgetevents_time64 */