Commit Graph

195494 Commits

Author SHA1 Message Date
pooka
d3ab3ede2e Add -m which can be used to load modules (which is a completely
different code path than using dlopen() before rump_init(), since
the former uses the in-kernel linker and the latter links the object
in rtld).

So:
golem> ./rump_server -l librumpvfs.so -m /sys/modules/tmpfs/tmpfs.kmod unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
suser            secmodel   builtin    0     -        -
tmpfs            vfs        filesys    0     16713    -
wapbl            vfs        builtin    0     -        -

Source is filesys instead of builtin, as expected.

Notably, for -m you *must* use -l librumpvfs.so.  This is because
you need VFS in your kernel to be able to load modules from the
file system.  In a regular kernel "librumpvfs.so" is linked at
kernel build time and loaded by the bootloader.  Here we use dlopen()
for both effects (the other choices would have been to link
rump_server with -lrumpvfs, but that would limit the flexibility,
or link tmpfs.kmod directly into the binary, but that would limit
the flexibility even more).
2010-12-13 14:13:21 +00:00
pooka
92050ae959 stubs to make life easier 2010-12-13 14:03:59 +00:00
pooka
ae428f9a60 directory not used anymore 2010-12-13 13:41:41 +00:00
pooka
73b0b48907 Retire h_simpleserver and use rump_server instead. 2010-12-13 13:39:42 +00:00
pooka
bfedfec98d +rump_server 2010-12-13 13:38:18 +00:00
pooka
ac0678fe1e Handle -l which dlopens libs. This is more applicable to rump_server
than rump_allserver.

So if I do:

golem> rump_server unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
suser            secmodel   builtin    0     -        -

and:

golem> rump_server -l librumpvfs.so unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
suser            secmodel   builtin    0     -        -
wapbl            vfs        builtin    0     -        -

golem> rump_server -l librumpvfs.so -l librumpfs_ffs.so unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
ffs              vfs        builtin    0     -        -
suser            secmodel   builtin    0     -        -
wapbl            vfs        builtin    0     -        -

Well, you get the picture...
2010-12-13 13:32:25 +00:00
pooka
53fb74fd7e Add rump_server which is just like rump_allserver with the exception
that it links in only -lrump instead of everything.  The startup
time difference (especially when attaching a debugger) is noticeable.
2010-12-13 13:29:15 +00:00
cegger
10cb97e079 PR bin/44230: Missing close. 2010-12-13 11:51:23 +00:00
jruoho
05a9f55544 Xref module(4). 2010-12-13 10:07:46 +00:00
pooka
33c6814d7a document abortop. part of PR kern/44208 2010-12-13 09:06:51 +00:00
kiyohara
5d76b58f56 Fix PR#43911. 2010-12-13 07:29:12 +00:00
mrg
66d8b6ae79 add definitions for T_DATA_MMU_MISS, T_FAST_ECC_ERROR, T_DC_PAR_ERR
and T_IC_PAR_ERR, all are >= USIII only.
2010-12-13 06:40:13 +00:00
mrg
670d7ed693 trap 0x70 is a "+fast ECC error". 2010-12-13 06:35:03 +00:00
mrg
d541f2b66d reinstall awk.texi. 2010-12-13 06:30:44 +00:00
mrg
7246249458 re-add gawk 3.1.3's awk.texi 2010-12-13 06:21:53 +00:00
dholland
75724edb45 typo in comment 2010-12-13 05:01:56 +00:00
dholland
a0bf60f562 Tables used by parser logic should be const. 2010-12-13 03:36:39 +00:00
dholland
0b6f5dd2c0 Remove stray extern definition that's already in jobs.h. 2010-12-13 03:35:13 +00:00
dholland
460acf6f5e Cosmetic: declare types before variables, group variables by role,
update some comments, format comments properly, etc. No functional
change intended.
2010-12-13 03:32:25 +00:00
dholland
e8acbf7847 Add const necessary for clean non-native build. 2010-12-13 01:48:50 +00:00
christos
f4dfcf5469 warns=4 2010-12-13 01:45:38 +00:00
christos
976857bd1b fix build. 2010-12-13 01:44:25 +00:00
christos
38a17f8f2b fix possibly uninitialized variable 2010-12-13 01:25:19 +00:00
riz
b7560d46dc PR bin/44209 is now fixed, expect failure -> expect success. 2010-12-12 22:50:42 +00:00
riz
d365bee0c8 Remove bogus check which is not actually testing anything useful,
and depending on file system data, can actually be a false error.

