Commit Graph

20 Commits

Author SHA1 Message Date
pooka 23dfcd7408 Use autoconf for rump kernel posix hypercall layer.
This gets rid of homegrown hacks and puts all probes in one place.

Tested for NetBSD (build.sh + anita) and Linux (buildrump.sh)
2014-11-04 19:05:17 +00:00
pooka 65016d742c Might as well byteswap when we assign to local variables instead of when
we use said variables.
2014-08-18 14:40:17 +00:00
pooka c0fd8e41a5 quasi-cosmetic nit to previous: limit variable scope 2014-08-18 14:35:29 +00:00
pooka 6dd8e526f0 Add compat for bus version 2.
Fixes tests, but, XXX, should add tests for bus version 3.
2014-08-18 14:33:23 +00:00
pooka c31e06706c make name more descriptive: SWAPME -> FIXENDIAN
no functional change
2014-08-18 14:23:24 +00:00
pooka 756b0ff491 fix tyop in error message 2014-08-18 14:21:44 +00:00
pooka 3b9faec799 support endian-independent operation on all platforms 2014-08-18 14:21:18 +00:00
pooka aab6639102 make portable 2013-12-20 10:04:33 +00:00
pooka ef64361cbb Allow overriding LIBCRT0 in mk.conf 2013-12-20 09:44:16 +00:00
pooka 84de6be8b7 RCS Id police stings again! 2013-12-20 09:36:03 +00:00
pooka 26ef2cc943 If creating a pcap dump to stdout, print metainfo to stderr. 2013-12-20 09:32:13 +00:00
joerg 6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
pooka 7bc641dd16 aaaand actually make the logic clause correct 2011-03-14 11:13:22 +00:00
pooka db454f263c make the code also correctly correct, not just xxxgcc'ly correct 2011-03-14 11:10:35 +00:00
pooka 7780c2df6d * attempt to make this endian-independent (tested only on el)
* write via libpcap (since i thought there would be some fancy
  api to deal with endianness.  after doing 80% of the work i
  noticed there wasn't, but went ahead anyway)
2011-03-14 11:08:28 +00:00
pooka bea8760a7c Apropos, pcap doesn't export the on-disk pcap packet header but
only the in-memory one.  Since the in-memory one uses struct timeval
and the on-disk one uses 32bit time_t, things didn't work so well
on -current.  Generate a suitable local packetheader to fix things.
(don't think it's worth writing via libpcap for something as simple
as this)

noticed both by bouyer and the shmif_dumpbus test
2011-03-12 18:27:42 +00:00
pooka a10e19a78e Add some asserts to make sure the bus offset isn't beyond what we
mapped.  (I had a very interesting time last night trying to figure
out what was going when things apparently got compiled with a 64bit
time_t on nb5.  this caused only 4k of the bus file to be mapped...)
2011-03-10 10:11:25 +00:00
pooka 73fa5bcac3 print processing details only if we've not outputting a pcap file
to stdout
2011-03-09 12:56:08 +00:00
wiz 2164f8a67d Fix xref. 2011-01-12 19:53:12 +00:00
pooka fca51725c2 shmif(4) bus dumping utility 2011-01-12 16:14:24 +00:00