Subject: Re: problem with kernfs & tail
To: None <current-users@netbsd.org, mouse@Rodents.Montreal.QC.CA>
From: Sean Doran <smd@ebone.net>
List: current-users
Date: 08/19/1998 19:33:16
Woo hoo, I see it even better than Mouse:

: sean.ebone.net ; tail /kern/msgbuf
: sean.ebone.net ; cat /kern/msgbuf | tail
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: read port 0x203
sb0 at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,5
sb0: Creative ViBRA16C PnP Audio: dsp v4.13
audio0 at sb0
isapnp0: <Creative ViBRA16C PnP, CTL7001, PNPB02F, Game> port 0x200/8 not configured
biomask 5040 netmask 5440 ttymask 54c2
boot device: sd0
root on sd0a dumps on sd0b

...
 16277 tail     CALL  open(0xefbfca15,0,0x1b6)
 16277 tail     NAMI  "/kern/msgbuf"
 16277 tail     RET   open 7
 16277 tail     CALL  __fstat13(0x7,0xefbfc818)
 16277 tail     RET   __fstat13 0
 16277 tail     CALL  mmap(0,0xff0,0x1,0x1,0x7,0,0,0)
 16277 tail     RET   mmap 1073852416/0x4001b000
 16277 tail     CALL  write(0x1,0x4001b000,0xff0)
 16277 tail     GIO   fd 1 wrote 4080 bytes
       "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
...
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
 16277 tail     RET   write 4080/0xff0
 16277 tail     CALL  __fstat13(0x7,0xefbfc5f0)
 16277 tail     RET   __fstat13 0
 16277 tail     CALL  __sysctl(0xefbfc62c,0x2,0x4008a21c,0xefbfc628,0,0)
 16277 tail     RET   __sysctl 0
 16277 tail     CALL  break(0x42b0)
 16277 tail     RET   break 0
 16277 tail     CALL  break(0x4ffc)
 16277 tail     RET   break 0
 16277 tail     CALL  break(0x5ffc)
 16277 tail     RET   break 0
 16277 tail     CALL  lseek(0x7,0,0,0,0x1)
 16277 tail     RET   lseek 0
 16277 tail     CALL  lseek(0x7,0,0xe00,0,0)
 16277 tail     RET   lseek 3584/0xe00
 16277 tail     CALL  read(0x7,0x5000,0x200)
 16277 tail     GIO   fd 7 read 496 bytes
       "sa0 port 0xf0-0xff: using exception 16
        pc0 at isa0 port 0x60-0x6f irq 1: color
        pc0: console
        fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
        fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
        isapnp0: read port 0x203
        sb0 at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,5
        sb0: Creative ViBRA16C PnP Audio: dsp v4.13
        audio0 at sb0
        isapnp0: <Creative ViBRA16C PnP, CTL7001, PNPB02F, Game> port 0x200/8 \
        not configured
        biomask 5040 netmask 5440 ttymask 54c2
        boot device: sd0
        root on sd0a dumps on sd0b
       "
 16277 tail     RET   read 496/0x1f0
 16277 tail     CALL  munmap(0x4001b000,0xff0)
 16277 tail     RET   munmap 0
 16277 tail     CALL  read(0x7,0x5000,0x200)
 16277 tail     GIO   fd 7 read 0 bytes
       ""
 16277 tail     RET   read 0
 16277 tail     CALL  close(0x7)
 16277 tail     RET   close 0
 16277 tail     CALL  exit(0)


	Sean.