GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2007 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 7.0-CURRENT #0: Sun May 27 14:04:10 CEST 2007 pho@crashbox.osted.lan:/usr/src/sys/i386/compile/GENERIC WARNING: WITNESS option enabled, expect reduced performance. module_register(nexus/acpi) module_register(acpi/acpi_button) module_register(acpi/acpi_isab) module_register(pcib/acpi_pci) module_register(acpi/acpi_pcib) module_register(pci/acpi_pcib) module_register(acpi/acpi_sysresource) module_register(acpi/acpi_timer) module_register(acpi/acpi_pci_link) module_register(acpi/acpi_tz) module_register(acpi/acpi_acad) module_register(acpi/acpi_cmbat) module_register(acpi/cpu) module_register(acpi/acpi_ec) module_register(acpi/acpi_hpet) module_register(acpi/acpi_lid) module_register(cpu/acpi_perf) module_register(acpi/acpi_smbat) module_register(cpu/acpi_throttle) module_register(cam) module_register(probe) module_register(xpt) module_register(cd) module_register(ch) module_register(da) module_register(scsi_low) module_register(pass) module_register(sa) module_register(ses) module_register(aac/aacp) module_register(aac/aacd) module_register(pci/aacch) module_register(pci/aac) module_register(eisa/adv) module_register(pci/adv) module_register(pci/adw) module_register(isa/aha) module_register(eisa/ahb) module_register(pccard/aic) module_register(eisa/ahc_eisa) module_register(isa/ahc_isa) module_register(cardbus/ahc_pci) module_register(pci/ahc_pci) module_register(cardbus/ahd) module_register(pci/ahd) module_register(ahd) module_register(ahc) module_register(pci/amd) module_register(amr/amrd) module_register(pci/amr) module_register(isa/an) module_register(pccard/an) module_register(pci/an) module_register(pci/asr) module_register(ata) module_register(pccard/ata) module_register(ata/ad) module_register(isa/ata) module_register(atapci/ata) module_register(pci/atapci) module_register(ataraid) module_register(ad/subdisk) module_register(ata/acd) module_register(ata/afd) module_register(ata/ast) module_register(ath_hal) module_register(ath_rate) module_register(cardbus/if_ath) module_register(pci/if_ath) module_register(pccard/awi) module_register(bce/miibus) module_register(pci/bce) module_register(bfe/miibus) module_register(pci/bfe) module_register(bge/miibus) module_register(pci/bge) module_register(eisa/bt) module_register(isa/bt) module_register(pci/bt) module_register(cbb/cardbus) module_register(pci/ciss) module_register(isa/cs) module_register(pccard/cs) module_register(dc/miibus) module_register(pci/dc) module_register(cardbus/dc) module_register(miibus/dcphy) module_register(miibus/pnphy) module_register(pci/de) module_register(eisa/dpt) module_register(pci/dpt) module_register(ed/miibus) module_register(pccard/ed) module_register(pci/ed) module_register(legacy/eisa) module_register(eisab/eisa) module_register(eisa/mainboard) module_register(pci/em) module_register(eisa/ep) module_register(isa/ep) module_register(pccard/ep) module_register(isa/ex) module_register(pccard/ex) module_register(exca) module_register(pccard/fe) module_register(fwohci/firewire) module_register(cardbus/fwohci) module_register(pci/fwohci) module_register(firewire/fwe) module_register(firewire/sbp) module_register(fxp/miibus) module_register(cardbus/fxp) module_register(pci/fxp) module_register(ida/idad) module_register(eisa/ida) module_register(pci/ida) module_register(isa/ie_SL) module_register(isa/ie_EE16) module_register(isa/ie_3C507) module_register(pci/iir) module_register(ips/ipsd) module_register(pci/ips) module_register(pci/isp) module_register(pci/if_ixgb) module_register(kbdmux) module_register(pci/le) module_register(lge/miibus) module_register(pci/lge) module_register(g_md) module_register(mem) module_register(pci/mfi) module_register(mfi/mfid) module_register(miibus/acphy) module_register(miibus/amphy) module_register(miibus/bmtphy) module_register(miibus/brgphy) module_register(miibus/ciphy) module_register(miibus/e1000phy) module_register(miibus/xlphy) module_register(miibus/gentbi) module_register(miibus/inphy) module_register(miibus/ip1000phy) module_register(miibus/lxtphy) module_register(miibus/mlphy) module_register(miibus/nsgphy) module_register(miibus/nsphy) module_register(miibus/pnaphy) module_register(miibus/qsphy) module_register(miibus/rgephy) module_register(miibus/rlphy) module_register(miibus/ruephy) module_register(miibus/tdkphy) module_register(miibus/tlphy) module_register(miibus/ukphy) module_register(miibus/xmphy) module_register(mlx/mlxd) module_register(pci/mlx) module_register(pci/mly) module_register(mpt_core) module_register(mpt_cam) module_register(pci/mpt) module_register(mpt_raid) module_register(msk/miibus) module_register(mskc/msk) module_register(pci/mskc) module_register(pccard/ncv) module_register(nge/miibus) module_register(pci/nge) module_register(pccard/nsp) module_register(null) module_register(cbb/pccard) module_register(pcic/pccard) module_register(isa/cbb) module_register(pci/cbb) module_register(pci/eisab) module_register(pci/fixup_pci) module_register(pci/hostb) module_register(pci/ignore_pci) module_register(pci/isab) module_register(pcib/pci) module_register(pci/pcib) module_register(pci/vgapci) module_register(ppbus/plip) module_register(ppbus/lpt) module_register(ppc/ppbus) module_register(ppbus/ppi) module_register(isa/ppc) module_register(pci/ppc) module_register(pci/pstpci) module_register(pstpci/pst) module_register(cardbus/ral) module_register(pci/ral) module_register(random) module_register(re/miibus) module_register(cardbus/re) module_register(pci/re) module_register(sk/miibus) module_register(skc/sk) module_register(pci/skc) module_register(isa/sn) module_register(pccard/sn) module_register(isa/stg) module_register(pccard/stg) module_register(pci/stg) module_register(stge/miibus) module_register(pci/stge) module_register(pci/sym) module_register(pci/ti) module_register(pci/trm) module_register(pci/twa) module_register(twe/twed) module_register(pci/twe) module_register(tx/miibus) module_register(pci/tx) module_register(pci/txp) module_register(isa/uart) module_register(pccard/uart) module_register(cardbus/uart) module_register(pci/uart) module_register(cardbus/ehci) module_register(pci/ehci) module_register(aue/miibus) module_register(uhub/aue) module_register(axe/miibus) module_register(uhub/axe) module_register(uhub/cdce) module_register(uhub/cue) module_register(uhub/kue) module_register(uhub/ural) module_register(rue/miibus) module_register(uhub/rue) module_register(uhub/rum) module_register(cardbus/ohci) module_register(pci/ohci) module_register(uhub/ugen) module_register(cardbus/uhci) module_register(pci/uhci) module_register(uhub/uhid) module_register(uhub/uhub) module_register(usb/uhub) module_register(uhub/ukbd) module_register(uhub/ulpt) module_register(uhub/umass) module_register(uhub/ums) module_register(uhub/urio) module_register(slhci/usb) module_register(ehci/usb) module_register(uhci/usb) module_register(ohci/usb) module_register(uhub/uscanner) module_register(vge/miibus) module_register(cardbus/vge) module_register(pci/vge) module_register(eisa/vx) module_register(pci/vx) module_register(watchdog) module_register(pccard/wi) module_register(pci/wi) module_register(pccard/xe) module_register(devfs) module_register(msdosfs) module_register(procfs) module_register(pseudofs) module_register(g_dev) module_register(g_disk) module_register(g_vfs) module_register(g_label) module_register(g_part) module_register(eisab/isa) module_register(isab/isa) module_register(isa/isahint) module_register(isa/orm) module_register(isa/pnp) module_register(cd9660) module_register(elf32) module_register(shell) module_register(cpu/cpufreq) module_register(rootbus) module_register(firmware) module_register(sysvmsg) module_register(msgrcv) module_register(msgsnd) module_register(msgget) module_register(msgctl) module_register(msgsys) module_register(sysvsem) module_register(semop) module_register(semget) module_register(__semctl) module_register(semsys) module_register(sysvshm) module_register(shmget) module_register(shmdt) module_register(shmctl) module_register(shmat) module_register(shmsys) module_register(ether) module_register(if_faith) module_register(if_gif) module_register(loop) module_register(if_ppp) module_register(if_sl) module_register(if_tun) module_register(wlan_amrr) module_register(wlan_ccmp) module_register(wlan_tkip) module_register(wlan_wep) module_register(wlan) module_register(nfs4) module_register(nfs) module_register(nfslock) module_register(nfsserver) module_register(pcn/miibus) module_register(pci/pcn) module_register(rl/miibus) module_register(cardbus/rl) module_register(pci/rl) module_register(sf/miibus) module_register(pci/sf) module_register(sis/miibus) module_register(pci/sis) module_register(ste/miibus) module_register(pci/ste) module_register(tl/miibus) module_register(pci/tl) module_register(vr/miibus) module_register(pci/vr) module_register(wb/miibus) module_register(pci/wb) module_register(xl/miibus) module_register(pci/xl) module_register(cardbus/xl) module_register(ufs) module_register(g_class) module_register(isa/adv) module_register(isa/aic) module_register(pci/arcmsr) module_register(atkbdc/atkbd) module_register(acpi/atkbdc) module_register(isa/atkbdc) module_register(acpi/psmcpnp) module_register(isa/psmcpnp) module_register(atkbdc/psm) module_register(isa/ed) module_register(fdc/fd) module_register(acpi/fdc) module_register(isa/fdc) module_register(pccard/fdc) module_register(isa/fe) module_register(pci/hptmv) module_register(io) module_register(isa/le) module_register(nve/miibus) module_register(pci/nve) module_register(pci/rr232x) module_register(acpi/sio) module_register(isa/sio) module_register(pccard/sio) module_register(cardbus/sio) module_register(pci/sio) module_register(scterm-sc) module_register(scrndr-vga) module_register(g_bsd) module_register(g_mbrext) module_register(g_mbr) module_register(isa/pnpbios) module_register(nexus/apic) module_register(pci/ioapic) module_register(legacy/cpu) module_register(nexus/legacy) module_register(pci/piix) module_register(pci/mptable_pcib) module_register(legacy/mptable_pcib) module_register(isa/sysresource) module_register(nexus/ram) module_register(root/nexus) module_register(acpi/atpic) module_register(isa/atpic) module_register(acpi/attimer) module_register(isa/attimer) module_register(elink) module_register(legacy/isa) module_register(acpi/atdma) module_register(isa/atdma) module_register(acpi/npxisa) module_register(isa/npxisa) module_register(nexus/npx) module_register(isa/pmtimer) module_register(pci/pcibios_pcib) module_register(isa/pcibus_pnp) module_register(legacy/pcib) module_register(legacy/pir) module_register(isa/sc) module_register(isa/vga) module_register(hostb/agp_ali) module_register(hostb/agp_amd) module_register(hostb/agp_amd64) module_register(hostb/agp_ati) module_register(vgapci/agp_i810) module_register(hostb/agp_intel) module_register(hostb/agp_nvidia) module_register(hostb/agp_sis) module_register(hostb/agp_via) ACPI APIC Table: <A M I OEMAPIC > Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) XEON(TM) CPU 1.80GHz (1799.81-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf24 Stepping = 4 Features=0x3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM> Logical CPUs per core: 2 real memory = 1073676288 (1023 MB) avail memory = 1037094912 (989 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 6 cpu3 (AP): APIC ID: 7 ioapic0 <Version 2.0> irqs 0-23 on motherboard ioapic1 <Version 2.0> irqs 24-47 on motherboard ioapic2 <Version 2.0> irqs 48-71 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: <A M I OEMRSDT> on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 3ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: <ACPI CPU> on acpi0 acpi_throttle0: <ACPI CPU Throttling> on cpu0 cpu1: <ACPI CPU> on acpi0 cpu2: <ACPI CPU> on acpi0 cpu3: <ACPI CPU> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 pcib1: <ACPI PCI-PCI bridge> at device 2.0 on pci0 pci2: <ACPI PCI bus> on pcib1 pcib2: <ACPI PCI-PCI bridge> at device 29.0 on pci2 pci4: <ACPI PCI bus> on pcib2 em0: <Intel(R) PRO/1000 Network Connection Version - 6.5.2> port 0xdc80-0xdc9f mem 0xfe9e0000-0xfe9fffff,0xfe9d0000-0xfe9dffff irq 48 at device 1.0 on pci4 em0: Ethernet address: 00:e0:81:21:00:d8 em0: [FILTER] pcib3: <ACPI PCI-PCI bridge> at device 31.0 on pci2 pci3: <ACPI PCI bus> on pcib3 uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port 0xec00-0xec1f irq 16 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> on uhci0 usb0: USB revision 1.0 uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0 uhub0: 2 ports with 2 removable, self powered pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0 pci1: <ACPI PCI bus> on pcib4 vgapci0: <VGA-compatible display> port 0xcc00-0xccff mem 0xfd000000-0xfdffffff,0xfe7ff000-0xfe7fffff irq 18 at device 2.0 on pci1 fxp0: <Intel 82550 Pro/100 Ethernet> port 0xc880-0xc8bf mem 0xfe7fe000-0xfe7fefff,0xfe7a0000-0xfe7bffff irq 17 at device 3.0 on pci1 miibus0: <MII bus> on fxp0 inphy0: <i82555 10/100 media interface> PHY 1 on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:e0:81:21:00:d7 fxp0: [ITHREAD] isab0: <PCI-ISA bridge> at device 31.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel ICH3 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0 ata0: <ATA channel 0> on atapci0 ata0: [ITHREAD] ata1: <ATA channel 1> on atapci0 ata1: [ITHREAD] pci0: <serial bus, SMBus> at device 31.3 (no driver attached) acpi_button0: <Power Button> on acpi0 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model VersaPad, device ID 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A, console sio0: [FILTER] sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A sio1: [FILTER] fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] pmtimer0 on isa0 orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc97ff,0xc9800-0xcafff pnpid ORM0000 on isa0 ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: <Parallel port bus> on ppc0 plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec if_tun not found in: nexus/acpi acpi/acpi_button acpi/acpi_isab pcib/acpi_pci acpi/acpi_pcib pci/acpi_pcib acpi/acpi_sysresource acpi/acpi_timer acpi/acpi_pci_link acpi/acpi_tz acpi/acpi_acad acpi/acpi_cmbat acpi/cpu acpi/acpi_ec acpi/acpi_hpet acpi/acpi_lid cpu/acpi_perf acpi/acpi_smbat cpu/acpi_throttle cam probe xpt cd ch da scsi_low pass sa ses aac/aacp aac/aacd pci/aacch pci/aac eisa/adv pci/adv pci/adw isa/aha eisa/ahb pccard/aic eisa/ahc_eisa isa/ahc_isa cardbus/ahc_pci pci/ahc_pci cardbus/ahd pci/ahd ahd ahc pci/amd amr/amrd pci/amr isa/an pccard/an pci/an pci/asr ata pccard/ata ata/ad isa/ata atapci/ata pci/atapci ataraid ad/subdisk ata/acd ata/afd ata/ast ath_hal ath_rate cardbus/if_ath pci/if_ath pccard/awi bce/miibus pci/bce bfe/miibus pci/bfe bge/miibus pci/bge eisa/bt isa/bt pci/bt cbb/cardbus pci/ciss isa/cs pccard/cs dc/miibus pci/dc cardbus/dc miibus/dcphy miibus/pnphy pci/de eisa/dpt pci/dpt ed/miibus pccard/ed pci/ed legacy/eisa eisab/eisa eisa/mainboard pci/em eisa/ep isa/ep pccard/ep isa/ex pccard/ex exca pccard/fe fwohci/firewire cardbus/fwohci pci/fwohci firewire/fwe firewire/sbp fxp/miibus cardbus/fxp pci/fxp ida/idad eisa/ida pci/ida isa/ie_SL isa/ie_EE16 isa/ie_3C507 pci/iir ips/ipsd pci/ips pci/isp pci/if_ixgb kbdmux pci/le lge/miibus pci/lge g_md mem pci/mfi mfi/mfid miibus/acphy miibus/amphy miibus/bmtphy miibus/brgphy miibus/ciphy miibus/e1000phy miibus/xlphy miibus/gentbi miibus/inphy miibus/ip1000phy miibus/lxtphy miibus/mlphy miibus/nsgphy miibus/nsphy miibus/pnaphy miibus/qsphy miibus/rgephy miibus/rlphy miibus/ruephy miibus/tdkphy miibus/tlphy miibus/ukphy miibus/xmphy mlx/mlxd pci/mlx pci/mly mpt_core mpt_cam pci/mpt mpt_raid msk/miibus mskc/msk pci/mskc pccard/ncv nge/miibus pci/nge pccard/nsp null cbb/pccard pcic/pccard isa/cbb pci/cbb pci/eisab pci/fixup_pci pci/hostb pci/ignore_pci pci/isab pcib/pci pci/pcib pci/vgapci ppbus/plip ppbus/lpt ppc/ppbus ppbus/ppi isa/ppc pci/ppc pci/pstpci pstpci/pst cardbus/ral pci/ral random re/miibus cardbus/re pci/re sk/miibus skc/sk pci/skc isa/sn pccard/sn isa/stg pccard/stg pci/stg stge/miibus pci/stge pci/sym pci/ti pci/trm pci/twa twe/twed pci/twe tx/miibus pci/tx pci/txp isa/uart pccard/uart cardbus/uart pci/uart cardbus/ehci pci/ehci aue/miibus uhub/aue axe/miibus uhub/axe uhub/cdce uhub/cue uhub/kue uhub/ural rue/miibus uhub/rue uhub/rum cardbus/ohci pci/ohci uhub/ugen cardbus/uhci pci/uhci uhub/uhid uhub/uhub usb/uhub uhub/ukbd uhub/ulpt uhub/umass uhub/ums uhub/urio slhci/usb ehci/usb uhci/usb ohci/usb uhub/uscanner vge/miibus cardbus/vge pci/vge eisa/vx pci/vx watchdog pccard/wi pci/wi pccard/xe devfs msdosfs procfs pseudofs g_dev g_disk g_vfs g_label g_part eisab/isa isab/isa isa/isahint isa/orm isa/pnp cd9660 elf32 shell cpu/cpufreq rootbus firmware sysvmsg msgrcv msgsnd msgget msgctl msgsys sysvsem semop semget __semctl semsys sysvshm shmget shmdt shmctl shma shmsys ether if_faith if_gif loop if_ppp if_sl if_t wlan_amrr wlan_ccmp wlan_tkip wlan_wep wlan nfs4 nfs nfsl nfsserver pcn/miibus pci/pcn rl/miibus cardbus/rl pci/rl sf/miibus pci/sf sis/miibus pci/sis ste/miibus pci/ste tl/miibus pci/tl vr/miibus pci/vr wb/miibus pci/wb xl/miibus pci/xl cardbus/xl ufs g_class isa/adv isa/aic pci/arcmsr atkbdc/atkbd acpi/atkbdc isa/atkbdc acpi/psmcpnp isa/psmcpnp atkbdc/psm isa/ed fdc/fd acpi/fdc isa/fdc pccard/fdc isa/fe pci/hptmv io isa/le nve/miibus pci/nve pci/rr232x acpi/sio isa/sio pccard/sio cardbus/sio pci/sio scterm-sc scrndr-vga g_bsd g_mbrext g_mbr isa/pnpbios nexus/apic pci/ioapic legacy/cpu nexus/legacy pci/piix pci/mptable_pcib legacy/mptable_pcib isa/sysresource nexus/ram root/nexus acpi/atpic isa/atpic acpi/attimer isa/attimer elink legacy/isa acpi/atdma isa/atdma acpi/npxisa isa/npxisa nexus/npx isa/pmtimer pci/pcibios_pcib isa/pcibus_pnp legacy/pcib legacy/pir isa/sc isa/vga hostb/agp_ali hostb/agp_amd hostb/agp_amd64 hostb/agp_ati vgapci/agp_i810 hostb/agp_intel hostb/agp_nvidia hostb/agp_sis hostb/agp_via panic: module_register_init: module named if_tun not found cpuid = 0 KDB: enter: panic [thread pid 0 tid 0 ] Stopped at kdb_enter+0x32: leave db> bt Tracing pid 0 tid 0 td 0xc0b19140 kdb_enter(c0a18193,0,c0a16e19,c1020d50,0,...) at kdb_enter+0x32 panic(c0a16e19,c0a24e23,76,75,c1020d6c,...) at panic+0x148 module_register_init(c0acfb0c,101ec00,101ec00,101e000,1028000,...) at module_register_init+0x18e mi_startup() at mi_startup+0x96 begin() at begin+0x2c db> reset diff -u -r1.52 kern_module.c --- kern_module.c 4 Mar 2007 22:36:46 -0000 1.52 +++ kern_module.c 27 May 2007 12:56:24 -0000 @@ -117,6 +117,13 @@ mtx_lock(&Giant); MOD_SLOCK; mod = module_lookupbyname(data->name); + if (mod == NULL) { + printf("%s not found in:\n", data->name); + TAILQ_FOREACH(mod, &modules, link) { + printf("%s\n", mod->name); /* PHO */ + } + mod = NULL; + } if (mod == NULL) panic("module_register_init: module named %s not found\n", data->name); @@ -148,6 +155,7 @@ data->name); return (EEXIST); } + printf("module_register(%s)\n", data->name); /* PHO */ namelen = strlen(data->name) + 1; newmod = malloc(sizeof(struct module) + namelen, M_MODULE, M_WAITOK); if (newmod == NULL) { @@ -186,6 +194,7 @@ MOD_XLOCK_ASSERT; + printf("module_release(%s)\n", mod->name); /* PHO */ if (mod->refs <= 0) panic("module_release: bad reference count"); $ nm /boot/kernel/* | grep if_tun /boot/kernel/if_tun.ko: 00004130 r __set_modmetadata_set_sym__mod_metadata_md_if_tun 0000413c r __set_sysctl_set_sym_sysctl___debug_if_tun_debug 00004124 r __set_sysinit_set_sym_if_tunmodule_sys_init 000052d4 d _mod_metadata_md_if_tun 000052c4 d if_tunmodule_sys_init 00005380 d sysctl___debug_if_tun_debug /boot/kernel/if_tun.ko.symbols: 00004130 b __set_modmetadata_set_sym__mod_metadata_md_if_tun 0000413c b __set_sysctl_set_sym_sysctl___debug_if_tun_debug 00004124 b __set_sysinit_set_sym_if_tunmodule_sys_init 000052d4 d _mod_metadata_md_if_tun 000052c4 d if_tunmodule_sys_init 00005380 d sysctl___debug_if_tun_debug c0a47b88 r __set_modmetadata_set_sym__mod_metadata_md_if_tun c0a45afc r __set_sysctl_set_sym_sysctl___debug_if_tun_debug c0a46c28 r __set_sysinit_set_sym_if_tunmodule_sys_init c0acfa14 d _mod_metadata_md_if_tun c0acfa04 d if_tunmodule_sys_init c0acfac0 d sysctl___debug_if_tun_debug c0a47b88 b __set_modmetadata_set_sym__mod_metadata_md_if_tun c0a45afc b __set_sysctl_set_sym_sysctl___debug_if_tun_debug c0a46c28 b __set_sysinit_set_sym_if_tunmodule_sys_init c0acfa14 d _mod_metadata_md_if_tun c0acfa04 d if_tunmodule_sys_init c0acfac0 d sysctl___debug_if_tun_debug