Deleted Added
full compact
linux32_systrace_args.c (276510) linux32_systrace_args.c (283371)
1/*
2 * System call argument to DTrace register array converstion.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
1/*
2 * System call argument to DTrace register array converstion.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
5 * $FreeBSD: head/sys/amd64/linux32/linux32_systrace_args.c 276510 2015-01-01 18:43:31Z dchagin $
5 * $FreeBSD: head/sys/amd64/linux32/linux32_systrace_args.c 283371 2015-05-24 14:34:46Z dchagin $
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) {
14#define nosys linux_nosys
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) {
14#define nosys linux_nosys
15 /* sys_exit */
15 /* linux_exit */
16 case 1: {
16 case 1: {
17 struct sys_exit_args *p = params;
17 struct linux_exit_args *p = params;
18 iarg[0] = p->rval; /* int */
19 *n_args = 1;
20 break;
21 }
22 /* linux_fork */
23 case 2: {
24 *n_args = 0;
25 break;

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

2282 };
2283}
2284static void
2285systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
2286{
2287 const char *p = NULL;
2288 switch (sysnum) {
2289#define nosys linux_nosys
18 iarg[0] = p->rval; /* int */
19 *n_args = 1;
20 break;
21 }
22 /* linux_fork */
23 case 2: {
24 *n_args = 0;
25 break;

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

2282 };
2283}
2284static void
2285systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
2286{
2287 const char *p = NULL;
2288 switch (sysnum) {
2289#define nosys linux_nosys
2290 /* sys_exit */
2290 /* linux_exit */
2291 case 1:
2292 switch(ndx) {
2293 case 0:
2294 p = "int";
2295 break;
2296 default:
2297 break;
2298 };

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

5497 strlcpy(desc, p, descsz);
5498}
5499static void
5500systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
5501{
5502 const char *p = NULL;
5503 switch (sysnum) {
5504#define nosys linux_nosys
2291 case 1:
2292 switch(ndx) {
2293 case 0:
2294 p = "int";
2295 break;
2296 default:
2297 break;
2298 };

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

5497 strlcpy(desc, p, descsz);
5498}
5499static void
5500systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
5501{
5502 const char *p = NULL;
5503 switch (sysnum) {
5504#define nosys linux_nosys
5505 /* sys_exit */
5505 /* linux_exit */
5506 case 1:
5507 if (ndx == 0 || ndx == 1)
5508 p = "void";
5509 break;
5510 /* linux_fork */
5511 case 2:
5512 /* read */
5513 case 3:

--- 1238 unchanged lines hidden ---
5506 case 1:
5507 if (ndx == 0 || ndx == 1)
5508 p = "void";
5509 break;
5510 /* linux_fork */
5511 case 2:
5512 /* read */
5513 case 3:

--- 1238 unchanged lines hidden ---