Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump Eliminate weak symbols from rump kernel sys...



details:   https://anonhg.NetBSD.org/src/rev/56cde12905c5
branches:  trunk
changeset: 328989:56cde12905c5
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Apr 27 15:13:57 2014 +0000

description:
Eliminate weak symbols from rump kernel syscall handlers, part 6:

Generate component constructors which establish non-modular syscalls.

diffstat:

 sys/rump/librump/rumpkern/rumpkern_syscalls.c |  154 ++++++++++++++++++
 sys/rump/librump/rumpnet/rumpnet_syscalls.c   |   56 ++++++
 sys/rump/librump/rumpvfs/rumpvfs_syscalls.c   |  212 ++++++++++++++++++++++++++
 3 files changed, 422 insertions(+), 0 deletions(-)

diffs (truncated from 434 to 300 lines):

diff -r f3b7c7f6e10f -r 56cde12905c5 sys/rump/librump/rumpkern/rumpkern_syscalls.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/librump/rumpkern/rumpkern_syscalls.c     Sun Apr 27 15:13:57 2014 +0000
@@ -0,0 +1,154 @@
+/*     $NetBSD: rumpkern_syscalls.c,v 1.1 2014/04/27 15:13:57 pooka Exp $      */
+
+/* AUTOMATICALLY GENERATED BY makerumpsyscalls.sh */
+
+#include <sys/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: rumpkern_syscalls.c,v 1.1 2014/04/27 15:13:57 pooka Exp $");
+
+#include <sys/param.h>
+
+#include "rump_private.h"
+
+extern const sy_call_t sys_read;
+extern const sy_call_t sys_write;
+extern const sy_call_t sys_close;
+extern const sy_call_t sys_getpid_with_ppid;
+extern const sy_call_t sys_setuid;
+extern const sy_call_t sys_getuid_with_euid;
+extern const sy_call_t sys_geteuid;
+extern const sy_call_t sys_getppid;
+extern const sy_call_t sys_dup;
+extern const sy_call_t sys_pipe;
+extern const sy_call_t sys_getegid;
+extern const sy_call_t sys_getgid_with_egid;
+extern const sy_call_t sys___getlogin;
+extern const sy_call_t sys___setlogin;
+extern const sy_call_t sys_ioctl;
+extern const sy_call_t sys_getgroups;
+extern const sy_call_t sys_setgroups;
+extern const sy_call_t sys_getpgrp;
+extern const sy_call_t sys_setpgid;
+extern const sy_call_t sys_dup2;
+extern const sy_call_t sys_fcntl;
+extern const sy_call_t sys_readv;
+extern const sy_call_t sys_writev;
+extern const sy_call_t sys_setreuid;
+extern const sy_call_t sys_setregid;
+extern const sy_call_t sys_flock;
+extern const sy_call_t sys_setsid;
+extern const sy_call_t sys_setgid;
+extern const sy_call_t sys_setegid;
+extern const sy_call_t sys_seteuid;
+extern const sy_call_t sys_fpathconf;
+extern const sy_call_t sys_getrlimit;
+extern const sy_call_t sys_setrlimit;
+extern const sy_call_t sys___sysctl;
+extern const sy_call_t sys_getpgid;
+extern const sy_call_t sys_reboot;
+extern const sy_call_t sys_poll;
+extern const sy_call_t sys_timer_create;
+extern const sy_call_t sys_timer_delete;
+extern const sy_call_t sys_timer_getoverrun;
+extern const sy_call_t sys_modctl;
+extern const sy_call_t sys_getsid;
+extern const sy_call_t sys_fktrace;
+extern const sy_call_t sys_issetugid;
+extern const sy_call_t sys_utrace;
+extern const sy_call_t sys_kqueue;
+extern const sy_call_t sys___posix_fadvise50;
+extern const sy_call_t sys___select50;
+extern const sy_call_t sys___gettimeofday50;
+extern const sy_call_t sys___settimeofday50;
+extern const sy_call_t sys___adjtime50;
+extern const sy_call_t sys___setitimer50;
+extern const sy_call_t sys___getitimer50;
+extern const sy_call_t sys___clock_gettime50;
+extern const sy_call_t sys___clock_settime50;
+extern const sy_call_t sys___clock_getres50;
+extern const sy_call_t sys___nanosleep50;
+extern const sy_call_t sys___kevent50;
+extern const sy_call_t sys___pselect50;
+extern const sy_call_t sys___pollts50;
+extern const sy_call_t sys___fstat50;
+extern const sy_call_t sys___timer_settime50;
+extern const sy_call_t sys___timer_gettime50;
+extern const sy_call_t sys_pipe2;
+extern const sy_call_t sys_dup3;
+extern const sy_call_t sys_kqueue1;
+extern const sy_call_t sys_clock_nanosleep;
+
+static const struct rump_onesyscall mysys[] = {
+       { 3,    sys_read },
+       { 4,    sys_write },
+       { 6,    sys_close },
+       { 20,   sys_getpid_with_ppid },
+       { 23,   sys_setuid },
+       { 24,   sys_getuid_with_euid },
+       { 25,   sys_geteuid },
+       { 39,   sys_getppid },
+       { 41,   sys_dup },
+       { 42,   sys_pipe },
+       { 43,   sys_getegid },
+       { 47,   sys_getgid_with_egid },
+       { 49,   sys___getlogin },
+       { 50,   sys___setlogin },
+       { 54,   sys_ioctl },
+       { 79,   sys_getgroups },
+       { 80,   sys_setgroups },
+       { 81,   sys_getpgrp },
+       { 82,   sys_setpgid },
+       { 90,   sys_dup2 },
+       { 92,   sys_fcntl },
+       { 120,  sys_readv },
+       { 121,  sys_writev },
+       { 126,  sys_setreuid },
+       { 127,  sys_setregid },
+       { 131,  sys_flock },
+       { 147,  sys_setsid },
+       { 181,  sys_setgid },
+       { 182,  sys_setegid },
+       { 183,  sys_seteuid },
+       { 192,  sys_fpathconf },
+       { 194,  sys_getrlimit },
+       { 195,  sys_setrlimit },
+       { 202,  sys___sysctl },
+       { 207,  sys_getpgid },
+       { 208,  sys_reboot },
+       { 209,  sys_poll },
+       { 235,  sys_timer_create },
+       { 236,  sys_timer_delete },
+       { 239,  sys_timer_getoverrun },
+       { 246,  sys_modctl },
+       { 286,  sys_getsid },
+       { 288,  sys_fktrace },
+       { 305,  sys_issetugid },
+       { 306,  sys_utrace },
+       { 344,  sys_kqueue },
+       { 416,  sys___posix_fadvise50 },
+       { 417,  sys___select50 },
+       { 418,  sys___gettimeofday50 },
+       { 419,  sys___settimeofday50 },
+       { 421,  sys___adjtime50 },
+       { 425,  sys___setitimer50 },
+       { 426,  sys___getitimer50 },
+       { 427,  sys___clock_gettime50 },
+       { 428,  sys___clock_settime50 },
+       { 429,  sys___clock_getres50 },
+       { 430,  sys___nanosleep50 },
+       { 435,  sys___kevent50 },
+       { 436,  sys___pselect50 },
+       { 437,  sys___pollts50 },
+       { 440,  sys___fstat50 },
+       { 446,  sys___timer_settime50 },
+       { 447,  sys___timer_gettime50 },
+       { 453,  sys_pipe2 },
+       { 454,  sys_dup3 },
+       { 455,  sys_kqueue1 },
+       { 477,  sys_clock_nanosleep },
+};
+
+RUMP_COMPONENT(RUMP_COMPONENT_SYSCALL)
+{
+
+       rump_syscall_boot_establish(mysys, __arraycount(mysys));
+}
diff -r f3b7c7f6e10f -r 56cde12905c5 sys/rump/librump/rumpnet/rumpnet_syscalls.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/librump/rumpnet/rumpnet_syscalls.c       Sun Apr 27 15:13:57 2014 +0000
@@ -0,0 +1,56 @@
+/*     $NetBSD: rumpnet_syscalls.c,v 1.1 2014/04/27 15:13:58 pooka Exp $       */
+
+/* AUTOMATICALLY GENERATED BY makerumpsyscalls.sh */
+
+#include <sys/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: rumpnet_syscalls.c,v 1.1 2014/04/27 15:13:58 pooka Exp $");
+
+#include <sys/param.h>
+
+#include "rump_private.h"
+
+extern const sy_call_t sys_recvmsg;
+extern const sy_call_t sys_sendmsg;
+extern const sy_call_t sys_recvfrom;
+extern const sy_call_t sys_accept;
+extern const sy_call_t sys_getpeername;
+extern const sy_call_t sys_getsockname;
+extern const sy_call_t sys_connect;
+extern const sy_call_t sys_bind;
+extern const sy_call_t sys_setsockopt;
+extern const sy_call_t sys_listen;
+extern const sy_call_t sys_getsockopt;
+extern const sy_call_t sys_sendto;
+extern const sy_call_t sys_shutdown;
+extern const sy_call_t sys_socketpair;
+extern const sy_call_t sys___socket30;
+extern const sy_call_t sys_paccept;
+extern const sy_call_t sys_recvmmsg;
+extern const sy_call_t sys_sendmmsg;
+
+static const struct rump_onesyscall mysys[] = {
+       { 27,   sys_recvmsg },
+       { 28,   sys_sendmsg },
+       { 29,   sys_recvfrom },
+       { 30,   sys_accept },
+       { 31,   sys_getpeername },
+       { 32,   sys_getsockname },
+       { 98,   sys_connect },
+       { 104,  sys_bind },
+       { 105,  sys_setsockopt },
+       { 106,  sys_listen },
+       { 118,  sys_getsockopt },
+       { 133,  sys_sendto },
+       { 134,  sys_shutdown },
+       { 135,  sys_socketpair },
+       { 394,  sys___socket30 },
+       { 456,  sys_paccept },
+       { 475,  sys_recvmmsg },
+       { 476,  sys_sendmmsg },
+};
+
+RUMP_COMPONENT(RUMP_COMPONENT_SYSCALL)
+{
+
+       rump_syscall_boot_establish(mysys, __arraycount(mysys));
+}
diff -r f3b7c7f6e10f -r 56cde12905c5 sys/rump/librump/rumpvfs/rumpvfs_syscalls.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/librump/rumpvfs/rumpvfs_syscalls.c       Sun Apr 27 15:13:57 2014 +0000
@@ -0,0 +1,212 @@
+/*     $NetBSD: rumpvfs_syscalls.c,v 1.1 2014/04/27 15:13:58 pooka Exp $       */
+
+/* AUTOMATICALLY GENERATED BY makerumpsyscalls.sh */
+
+#include <sys/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: rumpvfs_syscalls.c,v 1.1 2014/04/27 15:13:58 pooka Exp $");
+
+#include <sys/param.h>
+
+#include "rump_private.h"
+
+extern const sy_call_t sys_open;
+extern const sy_call_t sys_link;
+extern const sy_call_t sys_unlink;
+extern const sy_call_t sys_chdir;
+extern const sy_call_t sys_fchdir;
+extern const sy_call_t sys_chmod;
+extern const sy_call_t sys_chown;
+extern const sy_call_t sys_unmount;
+extern const sy_call_t sys_access;
+extern const sy_call_t sys_chflags;
+extern const sy_call_t sys_fchflags;
+extern const sy_call_t sys_sync;
+extern const sy_call_t sys_ktrace;
+extern const sy_call_t sys_revoke;
+extern const sy_call_t sys_symlink;
+extern const sy_call_t sys_readlink;
+extern const sy_call_t sys_umask;
+extern const sy_call_t sys_chroot;
+extern const sy_call_t sys_fsync;
+extern const sy_call_t sys_fchown;
+extern const sy_call_t sys_fchmod;
+extern const sy_call_t sys_rename;
+extern const sy_call_t sys_mkfifo;
+extern const sy_call_t sys_mkdir;
+extern const sy_call_t sys_rmdir;
+extern const sy_call_t sys_pread;
+extern const sy_call_t sys_pwrite;
+extern const sy_call_t sys_pathconf;
+extern const sy_call_t sys_lseek;
+extern const sy_call_t sys_truncate;
+extern const sy_call_t sys_ftruncate;
+extern const sy_call_t sys_fdatasync;
+extern const sy_call_t sys_lchmod;
+extern const sy_call_t sys_lchown;
+extern const sy_call_t sys_preadv;
+extern const sy_call_t sys_pwritev;
+extern const sy_call_t sys___getcwd;
+extern const sy_call_t sys_fchroot;
+extern const sy_call_t sys_lchflags;
+extern const sy_call_t sys_fsync_range;
+extern const sy_call_t sys_getvfsstat;
+extern const sy_call_t sys_statvfs1;
+extern const sy_call_t sys_fstatvfs1;
+extern const sy_call_t sys_extattrctl;
+extern const sy_call_t sys_extattr_set_file;
+extern const sy_call_t sys_extattr_get_file;
+extern const sy_call_t sys_extattr_delete_file;
+extern const sy_call_t sys_extattr_set_fd;
+extern const sy_call_t sys_extattr_get_fd;
+extern const sy_call_t sys_extattr_delete_fd;
+extern const sy_call_t sys_extattr_set_link;
+extern const sy_call_t sys_extattr_get_link;
+extern const sy_call_t sys_extattr_delete_link;
+extern const sy_call_t sys_extattr_list_fd;
+extern const sy_call_t sys_extattr_list_file;
+extern const sy_call_t sys_extattr_list_link;
+extern const sy_call_t sys_setxattr;
+extern const sy_call_t sys_lsetxattr;
+extern const sy_call_t sys_fsetxattr;
+extern const sy_call_t sys_getxattr;
+extern const sy_call_t sys_lgetxattr;
+extern const sy_call_t sys_fgetxattr;
+extern const sy_call_t sys_listxattr;
+extern const sy_call_t sys_llistxattr;
+extern const sy_call_t sys_flistxattr;
+extern const sy_call_t sys_removexattr;
+extern const sy_call_t sys_lremovexattr;



Home | Main Index | Thread Index | Old Index