linux(4): Regen for ioprio syscalls

MFC after:		1 month
This commit is contained in:
Dmitry Chagin 2023-08-04 16:03:57 +03:00
parent 1c83154e49
commit b5c0b9555d
12 changed files with 188 additions and 32 deletions

View File

@ -893,10 +893,13 @@ struct linux_keyctl_args {
syscallarg_t dummy;
};
struct linux_ioprio_set_args {
syscallarg_t dummy;
char which_l_[PADL_(l_int)]; l_int which; char which_r_[PADR_(l_int)];
char who_l_[PADL_(l_int)]; l_int who; char who_r_[PADR_(l_int)];
char ioprio_l_[PADL_(l_int)]; l_int ioprio; char ioprio_r_[PADR_(l_int)];
};
struct linux_ioprio_get_args {
syscallarg_t dummy;
char which_l_[PADL_(l_int)]; l_int which; char which_r_[PADR_(l_int)];
char who_l_[PADL_(l_int)]; l_int who; char who_r_[PADR_(l_int)];
};
struct linux_inotify_init_args {
syscallarg_t dummy;
@ -1884,8 +1887,8 @@ int linux_mount_setattr(struct thread *, struct linux_mount_setattr_args *);
#define LINUX_SYS_AUE_linux_add_key AUE_NULL
#define LINUX_SYS_AUE_linux_request_key AUE_NULL
#define LINUX_SYS_AUE_linux_keyctl AUE_NULL
#define LINUX_SYS_AUE_linux_ioprio_set AUE_NULL
#define LINUX_SYS_AUE_linux_ioprio_get AUE_NULL
#define LINUX_SYS_AUE_linux_ioprio_set AUE_SETPRIORITY
#define LINUX_SYS_AUE_linux_ioprio_get AUE_GETPRIORITY
#define LINUX_SYS_AUE_linux_inotify_init AUE_NULL
#define LINUX_SYS_AUE_linux_inotify_add_watch AUE_NULL
#define LINUX_SYS_AUE_linux_inotify_rm_watch AUE_NULL

View File

@ -267,8 +267,8 @@ struct sysent linux_sysent[] = {
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_add_key, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 248 = linux_add_key */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_request_key, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 249 = linux_request_key */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_keyctl, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 250 = linux_keyctl */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_ioprio_set, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 251 = linux_ioprio_set */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_ioprio_get, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 252 = linux_ioprio_get */
{ .sy_narg = AS(linux_ioprio_set_args), .sy_call = (sy_call_t *)linux_ioprio_set, .sy_auevent = AUE_SETPRIORITY, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 251 = linux_ioprio_set */
{ .sy_narg = AS(linux_ioprio_get_args), .sy_call = (sy_call_t *)linux_ioprio_get, .sy_auevent = AUE_GETPRIORITY, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 252 = linux_ioprio_get */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_inotify_init, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 253 = linux_inotify_init */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_inotify_add_watch, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 254 = linux_inotify_add_watch */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_inotify_rm_watch, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 255 = linux_inotify_rm_watch */

View File

@ -1896,12 +1896,19 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
}
/* linux_ioprio_set */
case 251: {
*n_args = 0;
struct linux_ioprio_set_args *p = params;
iarg[a++] = p->which; /* l_int */
iarg[a++] = p->who; /* l_int */
iarg[a++] = p->ioprio; /* l_int */
*n_args = 3;
break;
}
/* linux_ioprio_get */
case 252: {
*n_args = 0;
struct linux_ioprio_get_args *p = params;
iarg[a++] = p->which; /* l_int */
iarg[a++] = p->who; /* l_int */
*n_args = 2;
break;
}
/* linux_inotify_init */
@ -5767,9 +5774,32 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* linux_ioprio_set */
case 251:
switch (ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "l_int";
break;
case 2:
p = "l_int";
break;
default:
break;
};
break;
/* linux_ioprio_get */
case 252:
switch (ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "l_int";
break;
default:
break;
};
break;
/* linux_inotify_init */
case 253:
@ -8225,8 +8255,14 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 250:
/* linux_ioprio_set */
case 251:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_ioprio_get */
case 252:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_inotify_init */
case 253:
/* linux_inotify_add_watch */

View File

@ -967,10 +967,13 @@ struct linux_keyctl_args {
syscallarg_t dummy;
};
struct linux_ioprio_set_args {
syscallarg_t dummy;
char which_l_[PADL_(l_int)]; l_int which; char which_r_[PADR_(l_int)];
char who_l_[PADL_(l_int)]; l_int who; char who_r_[PADR_(l_int)];
char ioprio_l_[PADL_(l_int)]; l_int ioprio; char ioprio_r_[PADR_(l_int)];
};
struct linux_ioprio_get_args {
syscallarg_t dummy;
char which_l_[PADL_(l_int)]; l_int which; char which_r_[PADR_(l_int)];
char who_l_[PADL_(l_int)]; l_int who; char who_r_[PADR_(l_int)];
};
struct linux_inotify_init_args {
syscallarg_t dummy;
@ -2278,8 +2281,8 @@ int linux_mount_setattr(struct thread *, struct linux_mount_setattr_args *);
#define LINUX32_SYS_AUE_linux_add_key AUE_NULL
#define LINUX32_SYS_AUE_linux_request_key AUE_NULL
#define LINUX32_SYS_AUE_linux_keyctl AUE_NULL
#define LINUX32_SYS_AUE_linux_ioprio_set AUE_NULL
#define LINUX32_SYS_AUE_linux_ioprio_get AUE_NULL
#define LINUX32_SYS_AUE_linux_ioprio_set AUE_SETPRIORITY
#define LINUX32_SYS_AUE_linux_ioprio_get AUE_GETPRIORITY
#define LINUX32_SYS_AUE_linux_inotify_init AUE_NULL
#define LINUX32_SYS_AUE_linux_inotify_add_watch AUE_NULL
#define LINUX32_SYS_AUE_linux_inotify_rm_watch AUE_NULL

View File

@ -305,8 +305,8 @@ struct sysent linux32_sysent[] = {
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_add_key, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 286 = linux_add_key */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_request_key, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 287 = linux_request_key */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_keyctl, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 288 = linux_keyctl */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_ioprio_set, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 289 = linux_ioprio_set */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_ioprio_get, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 290 = linux_ioprio_get */
{ .sy_narg = AS(linux_ioprio_set_args), .sy_call = (sy_call_t *)linux_ioprio_set, .sy_auevent = AUE_SETPRIORITY, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 289 = linux_ioprio_set */
{ .sy_narg = AS(linux_ioprio_get_args), .sy_call = (sy_call_t *)linux_ioprio_get, .sy_auevent = AUE_GETPRIORITY, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 290 = linux_ioprio_get */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_inotify_init, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 291 = linux_inotify_init */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_inotify_add_watch, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 292 = linux_inotify_add_watch */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_inotify_rm_watch, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 293 = linux_inotify_rm_watch */

View File

@ -2014,12 +2014,19 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
}
/* linux_ioprio_set */
case 289: {
*n_args = 0;
struct linux_ioprio_set_args *p = params;
iarg[a++] = p->which; /* l_int */
iarg[a++] = p->who; /* l_int */
iarg[a++] = p->ioprio; /* l_int */
*n_args = 3;
break;
}
/* linux_ioprio_get */
case 290: {
*n_args = 0;
struct linux_ioprio_get_args *p = params;
iarg[a++] = p->which; /* l_int */
iarg[a++] = p->who; /* l_int */
*n_args = 2;
break;
}
/* linux_inotify_init */
@ -6448,9 +6455,32 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* linux_ioprio_set */
case 289:
switch (ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "l_int";
break;
case 2:
p = "l_int";
break;
default:
break;
};
break;
/* linux_ioprio_get */
case 290:
switch (ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "l_int";
break;
default:
break;
};
break;
/* linux_inotify_init */
case 291:
@ -9689,8 +9719,14 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 288:
/* linux_ioprio_set */
case 289:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_ioprio_get */
case 290:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_inotify_init */
case 291:
/* linux_inotify_add_watch */

View File

@ -153,10 +153,13 @@ struct linux_ioctl_args {
char arg_l_[PADL_(l_ulong)]; l_ulong arg; char arg_r_[PADR_(l_ulong)];
};
struct linux_ioprio_set_args {
syscallarg_t dummy;
char which_l_[PADL_(l_int)]; l_int which; char which_r_[PADR_(l_int)];
char who_l_[PADL_(l_int)]; l_int who; char who_r_[PADR_(l_int)];
char ioprio_l_[PADL_(l_int)]; l_int ioprio; char ioprio_r_[PADR_(l_int)];
};
struct linux_ioprio_get_args {
syscallarg_t dummy;
char which_l_[PADL_(l_int)]; l_int which; char which_r_[PADR_(l_int)];
char who_l_[PADL_(l_int)]; l_int who; char who_r_[PADR_(l_int)];
};
struct linux_mknodat_args {
char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)];
@ -1475,8 +1478,8 @@ int linux_mount_setattr(struct thread *, struct linux_mount_setattr_args *);
#define LINUX_SYS_AUE_linux_inotify_add_watch AUE_NULL
#define LINUX_SYS_AUE_linux_inotify_rm_watch AUE_NULL
#define LINUX_SYS_AUE_linux_ioctl AUE_IOCTL
#define LINUX_SYS_AUE_linux_ioprio_set AUE_NULL
#define LINUX_SYS_AUE_linux_ioprio_get AUE_NULL
#define LINUX_SYS_AUE_linux_ioprio_set AUE_SETPRIORITY
#define LINUX_SYS_AUE_linux_ioprio_get AUE_GETPRIORITY
#define LINUX_SYS_AUE_linux_mknodat AUE_MKNODAT
#define LINUX_SYS_AUE_linux_mkdirat AUE_MKDIRAT
#define LINUX_SYS_AUE_linux_unlinkat AUE_UNLINKAT

View File

@ -46,8 +46,8 @@ struct sysent linux_sysent[] = {
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_inotify_add_watch, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 27 = linux_inotify_add_watch */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_inotify_rm_watch, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 28 = linux_inotify_rm_watch */
{ .sy_narg = AS(linux_ioctl_args), .sy_call = (sy_call_t *)linux_ioctl, .sy_auevent = AUE_IOCTL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 29 = linux_ioctl */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_ioprio_set, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 30 = linux_ioprio_set */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_ioprio_get, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 31 = linux_ioprio_get */
{ .sy_narg = AS(linux_ioprio_set_args), .sy_call = (sy_call_t *)linux_ioprio_set, .sy_auevent = AUE_SETPRIORITY, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 30 = linux_ioprio_set */
{ .sy_narg = AS(linux_ioprio_get_args), .sy_call = (sy_call_t *)linux_ioprio_get, .sy_auevent = AUE_GETPRIORITY, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 31 = linux_ioprio_get */
{ .sy_narg = AS(flock_args), .sy_call = (sy_call_t *)sys_flock, .sy_auevent = AUE_FLOCK, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 32 = flock */
{ .sy_narg = AS(linux_mknodat_args), .sy_call = (sy_call_t *)linux_mknodat, .sy_auevent = AUE_MKNODAT, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 33 = linux_mknodat */
{ .sy_narg = AS(linux_mkdirat_args), .sy_call = (sy_call_t *)linux_mkdirat, .sy_auevent = AUE_MKDIRAT, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 34 = linux_mkdirat */

View File

@ -229,12 +229,19 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
}
/* linux_ioprio_set */
case 30: {
*n_args = 0;
struct linux_ioprio_set_args *p = params;
iarg[a++] = p->which; /* l_int */
iarg[a++] = p->who; /* l_int */
iarg[a++] = p->ioprio; /* l_int */
*n_args = 3;
break;
}
/* linux_ioprio_get */
case 31: {
*n_args = 0;
struct linux_ioprio_get_args *p = params;
iarg[a++] = p->which; /* l_int */
iarg[a++] = p->who; /* l_int */
*n_args = 2;
break;
}
/* flock */
@ -2746,9 +2753,32 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* linux_ioprio_set */
case 30:
switch (ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "l_int";
break;
case 2:
p = "l_int";
break;
default:
break;
};
break;
/* linux_ioprio_get */
case 31:
switch (ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "l_int";
break;
default:
break;
};
break;
/* flock */
case 32:
@ -6356,8 +6386,14 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* linux_ioprio_set */
case 30:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_ioprio_get */
case 31:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* flock */
case 32:
if (ndx == 0 || ndx == 1)

View File

@ -960,10 +960,13 @@ struct linux_keyctl_args {
syscallarg_t dummy;
};
struct linux_ioprio_set_args {
syscallarg_t dummy;
char which_l_[PADL_(l_int)]; l_int which; char which_r_[PADR_(l_int)];
char who_l_[PADL_(l_int)]; l_int who; char who_r_[PADR_(l_int)];
char ioprio_l_[PADL_(l_int)]; l_int ioprio; char ioprio_r_[PADR_(l_int)];
};
struct linux_ioprio_get_args {
syscallarg_t dummy;
char which_l_[PADL_(l_int)]; l_int which; char which_r_[PADR_(l_int)];
char who_l_[PADL_(l_int)]; l_int who; char who_r_[PADR_(l_int)];
};
struct linux_inotify_init_args {
syscallarg_t dummy;
@ -2269,8 +2272,8 @@ int linux_mount_setattr(struct thread *, struct linux_mount_setattr_args *);
#define LINUX_SYS_AUE_linux_add_key AUE_NULL
#define LINUX_SYS_AUE_linux_request_key AUE_NULL
#define LINUX_SYS_AUE_linux_keyctl AUE_NULL
#define LINUX_SYS_AUE_linux_ioprio_set AUE_NULL
#define LINUX_SYS_AUE_linux_ioprio_get AUE_NULL
#define LINUX_SYS_AUE_linux_ioprio_set AUE_SETPRIORITY
#define LINUX_SYS_AUE_linux_ioprio_get AUE_GETPRIORITY
#define LINUX_SYS_AUE_linux_inotify_init AUE_NULL
#define LINUX_SYS_AUE_linux_inotify_add_watch AUE_NULL
#define LINUX_SYS_AUE_linux_inotify_rm_watch AUE_NULL

View File

@ -305,8 +305,8 @@ struct sysent linux_sysent[] = {
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_add_key, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 286 = linux_add_key */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_request_key, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 287 = linux_request_key */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_keyctl, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 288 = linux_keyctl */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_ioprio_set, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 289 = linux_ioprio_set */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_ioprio_get, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 290 = linux_ioprio_get */
{ .sy_narg = AS(linux_ioprio_set_args), .sy_call = (sy_call_t *)linux_ioprio_set, .sy_auevent = AUE_SETPRIORITY, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 289 = linux_ioprio_set */
{ .sy_narg = AS(linux_ioprio_get_args), .sy_call = (sy_call_t *)linux_ioprio_get, .sy_auevent = AUE_GETPRIORITY, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 290 = linux_ioprio_get */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_inotify_init, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 291 = linux_inotify_init */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_inotify_add_watch, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 292 = linux_inotify_add_watch */
{ .sy_narg = 0, .sy_call = (sy_call_t *)linux_inotify_rm_watch, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 293 = linux_inotify_rm_watch */

View File

@ -2049,12 +2049,19 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
}
/* linux_ioprio_set */
case 289: {
*n_args = 0;
struct linux_ioprio_set_args *p = params;
iarg[a++] = p->which; /* l_int */
iarg[a++] = p->who; /* l_int */
iarg[a++] = p->ioprio; /* l_int */
*n_args = 3;
break;
}
/* linux_ioprio_get */
case 290: {
*n_args = 0;
struct linux_ioprio_get_args *p = params;
iarg[a++] = p->which; /* l_int */
iarg[a++] = p->who; /* l_int */
*n_args = 2;
break;
}
/* linux_inotify_init */
@ -6516,9 +6523,32 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* linux_ioprio_set */
case 289:
switch (ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "l_int";
break;
case 2:
p = "l_int";
break;
default:
break;
};
break;
/* linux_ioprio_get */
case 290:
switch (ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "l_int";
break;
default:
break;
};
break;
/* linux_inotify_init */
case 291:
@ -9769,8 +9799,14 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 288:
/* linux_ioprio_set */
case 289:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_ioprio_get */
case 290:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_inotify_init */
case 291:
/* linux_inotify_add_watch */