Approved by:	re (delphij)
This commit is contained in:
rdivacky 2013-09-18 18:49:26 +00:00
parent fae003a069
commit 9e8e4eba85
10 changed files with 32 additions and 188 deletions

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/amd64/linux32/syscalls.master 255672 2013-09-18 17:56:04Z rdivacky
* created from FreeBSD: head/sys/amd64/linux32/syscalls.master 255675 2013-09-18 18:48:33Z rdivacky
*/
#ifndef _LINUX_SYSPROTO_H_
@ -766,19 +766,13 @@ struct linux_lookup_dcookie_args {
register_t dummy;
};
struct linux_epoll_create_args {
char size_l_[PADL_(l_int)]; l_int size; char size_r_[PADR_(l_int)];
register_t dummy;
};
struct linux_epoll_ctl_args {
char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)];
char op_l_[PADL_(l_int)]; l_int op; char op_r_[PADR_(l_int)];
char fd_l_[PADL_(l_int)]; l_int fd; char fd_r_[PADR_(l_int)];
char event_l_[PADL_(struct linux_epoll_event *)]; struct linux_epoll_event * event; char event_r_[PADR_(struct linux_epoll_event *)];
register_t dummy;
};
struct linux_epoll_wait_args {
char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)];
char events_l_[PADL_(struct linux_epoll_event *)]; struct linux_epoll_event * events; char events_r_[PADR_(struct linux_epoll_event *)];
char maxevents_l_[PADL_(l_int)]; l_int maxevents; char maxevents_r_[PADR_(l_int)];
char timeout_l_[PADL_(l_int)]; l_int timeout; char timeout_r_[PADR_(l_int)];
register_t dummy;
};
struct linux_remap_file_pages_args {
register_t dummy;
@ -1044,7 +1038,7 @@ struct linux_eventfd2_args {
register_t dummy;
};
struct linux_epoll_create1_args {
char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)];
register_t dummy;
};
struct linux_dup3_args {
register_t dummy;

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/amd64/linux32/syscalls.master 255672 2013-09-18 17:56:04Z rdivacky
* created from FreeBSD: head/sys/amd64/linux32/syscalls.master 255675 2013-09-18 18:48:33Z rdivacky
*/
#define LINUX_SYS_exit 1

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/amd64/linux32/syscalls.master 255672 2013-09-18 17:56:04Z rdivacky
* created from FreeBSD: head/sys/amd64/linux32/syscalls.master 255675 2013-09-18 18:48:33Z rdivacky
*/
const char *linux_syscallnames[] = {

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/amd64/linux32/syscalls.master 255672 2013-09-18 17:56:04Z rdivacky
* created from FreeBSD: head/sys/amd64/linux32/syscalls.master 255675 2013-09-18 18:48:33Z rdivacky
*/
#include "opt_compat.h"
@ -273,9 +273,9 @@ struct sysent linux_sysent[] = {
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 251 = */
{ AS(linux_exit_group_args), (sy_call_t *)linux_exit_group, AUE_EXIT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 252 = linux_exit_group */
{ 0, (sy_call_t *)linux_lookup_dcookie, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 253 = linux_lookup_dcookie */
{ AS(linux_epoll_create_args), (sy_call_t *)linux_epoll_create, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 254 = linux_epoll_create */
{ AS(linux_epoll_ctl_args), (sy_call_t *)linux_epoll_ctl, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 255 = linux_epoll_ctl */
{ AS(linux_epoll_wait_args), (sy_call_t *)linux_epoll_wait, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 256 = linux_epoll_wait */
{ 0, (sy_call_t *)linux_epoll_create, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 254 = linux_epoll_create */
{ 0, (sy_call_t *)linux_epoll_ctl, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 255 = linux_epoll_ctl */
{ 0, (sy_call_t *)linux_epoll_wait, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 256 = linux_epoll_wait */
{ 0, (sy_call_t *)linux_remap_file_pages, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 257 = linux_remap_file_pages */
{ AS(linux_set_tid_address_args), (sy_call_t *)linux_set_tid_address, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 258 = linux_set_tid_address */
{ 0, (sy_call_t *)linux_timer_create, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 259 = linux_timer_create */
@ -348,7 +348,7 @@ struct sysent linux_sysent[] = {
{ 0, (sy_call_t *)linux_timerfd_gettime, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 326 = linux_timerfd_gettime */
{ 0, (sy_call_t *)linux_signalfd4, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 327 = linux_signalfd4 */
{ 0, (sy_call_t *)linux_eventfd2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 328 = linux_eventfd2 */
{ AS(linux_epoll_create1_args), (sy_call_t *)linux_epoll_create1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 329 = linux_epoll_create1 */
{ 0, (sy_call_t *)linux_epoll_create1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 329 = linux_epoll_create1 */
{ 0, (sy_call_t *)linux_dup3, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 330 = linux_dup3 */
{ AS(linux_pipe2_args), (sy_call_t *)linux_pipe2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 331 = linux_pipe2 */
{ 0, (sy_call_t *)linux_inotify_init1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 332 = linux_inotify_init1 */

View File

@ -1693,29 +1693,17 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
}
/* linux_epoll_create */
case 254: {
struct linux_epoll_create_args *p = params;
iarg[0] = p->size; /* l_int */
*n_args = 1;
*n_args = 0;
break;
}
/* linux_epoll_ctl */
case 255: {
struct linux_epoll_ctl_args *p = params;
iarg[0] = p->epfd; /* l_int */
iarg[1] = p->op; /* l_int */
iarg[2] = p->fd; /* l_int */
uarg[3] = (intptr_t) p->event; /* struct linux_epoll_event * */
*n_args = 4;
*n_args = 0;
break;
}
/* linux_epoll_wait */
case 256: {
struct linux_epoll_wait_args *p = params;
iarg[0] = p->epfd; /* l_int */
uarg[1] = (intptr_t) p->events; /* struct linux_epoll_event * */
iarg[2] = p->maxevents; /* l_int */
iarg[3] = p->timeout; /* l_int */
*n_args = 4;
*n_args = 0;
break;
}
/* linux_remap_file_pages */
@ -2171,9 +2159,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
}
/* linux_epoll_create1 */
case 329: {
struct linux_epoll_create1_args *p = params;
iarg[0] = p->flags; /* l_int */
*n_args = 1;
*n_args = 0;
break;
}
/* linux_dup3 */
@ -4821,51 +4807,12 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* linux_epoll_create */
case 254:
switch(ndx) {
case 0:
p = "l_int";
break;
default:
break;
};
break;
/* linux_epoll_ctl */
case 255:
switch(ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "l_int";
break;
case 2:
p = "l_int";
break;
case 3:
p = "struct linux_epoll_event *";
break;
default:
break;
};
break;
/* linux_epoll_wait */
case 256:
switch(ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "struct linux_epoll_event *";
break;
case 2:
p = "l_int";
break;
case 3:
p = "l_int";
break;
default:
break;
};
break;
/* linux_remap_file_pages */
case 257:
@ -5406,13 +5353,6 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* linux_epoll_create1 */
case 329:
switch(ndx) {
case 0:
p = "l_int";
break;
default:
break;
};
break;
/* linux_dup3 */
case 330:
@ -6460,19 +6400,10 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 253:
/* linux_epoll_create */
case 254:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_epoll_ctl */
case 255:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_epoll_wait */
case 256:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_remap_file_pages */
case 257:
/* linux_set_tid_address */
@ -6687,9 +6618,6 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 328:
/* linux_epoll_create1 */
case 329:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_dup3 */
case 330:
/* linux_pipe2 */

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/i386/linux/syscalls.master 255672 2013-09-18 17:56:04Z rdivacky
* created from FreeBSD: head/sys/i386/linux/syscalls.master 255675 2013-09-18 18:48:33Z rdivacky
*/
#ifndef _LINUX_SYSPROTO_H_
@ -766,19 +766,13 @@ struct linux_lookup_dcookie_args {
register_t dummy;
};
struct linux_epoll_create_args {
char size_l_[PADL_(l_int)]; l_int size; char size_r_[PADR_(l_int)];
register_t dummy;
};
struct linux_epoll_ctl_args {
char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)];
char op_l_[PADL_(l_int)]; l_int op; char op_r_[PADR_(l_int)];
char fd_l_[PADL_(l_int)]; l_int fd; char fd_r_[PADR_(l_int)];
char event_l_[PADL_(struct linux_epoll_event *)]; struct linux_epoll_event * event; char event_r_[PADR_(struct linux_epoll_event *)];
register_t dummy;
};
struct linux_epoll_wait_args {
char epfd_l_[PADL_(l_int)]; l_int epfd; char epfd_r_[PADR_(l_int)];
char events_l_[PADL_(struct linux_epoll_event *)]; struct linux_epoll_event * events; char events_r_[PADR_(struct linux_epoll_event *)];
char maxevents_l_[PADL_(l_int)]; l_int maxevents; char maxevents_r_[PADR_(l_int)];
char timeout_l_[PADL_(l_int)]; l_int timeout; char timeout_r_[PADR_(l_int)];
register_t dummy;
};
struct linux_remap_file_pages_args {
register_t dummy;
@ -1063,7 +1057,7 @@ struct linux_eventfd2_args {
register_t dummy;
};
struct linux_epoll_create1_args {
char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)];
register_t dummy;
};
struct linux_dup3_args {
register_t dummy;

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/i386/linux/syscalls.master 255672 2013-09-18 17:56:04Z rdivacky
* created from FreeBSD: head/sys/i386/linux/syscalls.master 255675 2013-09-18 18:48:33Z rdivacky
*/
#define LINUX_SYS_exit 1

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/i386/linux/syscalls.master 255672 2013-09-18 17:56:04Z rdivacky
* created from FreeBSD: head/sys/i386/linux/syscalls.master 255675 2013-09-18 18:48:33Z rdivacky
*/
const char *linux_syscallnames[] = {

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/i386/linux/syscalls.master 255672 2013-09-18 17:56:04Z rdivacky
* created from FreeBSD: head/sys/i386/linux/syscalls.master 255675 2013-09-18 18:48:33Z rdivacky
*/
#include <sys/param.h>
@ -272,9 +272,9 @@ struct sysent linux_sysent[] = {
{ 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 251 = */
{ AS(linux_exit_group_args), (sy_call_t *)linux_exit_group, AUE_EXIT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 252 = linux_exit_group */
{ 0, (sy_call_t *)linux_lookup_dcookie, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 253 = linux_lookup_dcookie */
{ AS(linux_epoll_create_args), (sy_call_t *)linux_epoll_create, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 254 = linux_epoll_create */
{ AS(linux_epoll_ctl_args), (sy_call_t *)linux_epoll_ctl, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 255 = linux_epoll_ctl */
{ AS(linux_epoll_wait_args), (sy_call_t *)linux_epoll_wait, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 256 = linux_epoll_wait */
{ 0, (sy_call_t *)linux_epoll_create, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 254 = linux_epoll_create */
{ 0, (sy_call_t *)linux_epoll_ctl, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 255 = linux_epoll_ctl */
{ 0, (sy_call_t *)linux_epoll_wait, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 256 = linux_epoll_wait */
{ 0, (sy_call_t *)linux_remap_file_pages, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 257 = linux_remap_file_pages */
{ AS(linux_set_tid_address_args), (sy_call_t *)linux_set_tid_address, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 258 = linux_set_tid_address */
{ AS(linux_timer_create_args), (sy_call_t *)linux_timer_create, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 259 = linux_timer_create */
@ -347,7 +347,7 @@ struct sysent linux_sysent[] = {
{ 0, (sy_call_t *)linux_timerfd_gettime, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 326 = linux_timerfd_gettime */
{ 0, (sy_call_t *)linux_signalfd4, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 327 = linux_signalfd4 */
{ 0, (sy_call_t *)linux_eventfd2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 328 = linux_eventfd2 */
{ AS(linux_epoll_create1_args), (sy_call_t *)linux_epoll_create1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 329 = linux_epoll_create1 */
{ 0, (sy_call_t *)linux_epoll_create1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 329 = linux_epoll_create1 */
{ 0, (sy_call_t *)linux_dup3, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 330 = linux_dup3 */
{ AS(linux_pipe2_args), (sy_call_t *)linux_pipe2, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 331 = linux_pipe2 */
{ 0, (sy_call_t *)linux_inotify_init1, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 332 = linux_inotify_init1 */

View File

@ -1743,29 +1743,17 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
}
/* linux_epoll_create */
case 254: {
struct linux_epoll_create_args *p = params;
iarg[0] = p->size; /* l_int */
*n_args = 1;
*n_args = 0;
break;
}
/* linux_epoll_ctl */
case 255: {
struct linux_epoll_ctl_args *p = params;
iarg[0] = p->epfd; /* l_int */
iarg[1] = p->op; /* l_int */
iarg[2] = p->fd; /* l_int */
uarg[3] = (intptr_t) p->event; /* struct linux_epoll_event * */
*n_args = 4;
*n_args = 0;
break;
}
/* linux_epoll_wait */
case 256: {
struct linux_epoll_wait_args *p = params;
iarg[0] = p->epfd; /* l_int */
uarg[1] = (intptr_t) p->events; /* struct linux_epoll_event * */
iarg[2] = p->maxevents; /* l_int */
iarg[3] = p->timeout; /* l_int */
*n_args = 4;
*n_args = 0;
break;
}
/* linux_remap_file_pages */
@ -2262,9 +2250,7 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
}
/* linux_epoll_create1 */
case 329: {
struct linux_epoll_create1_args *p = params;
iarg[0] = p->flags; /* l_int */
*n_args = 1;
*n_args = 0;
break;
}
/* linux_dup3 */
@ -4983,51 +4969,12 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* linux_epoll_create */
case 254:
switch(ndx) {
case 0:
p = "l_int";
break;
default:
break;
};
break;
/* linux_epoll_ctl */
case 255:
switch(ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "l_int";
break;
case 2:
p = "l_int";
break;
case 3:
p = "struct linux_epoll_event *";
break;
default:
break;
};
break;
/* linux_epoll_wait */
case 256:
switch(ndx) {
case 0:
p = "l_int";
break;
case 1:
p = "struct linux_epoll_event *";
break;
case 2:
p = "l_int";
break;
case 3:
p = "l_int";
break;
default:
break;
};
break;
/* linux_remap_file_pages */
case 257:
@ -5702,13 +5649,6 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
/* linux_epoll_create1 */
case 329:
switch(ndx) {
case 0:
p = "l_int";
break;
default:
break;
};
break;
/* linux_dup3 */
case 330:
@ -6785,19 +6725,10 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 253:
/* linux_epoll_create */
case 254:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_epoll_ctl */
case 255:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_epoll_wait */
case 256:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_remap_file_pages */
case 257:
/* linux_set_tid_address */
@ -7045,9 +6976,6 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
case 328:
/* linux_epoll_create1 */
case 329:
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* linux_dup3 */
case 330:
/* linux_pipe2 */