This commit is contained in:
christos 2016-04-02 21:03:13 +00:00
parent 3d596ad050
commit c7f91bd9fd
1 changed files with 43 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: systrace_args.c,v 1.15 2016/01/26 23:49:46 pooka Exp $ */
/* $NetBSD: systrace_args.c,v 1.16 2016/04/02 21:03:13 christos Exp $ */
/*
* System call argument to DTrace register array converstion.
@ -3657,6 +3657,18 @@ systrace_args(register_t sysnum, const void *params, uintptr_t *uarg, size_t *n_
*n_args = 4;
break;
}
/* sys_wait6 */
case 481: {
struct sys_wait6_args *p = params;
iarg[0] = SCARG(p, idtype); /* idtype_t */
iarg[1] = SCARG(p, id); /* id_t */
uarg[2] = (intptr_t) SCARG(p, status); /* int * */
iarg[3] = SCARG(p, options); /* int */
uarg[4] = (intptr_t) SCARG(p, wru); /* struct wrusage * */
uarg[5] = (intptr_t) SCARG(p, info); /* siginfo_t * */
*n_args = 6;
break;
}
default:
*n_args = 0;
break;
@ -9847,6 +9859,31 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
};
break;
/* sys_wait6 */
case 481:
switch(ndx) {
case 0:
p = "idtype_t";
break;
case 1:
p = "id_t";
break;
case 2:
p = "int *";
break;
case 3:
p = "int";
break;
case 4:
p = "struct wrusage *";
break;
case 5:
p = "siginfo_t *";
break;
default:
break;
};
break;
default:
break;
};
@ -11924,6 +11961,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* sys_wait6 */
case 481:
if (ndx == 0 || ndx == 1)
p = "int";
break;
default:
break;
};