Tuesday, August 3, 2010

syscall debug of /sbin/init

U-Boot 1.1.1 (U-boot build #: 235) (SDK version: 1.9.0-312) (Build time: Apr 23 2009 - 19:30:08)


DRAM: 384 MB
Using default environment


Copying user supplied environment from file flash
Configuring boot bus for full 256meg access
Flash: 256 MB


ELF file is 64 bit
Attempting to allocate memory for ELF segment: addr: 0xffffffff81000000 (adjusted to: 0x0000000001000000), size 0x5d54e0
Allocated memory for ELF segment: addr: 0xffffffff81000000, size 0x5d54e0
Processing PHDR 0
Loading 550350 bytes at ffffffff81000000
Clearing 85190 bytes at ffffffff81550350
## Loading Linux kernel with entry point: 0xffffffff81000000 ...
Bootloader: Done loading app on coremask: 0x1
cvmctl:b00043f0 cvmmemctl:46104
Boot Descriptor Ver: 7 -> 1/2 CPU clock: 700MHz Core Mask: 0x1
Dram: 384 MB Board Type: 1 Revision: 1/0
Octeon Chip: 0 Rev 0/0 Mac Address 00.DE.AD.BE.EF.00 (255)
l1icache size:32768 line:128 set:0
l1dcache size:16384 line:128 set:0
l2size:131072 l3size:0
Initial setup done, switching console.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2010 OpenBSD. All rights reserved. http://www.OpenBSD.org


OpenBSD 4.7-current (RAMDISK.MP) #3: Tue Aug 3 05:46:58 JST 2010
syuu@openbsd0.plan9-jp.info:/home/syuu/octeon/src/sys/arch/octeon/compile/RAMDISK.MP
real mem = 77758464 (74MB)
avail mem = 70696960 (67MB)
mainbus0 at root: Generic OCTEON
cpu0 at mainbus0: Unknown CPU type (0x6) rev 0.0 499 MHz, Unknown FPU type (0x6) rev 0.0
cpu0: cache L1-I 32KB D 16KB 4 way, L2 128KB direct
cpu0: Setsize 0:0
cpu0: Alias mask 0x0
cpu0: Config Register 8000c48f
cpu0: Cache configuration 0
cpu0: Status Register 508000e0
clock0 at mainbus0: ticker on int5 using count register
Timecounters tick every 10.000 msec
rd0: fixed, 8192 blocks
root on rd0a swap on rd0b dump on rd0b
dev=0x800 chrdev=0x1600 rawdev=0x1602
WARNING: No TOD clock, believing file system.
WARNING: CHECK AND RESET THE DATE!
init: copying out path `/sbin/init' 11
proc 1 (init): native num 202 call: __sysctl(0x7ffdfa40, 0x2, 0x101a1c70, 0x7ffdfa50, 0x0, 0x0)
proc 1 (init): native num 202 ret: err = 0, rv = 0x0,0x25
proc 1 (init): native num 202 call: __sysctl(0x7ffdfa00, 0x2, 0x1024c4b0, 0x7ffdfa10, 0x0, 0x0)
proc 1 (init): native num 202 ret: err = 0, rv = 0x0,0x6
proc 1 (init): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 1 (init): native num 197 ret: err = 0, rv = 0x56d18000,0x3
proc 1 (init): native num 74 call: mprotect(0x56d18000, 0x4000, 0x1)
proc 1 (init): native num 74 ret: err = 0, rv = 0x0,0x56d18018
proc 1 (init): native num 24 call: getuid()
proc 1 (init): native num 24 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 20 call: getpid()
proc 1 (init): native num 20 ret: err = 0, rv = 0x1,0x0
proc 1 (init): native num 147 call: setsid()
proc 1 (init): native num 147 ret: err = 0, rv = 0x1,0x10175fd8
proc 1 (init): native num 50 call: setlogin(0x10176000)
proc 1 (init): native num 50 ret: err = 0, rv = 0x0,0x10175fd8
proc 1 (init): native num 46 call: sigaction(0xc, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x6, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x8, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x4, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0xb, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0xa, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x18, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x19, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x1, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0xf, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x12, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x1e, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x1f, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0xe, 0x7ffdf970, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 48 call: sigprocmask(0x3, 0xffffffff9e7d9156)
proc 1 (init): native num 48 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x15, 0x7ffdfa30, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x16, 0x7ffdfa30, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 6 call: close(0x0)
proc 1 (init): native num 6 ret: err = 9, rv = 0x0,0x0
proc 1 (init): native num 6 call: close(0x1)
proc 1 (init): native num 6 ret: err = 9, rv = 0x0,0xffffffffffffffff
proc 1 (init): native num 6 call: close(0x2)
proc 1 (init): native num 6 ret: err = 9, rv = 0x0,0xffffffffffffffff
proc 1 (init): native num 202 call: __sysctl(0x7ffdf110, 0x2, 0x7ffdf120, 0x7ffdf128, 0x0, 0x0)
proc 1 (init): native num 202 ret: err = 0, rv = 0x0,0x1
proc 1 (init): native num 2 call: fork()
proc 1 (init): native num 2 ret: err = 0, rv = 0x6724,0x0
proc 1 (init): native num 7 call: wait4(0xffffffffffffffff, 0x7ffdf154, 0x2, 0x0)
proc 26404 (init): native num 56 call: revoke(0x10176158)
proc 26404 (init): native num 56 ret: err = 0, rv = 0x0,0x1
proc 26404 (init): native num 240 call: nanosleep(0x7ffdf0e0, 0x7ffdf0f0)

No comments:

Post a Comment