From owner-svn-src-head@FreeBSD.ORG Fri Nov 14 16:39:53 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 818961065688; Fri, 14 Nov 2008 16:39:53 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id D090B8FC19; Fri, 14 Nov 2008 16:39:52 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (adsl134-121.kln.forthnet.gr [77.49.253.121]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id mAEGdguG029956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 14 Nov 2008 18:39:48 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id mAEGdgeZ002413; Fri, 14 Nov 2008 18:39:42 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id mAEGdf8G002412; Fri, 14 Nov 2008 18:39:41 +0200 (EET) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: Joseph Koshy In-Reply-To: <200811091737.mA9HbssM047036@svn.freebsd.org> (Joseph Koshy's message of "Sun, 9 Nov 2008 17:37:54 +0000 (UTC)") Date: Fri, 14 Nov 2008 11:51:10 +0200 Message-ID: <87skpuab5d.fsf@kobe.laptop> References: <200811091737.mA9HbssM047036@svn.freebsd.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: mAEGdguG029956 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.056, required 5, ALL_TRUSTED -1.80, AWL -0.16, BAYES_00 -2.60, DATE_IN_PAST_06_12 0.50) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No 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 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2008 16:39:53 -0000 On Sun, 9 Nov 2008 17:37:54 +0000 (UTC), Joseph Koshy 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 : Features2=0x8e3bd : AMD Features=0x20100000 : AMD Features2=0x1 : 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 : Features2=0x8e3bd : AMD Features=0x20100000 : AMD Features2=0x1 : Cores per package: 2 : real memory = 3211591680 (3062 MB) : avail memory = 3139604480 (2994 MB) : ACPI APIC Table: : FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs : cpu0 (BSP): APIC ID: 0 : cpu1 (AP): APIC ID: 1 : ioapic0: Changing APIC ID to 1 : ioapic0 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: on motherboard : acpi0: [ITHREAD] : acpi0: Power Button (fixed) : acpi_hpet0: 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: port 0x62,0x66 on acpi0 : battery0: on acpi0 : acpi_button0: on acpi0 : acpi_button1: on acpi0 : acpi_acad0: on acpi0 : acpi_lid0: on acpi0 : pcib0: port 0xcf8-0xcff on acpi0 : pci0: on pcib0 : vgapci0: port 0x1800-0x1807 mem 0xf0c00000-0xf0cfffff,0xd0000000-0xdfffffff irq 16 at device 2.0 on pci0 : agp0: on vgapci0 : agp0: detected 7676k stolen memory : agp0: aperture size is 256M : vgapci1: mem 0xf0d00000-0xf0dfffff at device 2.1 on pci0 : uhci0: port 0x1820-0x183f irq 16 at device 26.0 on pci0 : uhci0: [GIANT-LOCKED] : uhci0: [ITHREAD] : usb0: on uhci0 : usb0: USB revision 1.0 : uhub0: on usb0 : uhub0: 2 ports with 2 removable, self powered : uhci1: port 0x1840-0x185f irq 21 at device 26.1 on pci0 : uhci1: [GIANT-LOCKED] : uhci1: [ITHREAD] : usb1: on uhci1 : usb1: USB revision 1.0 : uhub1: on usb1 : uhub1: 2 ports with 2 removable, self powered : ehci0: 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: on ehci0 : usb2: USB revision 2.0 : uhub2: on usb2 : uhub2: 4 ports with 4 removable, self powered : hdac0: mem 0xf1200000-0xf1203fff irq 22 at device 27.0 on pci0 : hdac0: HDA Driver Revision: 20081030_0115 : hdac0: [ITHREAD] : pcib1: irq 17 at device 28.0 on pci0 : pci2: on pcib1 : iwn0: 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: irq 16 at device 28.1 on pci0 : pci4: on pcib2 : pcib3: irq 18 at device 28.2 on pci0 : pci6: on pcib3 : pcib4: irq 19 at device 28.3 on pci0 : pci8: on pcib4 : re0: 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: on re0 : rgephy0: 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: irq 17 at device 28.4 on pci0 : pci10: on pcib5 : pcib6: irq 16 at device 28.5 on pci0 : pci11: on pcib6 : uhci2: port 0x1860-0x187f irq 23 at device 29.0 on pci0 : uhci2: [GIANT-LOCKED] : uhci2: [ITHREAD] : usb3: on uhci2 : usb3: USB revision 1.0 : uhub3: on usb3 : uhub3: 2 ports with 2 removable, self powered : uhci3: port 0x1880-0x189f irq 19 at device 29.1 on pci0 : uhci3: [GIANT-LOCKED] : uhci3: [ITHREAD] : usb4: on uhci3 : usb4: USB revision 1.0 : uhub4: on usb4 : uhub4: 2 ports with 2 removable, self powered : uhci4: port 0x18a0-0x18bf irq 18 at device 29.2 on pci0 : uhci4: [GIANT-LOCKED] : uhci4: [ITHREAD] : usb5: on uhci4 : usb5: USB revision 1.0 : uhub5: on usb5 : uhub5: 2 ports with 2 removable, self powered : ehci1: 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: on ehci1 : usb6: USB revision 2.0 : uhub6: on usb6 : uhub6: 6 ports with 6 removable, self powered : pcib7: at device 30.0 on pci0 : pci12: on pcib7 : pci12: at device 7.0 (no driver attached) : pci12: at device 7.1 (no driver attached) : pci12: at device 7.3 (no driver attached) : fwohci0: 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: on fwohci0 : dcons_crom0: on firewire0 : dcons_crom0: bus_addr 0x10a8000 : fwe0: on firewire0 : if_fwe0: Fake Ethernet address: 02:00:00:00:43:35 : fwe0: Ethernet address: 02:00:00:00:43:35 : fwip0: on firewire0 : fwip0: Firewire address: 00:00:00:00:00:00:43:35 @ 0xfffe00000000, S400, maxrec 2048 : sbp0: on firewire0 : fwohci0: Initiate bus reset : fwohci0: BUS reset : fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode : isab0: at device 31.0 on pci0 : isa0: on isab0 : atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x18e0-0x18ef,0x18d0-0x18df at device 31.2 on pci0 : ata0: on atapci0 : ata0: [ITHREAD] : ata1: on atapci0 : ata1: [ITHREAD] : pci0: at device 31.3 (no driver attached) : acpi_tz0: on acpi0 : atrtc0: port 0x70-0x77 irq 8 on acpi0 : atkbdc0: port 0x60,0x64 irq 1 on acpi0 : atkbd0: irq 1 on atkbdc0 : kbd0 at atkbd0 : atkbd0: [GIANT-LOCKED] : atkbd0: [ITHREAD] : psm0: irq 12 on atkbdc0 : psm0: [GIANT-LOCKED] : psm0: [ITHREAD] : psm0: model Generic PS/2 mouse, device ID 0 : cpu0: on acpi0 : coretemp0: on cpu0 : est0: on cpu0 : p4tcc0: on cpu0 : cpu1: on acpi0 : coretemp1: on cpu1 : est1: on cpu1 : p4tcc1: on cpu1 : pmtimer0 on isa0 : orm0: at iomem 0xcf000-0xcffff,0xe0000-0xe17ff pnpid ORM0000 on isa0 : sc0: at flags 0x100 on isa0 : sc0: VGA <16 virtual consoles, flags=0x300> : vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 : ums0: 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 at ata0-master SATA150 : acd0: DVDR at ata1-master UDMA33 : hdac0: HDA Codec #0: Realtek ALC883 : hdac0: HDA Codec #1: Unknown Codec : pcm0: at cad 0 nid 1 on hdac0 : pcm1: 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: 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