Fixes what I was actually testing for in bin/44209, though the
actual problem was not what I originally described.
2010-12-12 22:48:59 +00:00
joerg
230ccda64c Don't bother with SCCS or the other RCSID conditionals. 2010-12-12 22:34:44 +00:00
pgoyette
778ab9e884 Fix another reference to LKM, and update author's name. 2010-12-12 22:14:19 +00:00
wiz
26a33d6cdb Split "filesystem", and remove superfluous Pp. 2010-12-12 22:11:02 +00:00
christos
b3ddcb3ea2 errlist.c is automatically generated now. 2010-12-12 20:22:48 +00:00
joerg
b4eb5d9c57 Kill double .TP 2010-12-12 20:20:43 +00:00
joerg
1a85759af0 Kill double .TP 2010-12-12 20:19:41 +00:00
christos
5eeef29dbe remove comment 2010-12-12 20:16:09 +00:00
christos
91083d6e86 Automatically generate the error list. 2010-12-12 20:08:27 +00:00
mhitch
a7e78491e5 Add support for old ffsv1 superblocks. After reading an old superblock,
copy appropriate data to where they are expected in the updated superblock.
When writing the updated superblock, move the updated values back to the
old ffsv1 superblock locations.  Also check for old superblock format when
updating the last cylinder group and adjust cg_old_ncyl appropriately.
Derived from how mksf sets them.  Should address PR bin/44209.
2010-12-12 19:53:23 +00:00
pgoyette
1a0912fe8a Update sets for new module(4) man page. 2010-12-12 19:29:23 +00:00
pgoyette
bded1272a7 Add module(4) man page by popular request.
XXX Major portions copied shamelessly from cgd's earlier lkm(4) man page,
XXX so his original copyright/license is retained.
2010-12-12 19:29:01 +00:00
christos
e8465113ee remove awk.info 2010-12-12 19:04:08 +00:00
christos
bc03f5ba09 Don't build awk.info because matt removed it. 2010-12-12 19:01:03 +00:00
christos
245a0c0325 remove old libpcap. 2010-12-12 18:52:41 +00:00
christos
dc449ddee1 use new tcpdump. 2010-12-12 18:50:31 +00:00
joerg
2e05e5b66d Reply 1.15, lost in the last update. 2010-12-12 18:40:01 +00:00
christos
49f71b9cd5 PR/42549: Izumi Tsutsui: parsedate does not work after 2038.
Fix multiple issues:
- Remove bogus 2038 check and add overflow checks in the appropriate places.
- Correct incomplete leap year calculation that broke things after 2100.
- Check localtime return values
- Change int calculations to time_t to avoid oveflow.
- Consistently check/return -1 and remove bogus comment about not being
  able to return -1.

Now:
$ date -d 20991201
Tue Dec  1 00:00:00 EST 2099
$ date -d 40991201
Tue Dec  1 00:00:00 EST 4099
$ date -d 10000000991201
Tue Dec  1 00:00:00 EST 1000000099
TIME=0:04.48 CPU=117.8% (5.288u 0.000s) SWAPS=0 (0+95)pf (0i+0o) (0Kc+0Kd)
$ date -d 100000000991201
date: Cannot parse `100000000991201'
TIME=0:53.48 CPU=99.2% (53.086u 0.000s) SWAPS=0 (0+96)pf (0i+0o) (0Kc+0Kd)
Exit 1
2010-12-12 18:39:57 +00:00
pooka
4e63731664 lint hint to previous 2010-12-12 18:33:44 +00:00
pooka
ae8a3e28c6 Reboot when killed (does cleanup). 2010-12-12 18:32:47 +00:00
joerg
31b95753a0 Simplify 2010-12-12 18:21:21 +00:00
pooka
34c8240044 Unlink unix socket as part of server exit.
(whatever happened to the code that was supposed to do it automatically
when the binding process exits?)
2010-12-12 17:58:28 +00:00
christos
187cac5a8d check return value of localtime. 2010-12-12 17:30:23 +00:00
pooka
c5a6f78a61 note -h caveat 2010-12-12 17:15:16 +00:00
pooka
cee48cd5d1 Call rumpuser_sp_fini() from cpu_reboot() to make sure sys_reboot
with RB_HALT does not hang.
2010-12-12 17:11:33 +00:00
pooka
c59435eea2 add rumpuser_sp_fini, which surpringly is the opposite of rumpuser_sp_init 2010-12-12 17:10:36 +00:00