Commit Graph

195523 Commits

Author SHA1 Message Date
pooka
67a4f392d8 use crunchops for crunchables 2010-12-13 21:48:01 +00:00
pooka
a74a091f67 use CRUNCHOPS for a crunched prog 2010-12-13 21:47:32 +00:00
pooka
43673c5e38 befriend RUMPPRG with CRUNCHEDPRG 2010-12-13 21:47:04 +00:00
pooka
f2ee316255 Add netstat rump client. For now, it always sets -X, i.e. will
use only sysctl and no kvm (implementing /dev/mem for a rump kernel
would probably not be hard, but still a non-zero effort).

Note: since there is absolutely no network activity in a fresh rump
kernel, rump.netstat usually displays exactly nothing when invoked
without parameters.  Arguments like -r, -bi, -p icmp etc. produce
more stuff.
2010-12-13 21:15:30 +00:00
plunky
c7407d6266 add attributes from the Basic Printing Profile v1.2r00 2010-12-13 21:08:37 +00:00
pooka
5f35396ed8 last of the RUMP_ACTION syscall swappers 2010-12-13 21:07:54 +00:00
pooka
91780b046c +rump.mod* 2010-12-13 20:51:11 +00:00
pooka
e73ffdda13 Add rump client support for module utilities. It should be noted
that while modstat and modunload and builtin modules work exactly
the same as in the host case, modload loads file system kernel
modules from the rump kernel namespace.  By default, archs which
have rump support for the kernel kernel ABI have the host module
directory mapped into the rump kernel namespace at the same location
(/stand/...).  Therefore, if the *host* module directory is populated,
"rump.modload foo" will work as expected.  Otherwise, RUMP_MODULEBASE
can be used to point to the module directory.
2010-12-13 20:48:44 +00:00
pooka
759b07d20a there's a manpage now ... just not here 2010-12-13 19:39:37 +00:00
joerg
fbd98e1bd6 Add PT_GNU_EH_FRAME definition 2010-12-13 19:37:32 +00:00
pooka
78f20aa8ef manpage 2010-12-13 19:36:34 +00:00
jruoho
f6b2d8b701 Prompted by dholland@; add the C99 TCORs. 2010-12-13 19:35:00 +00:00
jruoho
37f05f2dfb Clarifications. Improvements to wording and markup. Also follow the common
conventions and split the NOTES into CAVEATS (all these really highlight the
work-in-progress nature of the modules). Split the note about security into
SECURITY CONSIDERATIONS. Add an EXAMPLE on how to manually update modules.
2010-12-13 19:22:01 +00:00
pooka
e8de1d91d0 be a happy crunch build 2010-12-13 19:19:10 +00:00
njoly
6c19f9ea7b op_read return value is a ssize_t, not an int. 2010-12-13 19:17:20 +00:00
pooka
c7202418cd +rump.envstat 2010-12-13 18:02:04 +00:00
pooka
3d4766ce57 RUMP_ACTION -> RUMPPRG 2010-12-13 18:00:38 +00:00
pooka
3731ffce96 add fresh rump clients 2010-12-13 17:51:39 +00:00
pooka
f9740ada7f RUMP_ACTION -> RUMPPRG 2010-12-13 17:42:17 +00:00
pooka
e3d9b779d8 Convert from RUMP_ACTION to RUMPPRG. 2010-12-13 17:39:47 +00:00
pooka
8603230f7e Define PROG here since Makefile.inc no longer defines it. 2010-12-13 17:35:31 +00:00
pooka
a415ef09e9 Convert from the .ifdef RUMP_ACTION stuff to RUMPPRG. 2010-12-13 17:35:08 +00:00
pooka
84d9317cb6 Define RUMPPRG, which is just like PROG, except it additionally
builds a rump client with the name rump.${PROG}.  The rump client
is not installed suid/sgid by default even if BINMODE is defined.
2010-12-13 17:22:26 +00:00
christos
63cfe07dab PR/44229: Henning Petersen: Remove dup check for whitespace. 2010-12-13 16:54:04 +00:00
christos
fc494df71d - no casts for malloc and free
- malloc(type) -> malloc(*value)
- malloc+strcpy -> strdup
2010-12-13 16:52:53 +00:00
matt
4f2934afef Change definition of pc_bus_maxdevs to get a void * instead a pci_chipset_tag_t
to match its use in pci_bus_maxdevs.  This makes it the same as pci_conf_read
and pci_conf_write.
Change all struct device * to device_t.
[Obviously nothing ever used the first argument to pc_bus_maxdevs since it
could have never worked because it wasn't being passed a pci_chipset_tag_t.]
2010-12-13 16:19:02 +00:00
pooka
dde3f793dc Also support ld syntax in -l.
was: -l librumpvfs.so
now: -lrumpvfs
2010-12-13 14:26:22 +00:00
matt
2c1217a227 Back out rev that shouldn't have been committed. 2010-12-13 14:18:50 +00:00
pooka
2f36209c20 Mirror sysctlgetmibinfo RUMP_ACTION change. 2010-12-13 14:17:11 +00:00
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