This commit is contained in:
Konstantin Belousov 2023-03-26 01:45:16 +02:00
parent f2ec444be5
commit 6a0a634590
10 changed files with 59 additions and 3 deletions

View File

@ -501,4 +501,5 @@
#define FREEBSD32_SYS_fspacectl 580
#define FREEBSD32_SYS_sched_getcpu 581
#define FREEBSD32_SYS_swapoff 582
#define FREEBSD32_SYS_MAXSYSCALL 583
#define FREEBSD32_SYS_kqueue1 583
#define FREEBSD32_SYS_MAXSYSCALL 584

View File

@ -589,4 +589,5 @@ const char *freebsd32_syscallnames[] = {
"fspacectl", /* 580 = fspacectl */
"sched_getcpu", /* 581 = sched_getcpu */
"swapoff", /* 582 = swapoff */
"kqueue1", /* 583 = kqueue1 */
};

View File

@ -645,4 +645,5 @@ struct sysent freebsd32_sysent[] = {
{ .sy_narg = AS(fspacectl_args), .sy_call = (sy_call_t *)sys_fspacectl, .sy_auevent = AUE_FSPACECTL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 580 = fspacectl */
{ .sy_narg = 0, .sy_call = (sy_call_t *)sys_sched_getcpu, .sy_auevent = AUE_NULL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 581 = sched_getcpu */
{ .sy_narg = AS(swapoff_args), .sy_call = (sy_call_t *)sys_swapoff, .sy_auevent = AUE_SWAPOFF, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 582 = swapoff */
{ .sy_narg = AS(kqueue1_args), .sy_call = (sy_call_t *)sys_kqueue1, .sy_auevent = AUE_KQUEUE, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 583 = kqueue1 */
};

View File

@ -3321,6 +3321,13 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
*n_args = 2;
break;
}
/* kqueue1 */
case 583: {
struct kqueue1_args *p = params;
uarg[a++] = p->flags; /* u_int */
*n_args = 1;
break;
}
default:
*n_args = 0;
break;
@ -8964,6 +8971,16 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
};
break;
/* kqueue1 */
case 583:
switch (ndx) {
case 0:
p = "u_int";
break;
default:
break;
};
break;
default:
break;
};
@ -10822,6 +10839,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* kqueue1 */
case 583:
if (ndx == 0 || ndx == 1)
p = "int";
break;
default:
break;
};

View File

@ -644,4 +644,5 @@ struct sysent sysent[] = {
{ .sy_narg = AS(fspacectl_args), .sy_call = (sy_call_t *)sys_fspacectl, .sy_auevent = AUE_FSPACECTL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 580 = fspacectl */
{ .sy_narg = 0, .sy_call = (sy_call_t *)sys_sched_getcpu, .sy_auevent = AUE_NULL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 581 = sched_getcpu */
{ .sy_narg = AS(swapoff_args), .sy_call = (sy_call_t *)sys_swapoff, .sy_auevent = AUE_SWAPOFF, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 582 = swapoff */
{ .sy_narg = AS(kqueue1_args), .sy_call = (sy_call_t *)sys_kqueue1, .sy_auevent = AUE_KQUEUE, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 583 = kqueue1 */
};

View File

@ -589,4 +589,5 @@ const char *syscallnames[] = {
"fspacectl", /* 580 = fspacectl */
"sched_getcpu", /* 581 = sched_getcpu */
"swapoff", /* 582 = swapoff */
"kqueue1", /* 583 = kqueue1 */
};

View File

@ -3417,6 +3417,13 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
*n_args = 2;
break;
}
/* kqueue1 */
case 583: {
struct kqueue1_args *p = params;
uarg[a++] = p->flags; /* u_int */
*n_args = 1;
break;
}
default:
*n_args = 0;
break;
@ -9134,6 +9141,16 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
};
break;
/* kqueue1 */
case 583:
switch (ndx) {
case 0:
p = "u_int";
break;
default:
break;
};
break;
default:
break;
};
@ -11087,6 +11104,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* kqueue1 */
case 583:
if (ndx == 0 || ndx == 1)
p = "int";
break;
default:
break;
};

View File

@ -520,4 +520,5 @@
#define SYS_fspacectl 580
#define SYS_sched_getcpu 581
#define SYS_swapoff 582
#define SYS_MAXSYSCALL 583
#define SYS_kqueue1 583
#define SYS_MAXSYSCALL 584

View File

@ -425,4 +425,5 @@ MIASM = \
aio_readv.o \
fspacectl.o \
sched_getcpu.o \
swapoff.o
swapoff.o \
kqueue1.o

View File

@ -1855,6 +1855,9 @@ struct swapoff_args {
char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
char flags_l_[PADL_(u_int)]; u_int flags; char flags_r_[PADR_(u_int)];
};
struct kqueue1_args {
char flags_l_[PADL_(u_int)]; u_int flags; char flags_r_[PADR_(u_int)];
};
int sys_exit(struct thread *, struct exit_args *);
int sys_fork(struct thread *, struct fork_args *);
int sys_read(struct thread *, struct read_args *);
@ -2250,6 +2253,7 @@ int sys_aio_readv(struct thread *, struct aio_readv_args *);
int sys_fspacectl(struct thread *, struct fspacectl_args *);
int sys_sched_getcpu(struct thread *, struct sched_getcpu_args *);
int sys_swapoff(struct thread *, struct swapoff_args *);
int sys_kqueue1(struct thread *, struct kqueue1_args *);
#ifdef COMPAT_43
@ -3219,6 +3223,7 @@ int freebsd13_swapoff(struct thread *, struct freebsd13_swapoff_args *);
#define SYS_AUE_fspacectl AUE_FSPACECTL
#define SYS_AUE_sched_getcpu AUE_NULL
#define SYS_AUE_swapoff AUE_SWAPOFF
#define SYS_AUE_kqueue1 AUE_KQUEUE
#undef PAD_
#undef PADL_