Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760250AbXKTP0z (ORCPT ); Tue, 20 Nov 2007 10:26:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757581AbXKTP0r (ORCPT ); Tue, 20 Nov 2007 10:26:47 -0500 Received: from twinlark.arctic.org ([207.29.250.54]:59651 "EHLO twinlark.arctic.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755372AbXKTP0r (ORCPT ); Tue, 20 Nov 2007 10:26:47 -0500 Date: Tue, 20 Nov 2007 07:26:46 -0800 (PST) From: dean gaudet To: "Metzger, Markus T" cc: linux-kernel@vger.kernel.org, mingo@elte.hu, hpa@zytor.com, tglx@linutronix.de, ak@suse.de, "Siddha, Suresh B" , akpm@linux-foundation.org Subject: Re: [patch][v2] x86, ptrace: support for branch trace store(BTS) In-Reply-To: <029E5BE7F699594398CA44E3DDF55444F3AEA7@swsmsx413.ger.corp.intel.com> Message-ID: References: <029E5BE7F699594398CA44E3DDF55444F3AEA7@swsmsx413.ger.corp.intel.com> User-Agent: Alpine 0.99999 (DEB 796 2007-11-08) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1143 Lines: 46 On Tue, 20 Nov 2007, Metzger, Markus T wrote: > +__cpuinit void ptrace_bts_init_intel(struct cpuinfo_x86 *c) > +{ > + switch (c->x86) { > + case 0x6: > + switch (c->x86_model) { > +#ifdef __i386__ > + case 0xD: > + case 0xE: /* Pentium M */ > + ptrace_bts_ops = ptrace_bts_ops_pentium_m; > + break; > +#endif /* _i386_ */ > + case 0xF: /* Core2 */ > + ptrace_bts_ops = ptrace_bts_ops_core2; > + break; > + default: > + /* sorry, don't know about them */ > + break; > + } > + break; > + case 0xF: > + switch (c->x86_model) { > +#ifdef __i386__ > + case 0x0: > + case 0x1: > + case 0x2: > + case 0x3: /* Netburst */ > + ptrace_bts_ops = ptrace_bts_ops_netburst; > + break; > +#endif /* _i386_ */ > + default: > + /* sorry, don't know about them */ > + break; > + } > + break; is this right? i thought intel family 15 models 3 and 4 supported amd64 mode... -dean - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/