systrace_args.c (7fb006e7d61e9883344dfb20b277c3c015ab67b1) systrace_args.c (5c1835b1d4b554235a6904f3a984680baf38edf2)
1/*
2 * System call argument to DTrace register array converstion.
3 *
4 * DO NOT EDIT-- this file is automatically @generated.
5 * $FreeBSD$
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 int a = 0;
14 switch (sysnum) {
15 /* nosys */
16 case 0: {
17 *n_args = 0;
18 break;
19 }
1/*
2 * System call argument to DTrace register array converstion.
3 *
4 * DO NOT EDIT-- this file is automatically @generated.
5 * $FreeBSD$
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 int a = 0;
14 switch (sysnum) {
15 /* nosys */
16 case 0: {
17 *n_args = 0;
18 break;
19 }
20 /* sys_exit */
20 /* exit */
21 case 1: {
21 case 1: {
22 struct sys_exit_args *p = params;
22 struct exit_args *p = params;
23 iarg[a++] = p->rval; /* int */
24 *n_args = 1;
25 break;
26 }
27 /* fork */
28 case 2: {
29 *n_args = 0;
30 break;

--- 3393 unchanged lines hidden (view full) ---

3424static void
3425systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
3426{
3427 const char *p = NULL;
3428 switch (sysnum) {
3429 /* nosys */
3430 case 0:
3431 break;
23 iarg[a++] = p->rval; /* int */
24 *n_args = 1;
25 break;
26 }
27 /* fork */
28 case 2: {
29 *n_args = 0;
30 break;

--- 3393 unchanged lines hidden (view full) ---

3424static void
3425systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
3426{
3427 const char *p = NULL;
3428 switch (sysnum) {
3429 /* nosys */
3430 case 0:
3431 break;
3432 /* sys_exit */
3432 /* exit */
3433 case 1:
3434 switch (ndx) {
3435 case 0:
3436 p = "int";
3437 break;
3438 default:
3439 break;
3440 };

--- 5697 unchanged lines hidden (view full) ---

9138}
9139static void
9140systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
9141{
9142 const char *p = NULL;
9143 switch (sysnum) {
9144 /* nosys */
9145 case 0:
3433 case 1:
3434 switch (ndx) {
3435 case 0:
3436 p = "int";
3437 break;
3438 default:
3439 break;
3440 };

--- 5697 unchanged lines hidden (view full) ---

9138}
9139static void
9140systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
9141{
9142 const char *p = NULL;
9143 switch (sysnum) {
9144 /* nosys */
9145 case 0:
9146 /* sys_exit */
9146 /* exit */
9147 case 1:
9148 if (ndx == 0 || ndx == 1)
9149 p = "void";
9150 break;
9151 /* fork */
9152 case 2:
9153 /* read */
9154 case 3:

--- 1937 unchanged lines hidden ---
9147 case 1:
9148 if (ndx == 0 || ndx == 1)
9149 p = "void";
9150 break;
9151 /* fork */
9152 case 2:
9153 /* read */
9154 case 3:

--- 1937 unchanged lines hidden ---