1/*
2 * System call argument to DTrace register array converstion.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
5 * $FreeBSD: head/sys/compat/cloudabi64/cloudabi64_systrace_args.c 286319 2015-08-05 13:10:13Z ed $
6 * This file is part of the DTrace syscall provider.
7 */
8
9static void
10systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
11{
12 int64_t *iarg = (int64_t *) uarg;
13 switch (sysnum) {
--- 348 unchanged lines hidden (view full) ---
362 uarg[0] = (intptr_t) p->addr; /* void * */
363 uarg[1] = p->len; /* size_t */
364 *n_args = 2;
365 break;
366 }
367 /* cloudabi64_sys_poll */
368 case 39: {
369 struct cloudabi64_sys_poll_args *p = params;
370 uarg[0] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
371 uarg[1] = (intptr_t) p->out; /* cloudabi64_event_t * */
372 iarg[2] = p->nevents; /* cloudabi64_size_t */
373 *n_args = 3;
374 break;
375 }
376 /* cloudabi_sys_proc_exec */
377 case 40: {
378 struct cloudabi_sys_proc_exec_args *p = params;
379 iarg[0] = p->fd; /* cloudabi_fd_t */
380 uarg[1] = (intptr_t) p->data; /* const void * */
381 uarg[2] = p->datalen; /* size_t */
--- 122 unchanged lines hidden (view full) ---
504 *n_args = 1;
505 break;
506 }
507 /* cloudabi_sys_thread_yield */
508 case 56: {
509 *n_args = 0;
510 break;
511 }
512 /* cloudabi64_sys_poll_fd */
513 case 57: {
514 struct cloudabi64_sys_poll_fd_args *p = params;
515 iarg[0] = p->fd; /* cloudabi_fd_t */
516 uarg[1] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
517 iarg[2] = p->nin; /* cloudabi64_size_t */
518 uarg[3] = (intptr_t) p->out; /* cloudabi64_event_t * */
519 iarg[4] = p->nout; /* cloudabi64_size_t */
520 uarg[5] = (intptr_t) p->timeout; /* const cloudabi64_subscription_t * */
521 *n_args = 6;
522 break;
523 }
524 default:
525 *n_args = 0;
526 break;
527 };
528}
529static void
530systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
531{
--- 628 unchanged lines hidden (view full) ---
1160 default:
1161 break;
1162 };
1163 break;
1164 /* cloudabi64_sys_poll */
1165 case 39:
1166 switch(ndx) {
1167 case 0:
1168 p = "const cloudabi64_subscription_t *";
1169 break;
1170 case 1:
1171 p = "cloudabi64_event_t *";
1172 break;
1173 case 2:
1174 p = "cloudabi64_size_t";
1175 break;
1176 default:
1177 break;
1178 };
1179 break;
1180 /* cloudabi_sys_proc_exec */
1181 case 40:
1182 switch(ndx) {
1183 case 0:
--- 207 unchanged lines hidden (view full) ---
1391 break;
1392 default:
1393 break;
1394 };
1395 break;
1396 /* cloudabi_sys_thread_yield */
1397 case 56:
1398 break;
1399 /* cloudabi64_sys_poll_fd */
1400 case 57:
1401 switch(ndx) {
1402 case 0:
1403 p = "cloudabi_fd_t";
1404 break;
1405 case 1:
1406 p = "const cloudabi64_subscription_t *";
1407 break;
1408 case 2:
1409 p = "cloudabi64_size_t";
1410 break;
1411 case 3:
1412 p = "cloudabi64_event_t *";
1413 break;
1414 case 4:
1415 p = "cloudabi64_size_t";
1416 break;
1417 case 5:
1418 p = "const cloudabi64_subscription_t *";
1419 break;
1420 default:
1421 break;
1422 };
1423 break;
1424 default:
1425 break;
1426 };
1427 if (p != NULL)
1428 strlcpy(desc, p, descsz);
1429}
1430static void
1431systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
--- 274 unchanged lines hidden (view full) ---
1706 break;
1707 /* cloudabi_sys_thread_tcb_set */
1708 case 55:
1709 if (ndx == 0 || ndx == 1)
1710 p = "void";
1711 break;
1712 /* cloudabi_sys_thread_yield */
1713 case 56:
1714 /* cloudabi64_sys_poll_fd */
1715 case 57:
1716 if (ndx == 0 || ndx == 1)
1717 p = "cloudabi64_size_t";
1718 break;
1719 default:
1720 break;
1721 };
1722 if (p != NULL)
1723 strlcpy(desc, p, descsz);
1724}
2 * System call argument to DTrace register array converstion.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
5 * $FreeBSD: head/sys/compat/cloudabi64/cloudabi64_systrace_args.c 286319 2015-08-05 13:10:13Z ed $
6 * This file is part of the DTrace syscall provider.
7 */
8
9static void
10systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
11{
12 int64_t *iarg = (int64_t *) uarg;
13 switch (sysnum) {
--- 348 unchanged lines hidden (view full) ---
362 uarg[0] = (intptr_t) p->addr; /* void * */
363 uarg[1] = p->len; /* size_t */
364 *n_args = 2;
365 break;
366 }
367 /* cloudabi64_sys_poll */
368 case 39: {
369 struct cloudabi64_sys_poll_args *p = params;
370 uarg[0] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
371 uarg[1] = (intptr_t) p->out; /* cloudabi64_event_t * */
372 iarg[2] = p->nevents; /* cloudabi64_size_t */
373 *n_args = 3;
374 break;
375 }
376 /* cloudabi_sys_proc_exec */
377 case 40: {
378 struct cloudabi_sys_proc_exec_args *p = params;
379 iarg[0] = p->fd; /* cloudabi_fd_t */
380 uarg[1] = (intptr_t) p->data; /* const void * */
381 uarg[2] = p->datalen; /* size_t */
--- 122 unchanged lines hidden (view full) ---
504 *n_args = 1;
505 break;
506 }
507 /* cloudabi_sys_thread_yield */
508 case 56: {
509 *n_args = 0;
510 break;
511 }
512 /* cloudabi64_sys_poll_fd */
513 case 57: {
514 struct cloudabi64_sys_poll_fd_args *p = params;
515 iarg[0] = p->fd; /* cloudabi_fd_t */
516 uarg[1] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
517 iarg[2] = p->nin; /* cloudabi64_size_t */
518 uarg[3] = (intptr_t) p->out; /* cloudabi64_event_t * */
519 iarg[4] = p->nout; /* cloudabi64_size_t */
520 uarg[5] = (intptr_t) p->timeout; /* const cloudabi64_subscription_t * */
521 *n_args = 6;
522 break;
523 }
524 default:
525 *n_args = 0;
526 break;
527 };
528}
529static void
530systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
531{
--- 628 unchanged lines hidden (view full) ---
1160 default:
1161 break;
1162 };
1163 break;
1164 /* cloudabi64_sys_poll */
1165 case 39:
1166 switch(ndx) {
1167 case 0:
1168 p = "const cloudabi64_subscription_t *";
1169 break;
1170 case 1:
1171 p = "cloudabi64_event_t *";
1172 break;
1173 case 2:
1174 p = "cloudabi64_size_t";
1175 break;
1176 default:
1177 break;
1178 };
1179 break;
1180 /* cloudabi_sys_proc_exec */
1181 case 40:
1182 switch(ndx) {
1183 case 0:
--- 207 unchanged lines hidden (view full) ---
1391 break;
1392 default:
1393 break;
1394 };
1395 break;
1396 /* cloudabi_sys_thread_yield */
1397 case 56:
1398 break;
1399 /* cloudabi64_sys_poll_fd */
1400 case 57:
1401 switch(ndx) {
1402 case 0:
1403 p = "cloudabi_fd_t";
1404 break;
1405 case 1:
1406 p = "const cloudabi64_subscription_t *";
1407 break;
1408 case 2:
1409 p = "cloudabi64_size_t";
1410 break;
1411 case 3:
1412 p = "cloudabi64_event_t *";
1413 break;
1414 case 4:
1415 p = "cloudabi64_size_t";
1416 break;
1417 case 5:
1418 p = "const cloudabi64_subscription_t *";
1419 break;
1420 default:
1421 break;
1422 };
1423 break;
1424 default:
1425 break;
1426 };
1427 if (p != NULL)
1428 strlcpy(desc, p, descsz);
1429}
1430static void
1431systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
--- 274 unchanged lines hidden (view full) ---
1706 break;
1707 /* cloudabi_sys_thread_tcb_set */
1708 case 55:
1709 if (ndx == 0 || ndx == 1)
1710 p = "void";
1711 break;
1712 /* cloudabi_sys_thread_yield */
1713 case 56:
1714 /* cloudabi64_sys_poll_fd */
1715 case 57:
1716 if (ndx == 0 || ndx == 1)
1717 p = "cloudabi64_size_t";
1718 break;
1719 default:
1720 break;
1721 };
1722 if (p != NULL)
1723 strlcpy(desc, p, descsz);
1724}