GDB: debug ports: uart GDB: current port: uart KDB: debugger backends: ddb gdb KDB: current backend: ddb Copyright (c) 2008-2012 Semihalf. Copyright (c) 1992-2012 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-CURRENT #234 r+730643d-dirty: Mon Jul 2 17:53:06 CEST 2012 CPU: Cortex A15-r2 rev 0 (Cortex-A core) Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext WB disabled EABT branch prediction enabled LoUU:2 LoC:2 LoUIS:2 Cache level 1: 32KB/64B 2-way data cache WB Read-Alloc Write-Alloc 32KB/64B 2-way instruction cache Read-Alloc Cache level 2: 512KB/64B 16-way unified cache WB Read-Alloc Write-Alloc real memory = 1073741824 (1024 MB) avail memory = 1035591680 (987 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs random device not loaded; using insecure entropy simplebus0: on fdtbus0 gic0: mem 0xf1021000-0xf1021fff,0xf1022000-0xf1023fff on simplebus0 gic0: pn 0x390, arch 0x1, rev 0x0, implementer 0x43b nirqs 1020 generic_timer0: irq 29 on simplebus0 Event timer "ARMv7 Generic MPCore Timer" frequency 50000000 Hz quality 1000 Timecounter "ARMv7 Generic MPCore Timer" frequency 50000000 Hz quality 1000 uart0: mem 0xf1012000-0xf1012051 irq 41 on simplebus0 uart0: console (115200,n,8,1) uart1: mem 0xf1012100-0xf1012151 irq 42 on simplebus0 uart2: mem 0xf1012200-0xf1012251 irq 43 on simplebus0 uart3: mem 0xf1012300-0xf1012351 irq 44 on simplebus0 Timecounters tick every 10.000 msec rn_init: radix functions require max_keylen be set Release APs Trying to mount root from ufs:/dev/md0 []... warning: no time-of-day clock registered, system time will not be set accurately cannot open /etc/rc: No such file or directory Enter full pathname of shell or RETURN for /bin/sh: Cannot read termcap database; using dumb terminal settings. # # # # # top -P last pid: 15; load averages: 0.59, 0.13, 0.05 up 0+00:00:09 07:45:00 2 processes: 1 running, 1 sleeping Mem: 25M Active, 1688K Inact, 12M Wired, 40K Cache, 496K Buf, 952M Free Swap: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 14 0 1 8 0 10388K 9600K wait 0 0:00 6.21% sh 15 0 1 43 0 10900K 9508K CPU0 0 0:00 0.00% top # top -P last pid: 16; load averages: 0.59, 0.13, 0.05 up 0+00:00:09 07:45:00 2 processes: 1 running, 1 sleeping Mem: 25M Active, 1712K Inact, 12M Wired, 24K Cache, 496K Buf, 952M Free Swap: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 14 0 1 8 0 10388K 9600K wait 0 0:00 6.21% sh 16 0 1 48 0 10900K 9540K CPU1 1 0:00 0.00% top # top -P last pid: 17; load averages: 0.59, 0.13, 0.05 up 0+00:00:10 07:45:01 2 processes: 1 running, 1 sleeping Mem: 25M Active, 1708K Inact, 12M Wired, 24K Cache, 496K Buf, 952M Free Swap: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 14 0 1 8 0 10388K 9600K wait 0 0:00 5.29% sh 17 0 1 50 0 10900K 9540K CPU1 1 0:00 0.00% top # vmstat -i interrupt total rate irq29: generic_time 8121 812 irq43: uart2 1639 163 Total 11300 1130 # ps -aux USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND 0 10 164.8 0.9 0 9508 - RL 7:44AM 0:19.31 [idle] 0 14 3.2 0.9 10388 9600 u0 Ss 7:44AM 0:00.50 -sh (sh) 0 1 2.5 0.8 9240 8656 - SLs 7:44AM 0:00.44 /sbin/init -- 0 11 0.2 0.9 0 9556 - WL 7:44AM 0:00.08 [intr] 0 0 0.0 0.9 0 9524 - DLs 7:44AM 0:00.00 [kernel] 0 2 0.0 0.9 0 9500 - DL 7:44AM 0:00.01 [pagedaemon] 0 3 0.0 0.9 0 9500 - DL 7:44AM 0:00.00 [pagezero] 0 4 0.0 0.9 0 9500 - DL 7:44AM 0:00.00 [bufdaemon] 0 5 0.0 0.9 0 9500 - DL 7:44AM 0:00.00 [syncer] 0 6 0.0 0.9 0 9500 - DL 7:44AM 0:00.00 [vnlru] 0 7 0.0 0.9 0 9500 - DL 7:44AM 0:00.00 [schedcpu] 0 8 0.0 0.9 0 9500 - DL 7:44AM 0:00.02 [md0] 0 12 0.0 0.9 0 9516 - DL 7:44AM 0:00.03 [geom] 0 13 0.0 0.9 0 9500 - DL 7:44AM 0:00.00 [yarrow] 0 19 0.0 0.9 10116 9220 u0 R+ 7:45AM 0:00.44 ps -aux # uname -a FreeBSD 10.0-CURRENT FreeBSD 10.0-CURRENT #234 r+730643d-dirty: Mon Jul 2 17:53:06 CEST 2012 # ~KDB: enter: Break to debugger [ thread pid 10 tid 100002 ] Stopped at kdb_enter+0x44: ldrb r15, [r15, r15, ror r15]! db> ps pid ppid pgrp uid state wmesg wchan cmd 14 1 14 0 Ss+ ttyin 0xc5e27a70 sh 8 0 0 0 DL mdwait 0xc5fa2000 [md0] 7 0 0 0 DL - 0xc1bebf68 [schedcpu] 6 0 0 0 DL vlruwt 0xc5e4db80 [vnlru] 5 0 0 0 DL syncer 0xc1bfc284 [syncer] 4 0 0 0 DL psleep 0xc1bfbf6c [bufdaemon] 3 0 0 0 DL pgzero 0xc1bfe698 [pagezero] 2 0 0 0 DL psleep 0xc1bfe108 [pagedaemon] 13 0 0 0 DL - 0xc1bebf68 [yarrow] 12 0 0 0 DL (threaded) [geom] 100010 D - 0xc1be9904 [g_down] 100009 D - 0xc1be9900 [g_up] 100008 D - 0xc1be98f8 [g_event] 11 0 0 0 WL (threaded) [intr] 100018 I [swi0: uart uart++] 100017 I [swi6: Giant taskq] 100015 I [swi5: +] 100013 I [swi6: task queue] 100007 I [swi4: clock] 100006 I [swi4: clock] 100005 I [swi3: vm] 100004 I [swi1: netisr 0] 10 0 0 0 RL (threaded) [idle] 100003 Run CPU 1 [idle: cpu1] 100002 Run CPU 0 [idle: cpu0] 1 0 1 0 SLs wait 0xc5e4d000 [init] 0 0 0 0 DLs (threaded) [kernel] 100016 D - 0xc5ee5a00 [thread taskq] 100014 D - 0xc5edf540 [kqueue taskq] 100012 D - 0xc5edf600 [ffs_trim taskq] 100000 D sched 0xc1be9988 [swapper] db> show intr swi1: netisr 0 (pid 11) {SOFT} swi3: vm (pid 11) {SOFT} swi4: clock (pid 11) {SOFT} swi4: clock (pid 11) {SOFT} swi6: task queue (pid 11) {SOFT} swi5: + (pid 11) {SOFT} swi6: Giant taskq (pid 11) {SOFT} intr29: + (no thread) intr41: uart0 (no thread) swi0: uart uart++ (pid 11) {SOFT} intr42: uart1 (no thread) intr43: uart2 (no thread) intr44: uart3 (no thread) intr0: ipi (no thread) intr1: ipi (no thread) intr2: ipi (no thread) intr3: ipi (no thread) intr4: ipi (no thread) intr5: ipi (no thread) intr6: ipi (no thread) intr7: ipi (no thread) intr8: ipi (no thread) intr9: ipi (no thread) intr10: ipi (no thread) intr11: ipi (no thread) intr12: ipi (no thread) intr13: ipi (no thread) intr14: ipi (no thread) intr15: ipi (no thread) db> c #