Date: Fri, 14 Nov 2008 11:51:10 +0200 From: Giorgos Keramidas <keramida@freebsd.org> To: Joseph Koshy <jkoshy@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r184802 - in head/sys: amd64/include conf dev/hwpmc i386/include modules/hwpmc sys Message-ID: <87skpuab5d.fsf@kobe.laptop> In-Reply-To: <200811091737.mA9HbssM047036@svn.freebsd.org> (Joseph Koshy's message of "Sun, 9 Nov 2008 17:37:54 %2B0000 (UTC)") References: <200811091737.mA9HbssM047036@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 9 Nov 2008 17:37:54 +0000 (UTC), Joseph Koshy <jkoshy@freebsd.org> wrote: > Author: jkoshy > Date: Sun Nov 9 17:37:54 2008 > New Revision: 184802 > URL: http://svn.freebsd.org/changeset/base/184802 > > Log: > - Separate PMC class dependent code from other kinds of machine > dependencies. A 'struct pmc_classdep' structure describes operations > on PMCs; 'struct pmc_mdep' contains one or more 'struct pmc_classdep' > structures depending on the CPU in question. > > Inside PMC class dependent code, row indices are relative to the > PMCs supported by the PMC class; MI code in "hwpmc_mod.c" translates > global row indices before invoking class dependent operations. > > - Augment the OP_GETCPUINFO request with the number of PMCs present > in a PMC class. > > - Move code common to Intel CPUs to file "hwpmc_intel.c". > > - Move TSC handling to file "hwpmc_tsc.c". Hi Joseph, This seems to cause panics here. The laptop I am using now has an Intel Core2 Duo CPU: : CPU: Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz (2094.76-MHz 686-class CPU) : Origin = "GenuineIntel" Id = 0x10676 Stepping = 6 : Features=0xbfebfbff<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,PBE> : Features2=0x8e3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1> : AMD Features=0x20100000<NX,LM> : AMD Features2=0x1<LAHF> : Cores per package: 2 and after this change I get insta-panics when hwpmc is initialized (either as a module or as part of the main kernel), at one of the KASSERT() calls. Attached is the tail of a kgdb session. It seems that the `md' global is set to a NULL pointer when hwpmc_intel.c tries to dereference it: : Script started on Fri Nov 14 11:32:00 2008 : root@kobe:/var/crash# kgdb /boot/kernel/kernel vmcore.8 : GNU gdb 6.1.1 [FreeBSD] : Copyright 2004 Free Software Foundation, Inc. : GDB is free software, covered by the GNU General Public License, and you are : welcome to change it and/or distribute copies of it under certain conditions. : Type "show copying" to see the conditions. : There is absolutely no warranty for GDB. Type "show warranty" for details. : This GDB was configured as "i386-marcel-freebsd"... : : Unread portion of the kernel message buffer: : Copyright (c) 1992-2008 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 8.0-CURRENT #0: Fri Nov 14 01:31:52 EET 2008 : build@kobe:/usr/obj/usr/src/sys/KOBE : WARNING: WITNESS option enabled, expect reduced performance. : Timecounter "i8254" frequency 1193182 Hz quality 0 : CPU: Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz (2094.76-MHz 686-class CPU) : Origin = "GenuineIntel" Id = 0x10676 Stepping = 6 : Features=0xbfebfbff<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,PBE> : Features2=0x8e3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1> : AMD Features=0x20100000<NX,LM> : AMD Features2=0x1<LAHF> : Cores per package: 2 : real memory = 3211591680 (3062 MB) : avail memory = 3139604480 (2994 MB) : ACPI APIC Table: <INTEL CRESTLNE> : FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs : cpu0 (BSP): APIC ID: 0 : cpu1 (AP): APIC ID: 1 : ioapic0: Changing APIC ID to 1 : ioapic0 <Version 2.0> irqs 0-23 on motherboard : kbd1 at kbdmux0 : ath_hal: 0.10.5.10 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, RF2417) : acpi0: <PTLTD XSDT> on motherboard : acpi0: [ITHREAD] : acpi0: Power Button (fixed) : acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0 : Timecounter "HPET" frequency 14318180 Hz quality 900 : Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 : acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 : acpi_ec0: <Embedded Controller: GPE 0x18> port 0x62,0x66 on acpi0 : battery0: <ACPI Control Method Battery> on acpi0 : acpi_button0: <Power Button> on acpi0 : acpi_button1: <Sleep Button> on acpi0 : acpi_acad0: <AC Adapter> on acpi0 : acpi_lid0: <Control Method Lid Switch> on acpi0 : pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 : pci0: <ACPI PCI bus> on pcib0 : vgapci0: <VGA-compatible display> port 0x1800-0x1807 mem 0xf0c00000-0xf0cfffff,0xd0000000-0xdfffffff irq 16 at device 2.0 on pci0 : agp0: <Intel GM965 SVGA controller> on vgapci0 : agp0: detected 7676k stolen memory : agp0: aperture size is 256M : vgapci1: <VGA-compatible display> mem 0xf0d00000-0xf0dfffff at device 2.1 on pci0 : uhci0: <Intel 82801H (ICH8) USB controller USB-D> port 0x1820-0x183f irq 16 at device 26.0 on pci0 : uhci0: [GIANT-LOCKED] : uhci0: [ITHREAD] : usb0: <Intel 82801H (ICH8) USB controller USB-D> 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 : uhci1: <Intel 82801H (ICH8) USB controller USB-E> port 0x1840-0x185f irq 21 at device 26.1 on pci0 : uhci1: [GIANT-LOCKED] : uhci1: [ITHREAD] : usb1: <Intel 82801H (ICH8) USB controller USB-E> on uhci1 : usb1: USB revision 1.0 : uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1 : uhub1: 2 ports with 2 removable, self powered : ehci0: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> mem 0xf1204000-0xf12043ff irq 18 at device 26.7 on pci0 : ehci0: [GIANT-LOCKED] : ehci0: [ITHREAD] : usb2: EHCI version 1.0 : usb2: companion controllers, 2 ports each: usb0 usb1 : usb2: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> on ehci0 : usb2: USB revision 2.0 : uhub2: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb2 : uhub2: 4 ports with 4 removable, self powered : hdac0: <Intel 82801H High Definition Audio Controller> mem 0xf1200000-0xf1203fff irq 22 at device 27.0 on pci0 : hdac0: HDA Driver Revision: 20081030_0115 : hdac0: [ITHREAD] : pcib1: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0 : pci2: <ACPI PCI bus> on pcib1 : iwn0: <Intel(R) PRO/Wireless 4965BGN> mem 0xf0e00000-0xf0e01fff irq 16 at device 0.0 on pci2 : iwn0: Reg Domain: MoW2, address 00:1f:3b:19:d5:41 : iwn0: [ITHREAD] : iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps : iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps : iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps : iwn0: 11na MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps : iwn0: 11ng MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps : pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.1 on pci0 : pci4: <ACPI PCI bus> on pcib2 : pcib3: <ACPI PCI-PCI bridge> irq 18 at device 28.2 on pci0 : pci6: <ACPI PCI bus> on pcib3 : pcib4: <ACPI PCI-PCI bridge> irq 19 at device 28.3 on pci0 : pci8: <ACPI PCI bus> on pcib4 : re0: <RealTek 8168/8168B/8168C/8168CP/8111B/8111C/8111CP PCIe Gigabit Ethernet> port 0x4000-0x40ff mem 0xf0a00000-0xf0a00fff irq 19 at device 0.0 on pci8 : re0: turning off MSI enable bit. : re0: Chip rev. 0x38000000 : re0: MAC rev. 0x00000000 : miibus0: <MII bus> on re0 : rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0 : rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto : re0: Ethernet address: 00:90:f5:6e:05:32 : re0: [FILTER] : pcib5: <ACPI PCI-PCI bridge> irq 17 at device 28.4 on pci0 : pci10: <ACPI PCI bus> on pcib5 : pcib6: <ACPI PCI-PCI bridge> irq 16 at device 28.5 on pci0 : pci11: <ACPI PCI bus> on pcib6 : uhci2: <Intel 82801H (ICH8) USB controller USB-A> port 0x1860-0x187f irq 23 at device 29.0 on pci0 : uhci2: [GIANT-LOCKED] : uhci2: [ITHREAD] : usb3: <Intel 82801H (ICH8) USB controller USB-A> on uhci2 : usb3: USB revision 1.0 : uhub3: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3 : uhub3: 2 ports with 2 removable, self powered : uhci3: <Intel 82801H (ICH8) USB controller USB-B> port 0x1880-0x189f irq 19 at device 29.1 on pci0 : uhci3: [GIANT-LOCKED] : uhci3: [ITHREAD] : usb4: <Intel 82801H (ICH8) USB controller USB-B> on uhci3 : usb4: USB revision 1.0 : uhub4: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb4 : uhub4: 2 ports with 2 removable, self powered : uhci4: <Intel 82801H (ICH8) USB controller USB-C> port 0x18a0-0x18bf irq 18 at device 29.2 on pci0 : uhci4: [GIANT-LOCKED] : uhci4: [ITHREAD] : usb5: <Intel 82801H (ICH8) USB controller USB-C> on uhci4 : usb5: USB revision 1.0 : uhub5: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb5 : uhub5: 2 ports with 2 removable, self powered : ehci1: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> mem 0xf1204400-0xf12047ff irq 23 at device 29.7 on pci0 : ehci1: [GIANT-LOCKED] : ehci1: [ITHREAD] : usb6: EHCI version 1.0 : usb6: companion controllers, 2 ports each: usb3 usb4 usb5 : usb6: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> on ehci1 : usb6: USB revision 2.0 : uhub6: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb6 : uhub6: 6 ports with 6 removable, self powered : pcib7: <ACPI PCI-PCI bridge> at device 30.0 on pci0 : pci12: <ACPI PCI bus> on pcib7 : pci12: <memory, flash> at device 7.0 (no driver attached) : pci12: <base peripheral, SD host controller> at device 7.1 (no driver attached) : pci12: <memory, flash> at device 7.3 (no driver attached) : fwohci0: <VIA Fire II (VT6306)> port 0x5000-0x507f mem 0xf0f00800-0xf0f00fff irq 19 at device 9.0 on pci12 : fwohci0: [FILTER] : fwohci0: OHCI version 1.10 (ROM=1) : fwohci0: No. of Isochronous channels is 4. : fwohci0: EUI64 00:00:00:00:00:00:43:35 : fwohci0: Phy 1394a available S400, 2 ports. : fwohci0: Link S400, max_rec 2048 bytes. : firewire0: <IEEE1394(FireWire) bus> on fwohci0 : dcons_crom0: <dcons configuration ROM> on firewire0 : dcons_crom0: bus_addr 0x10a8000 : fwe0: <Ethernet over FireWire> on firewire0 : if_fwe0: Fake Ethernet address: 02:00:00:00:43:35 : fwe0: Ethernet address: 02:00:00:00:43:35 : fwip0: <IP over FireWire> on firewire0 : fwip0: Firewire address: 00:00:00:00:00:00:43:35 @ 0xfffe00000000, S400, maxrec 2048 : sbp0: <SBP-2/SCSI over FireWire> on firewire0 : fwohci0: Initiate bus reset : fwohci0: BUS reset : fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode : isab0: <PCI-ISA bridge> at device 31.0 on pci0 : isa0: <ISA bus> on isab0 : atapci0: <Intel ICH8M SATA300 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x18e0-0x18ef,0x18d0-0x18df at device 31.2 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_tz0: <Thermal Zone> on acpi0 : atrtc0: <AT realtime clock> port 0x70-0x77 irq 8 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 Generic PS/2 mouse, device ID 0 : cpu0: <ACPI CPU> on acpi0 : coretemp0: <CPU On-Die Thermal Sensors> on cpu0 : est0: <Enhanced SpeedStep Frequency Control> on cpu0 : p4tcc0: <CPU Frequency Thermal Control> on cpu0 : cpu1: <ACPI CPU> on acpi0 : coretemp1: <CPU On-Die Thermal Sensors> on cpu1 : est1: <Enhanced SpeedStep Frequency Control> on cpu1 : p4tcc1: <CPU Frequency Thermal Control> on cpu1 : pmtimer0 on isa0 : orm0: <ISA Option ROMs> at iomem 0xcf000-0xcffff,0xe0000-0xe17ff pnpid ORM0000 on isa0 : 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 : ums0: <Adomax USB/PS2 Scroll Mouse, class 0/0, rev 1.10/0.00, addr 2> on uhub3 : ums0: 3 buttons and Z dir. : Timecounters tick every 1.000 msec : firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) : firewire0: bus manager 0 (me) : ad0: 238475MB <TOSHIBA MK2552GSX LV010A> at ata0-master SATA150 : acd0: DVDR <TSSTcorp CDDVDW TS-L632H/TMC0> at ata1-master UDMA33 : hdac0: HDA Codec #0: Realtek ALC883 : hdac0: HDA Codec #1: Unknown Codec : pcm0: <HDA Realtek ALC883 PCM #0> at cad 0 nid 1 on hdac0 : pcm1: <HDA Realtek ALC883 PCM #1> at cad 0 nid 1 on hdac0 : GEOM_LABEL: Label for provider ad0s1a is ufs/GKEROOT. : GEOM_LABEL: Label for provider ad0s1e is ufs/GKERHOME. : acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 : acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 : cd0 at ata1 bus 0 target 0 lun 0 : cd0: <TSSTcorp CDDVDW TS-L632H TMC0> Removable CD-ROM SCSI-0 device : cd0: 33.000MB/s transfers : cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed : SMP: AP CPU #1 Launched! : WARNING: WITNESS option enabled, expect reduced performance. : Trying to mount root from ufs:/dev/ad0s1a : lock order reversal: : 1st 0xc6161044 user map (user map) @ /usr/src/sys/vm/vm_map.c:3115 : 2nd 0xc64f8ad0 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2047 : KDB: stack backtrace: : db_trace_self_wrapper(c093f2b3,c5faf91c,c06652f5,4,c093aaf9,...) at db_trace_self_wrapper+0x26 : kdb_backtrace(4,c093aaf9,c6109728,c610eb40,c5faf978,...) at kdb_backtrace+0x29 : _witness_debugger(c0941f78,c64f8ad0,c0935ee5,c610eb40,c0948d36,...) at _witness_debugger+0x25 : witness_checkorder(c64f8ad0,1,c0948d36,7ff,0,...) at witness_checkorder+0x82b : __lockmgr_args(c64f8ad0,200501,c64f8aec,0,0,...) at __lockmgr_args+0x228 : ffs_lock(c5fafa80,c0961c49,c09355f1,200501,c64f8a78,...) at ffs_lock+0x82 : VOP_LOCK1_APV(c09b62c0,c5fafa80,c09d0080,c64f8a78,200501,...) at VOP_LOCK1_APV+0xa5 : _vn_lock(c64f8a78,200501,c0948d36,7ff,4,...) at _vn_lock+0x5e : vget(c64f8a78,200501,c615dd20,4b4,0,...) at vget+0xcb : vnode_pager_lock(c1477d14,0,c095f20b,127,c5fafc18,...) at vnode_pager_lock+0x1d9 : vm_fault(c6161000,80db000,2,8,80db680,...) at vm_fault+0x1e9 : trap_pfault(5,0,c096c79d,2e7,c615bd0c,...) at trap_pfault+0x119 : trap(c5fafd38) at trap+0x28e : calltrap() at calltrap+0x6 : --- trap 0xc, eip = 0x80480e5, esp = 0xbfbfeef0, ebp = 0xbfbfef10 --- : <118>Enter full pathname of shell or RETURN for : <118>/bin/sh : <118>: : <118># : <118># : <118>swapon: adding /dev/ad0s1b as swap device : <118># : GEOM_LABEL: Label ufs/GKEROOT removed. : <118>/dev/ad0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS : <118>/dev/ad0s1a: clean, 11717549 free (127621 frags, 1448741 blocks, 0.8% fragmentation) : GEOM_LABEL: Label for provider ad0s1a is ufs/GKEROOT. : GEOM_LABEL: Label ufs/GKERHOME removed. : <118>/dev/ad0s1e: FILE SYSTEM CLEAN; SKIPPING CHECKS : <118>/dev/ad0s1e: clean, 16632049 free (528465 frags, 2012948 blocks, 1.2% fragmentation) : GEOM_LABEL: Label for provider ad0s1e is ufs/GKERHOME. : <118># : <118>k : <118>l : <118>d : <118>l : <118>o : <118>a : <118>d : <118> : <118>h : <118>w : <118>p : <118>m : <118>c : <118> : : : Fatal trap 12: page fault while in kernel mode : cpuid = 1; apic id = 01 : fault virtual address = 0x4 : fault code = supervisor read, page not present : instruction pointer = 0x20:0xc67e7765 : stack pointer = 0x28:0xe8cbe994 : frame pointer = 0x28:0xe8cbe9ac : code segment = base 0x0, limit 0xfffff, type 0x1b : = DPL 0, pres 1, def32 1, gran 1 : processor eflags = interrupt enabled, resume, IOPL = 0 : current process = 63 (kldload) : Physical memory: 3050 MB : Dumping 86 MB: 71 55 39 23 7 : : Reading symbols from /boot/kernel/geom_journal.ko...Reading symbols from /boot/kernel/geom_journal.ko.symbols...done. : done. : Loaded symbols for /boot/kernel/geom_journal.ko : Reading symbols from /boot/kernel/snd_hda.ko...Reading symbols from /boot/kernel/snd_hda.ko.symbols...done. : done. : Loaded symbols for /boot/kernel/snd_hda.ko : Reading symbols from /boot/kernel/sound.ko...Reading symbols from /boot/kernel/sound.ko.symbols...done. : done. : Loaded symbols for /boot/kernel/sound.ko : Reading symbols from /boot/kernel/if_iwn.ko...Reading symbols from /boot/kernel/if_iwn.ko.symbols...done. : done. : Loaded symbols for /boot/kernel/if_iwn.ko : Reading symbols from /boot/kernel/hwpmc.ko...Reading symbols from /boot/kernel/hwpmc.ko.symbols...done. : done. : Loaded symbols for /boot/kernel/hwpmc.ko : #0 doadump () at pcpu.h:246 : 246 pcpu.h: No such file or directory. : in pcpu.h : (kgdb) bt : #0 doadump () at pcpu.h:246 : #1 0xc04c8ad9 in db_fncall (dummy1=1, dummy2=0, dummy3=0, dummy4=0xe8cbe728 "") at /usr/src/sys/ddb/db_command.c:548 : #2 0xc04c8ed1 in db_command (last_cmdp=0xc09d2ddc, cmd_table=0x0, dopager=1) at /usr/src/sys/ddb/db_command.c:445 : #3 0xc04c9035 in db_command_loop () at /usr/src/sys/ddb/db_command.c:498 : #4 0xc04caf3c in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:229 : #5 0xc0652a51 in kdb_trap (type=12, code=0, tf=0xe8cbe954) at /usr/src/sys/kern/subr_kdb.c:534 : #6 0xc08d117f in trap_fatal (frame=0xe8cbe954, eva=4) at /usr/src/sys/i386/i386/trap.c:920 : #7 0xc08d13cb in trap_pfault (frame=0xe8cbe954, usermode=0, eva=4) at /usr/src/sys/i386/i386/trap.c:842 : #8 0xc08d1e15 in trap (frame=0xe8cbe954) at /usr/src/sys/i386/i386/trap.c:522 : #9 0xc08b598b in calltrap () at /usr/src/sys/i386/i386/exception.s:165 : #10 0xc67e7765 in pmc_intel_initialize () at /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_intel.c:171 : #11 0xc67ead82 in pmc_md_initialize () at /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_x86.c:258 : #12 0xc67e228c in load (module=0xc6648800, cmd=0, arg=0x0) at /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_mod.c:4416 : #13 0xc062ce72 in syscall_module_handler (mod=0xc6648800, what=0, arg=0xc67ef280) at /usr/src/sys/kern/kern_syscalls.c:112 : #14 0xc0615347 in module_register_init (arg=0xc67ef230) at /usr/src/sys/kern/kern_module.c:124 : #15 0xc060cdb5 in linker_load_module (kldname=Variable "kldname" is not available. : ) at /usr/src/sys/kern/kern_linker.c:232 : #16 0xc060d26c in kern_kldload (td=0xc668d8c0, file=0xc666f800 "hwpmc", fileid=0xe8cbec70) at /usr/src/sys/kern/kern_linker.c:974 : #17 0xc060d3a4 in kldload (td=0xc668d8c0, uap=0xe8cbecf8) at /usr/src/sys/kern/kern_linker.c:1001 : #18 0xc08d16c3 in syscall (frame=0xe8cbed38) at /usr/src/sys/i386/i386/trap.c:1076 : #19 0xc08b59f0 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:261 : #20 0x00000033 in ?? () : Previous frame inner to this frame (corrupt stack?) : (kgdb) up 10 : #10 0xc67e7765 in pmc_intel_initialize () at /usr/src/sys/modules/hwpmc/../../dev/hwpmc/hwpmc_intel.c:171 : 171 KASSERT(md->pmd_npmc == TSC_NPMCS + P6_NPMCS, ("[intel,%d] " : (kgdb) list : 166 case PMC_CPU_INTEL_PII: : 167 case PMC_CPU_INTEL_PIII: : 168 case PMC_CPU_INTEL_PM: : 169 error = pmc_p6_initialize(pmc_mdep, ncpus); : 170 : 171 KASSERT(md->pmd_npmc == TSC_NPMCS + P6_NPMCS, ("[intel,%d] " : 172 "incorrect npmc count %d", __LINE__, md->pmd_npmc)); : 173 break; : 174 : 175 /* : Cannot access memory at address 0x0 : (kgdb) p md : $1 = (struct pmc_mdep *) 0x0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87skpuab5d.fsf>