Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759516AbXKTPmq (ORCPT ); Tue, 20 Nov 2007 10:42:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753905AbXKTPmh (ORCPT ); Tue, 20 Nov 2007 10:42:37 -0500 Received: from mga03.intel.com ([143.182.124.21]:64424 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751970AbXKTPmg convert rfc822-to-8bit (ORCPT ); Tue, 20 Nov 2007 10:42:36 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.21,442,1188802800"; d="scan'208";a="323137285" X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: [patch][v2] x86, ptrace: support for branch trace store(BTS) Date: Tue, 20 Nov 2007 15:39:40 -0000 Message-ID: <029E5BE7F699594398CA44E3DDF55444F71257@swsmsx413.ger.corp.intel.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [patch][v2] x86, ptrace: support for branch trace store(BTS) thread-index: AcgricgT7sDfdJG8TVqTgB+w88yb+gAATaRA References: <029E5BE7F699594398CA44E3DDF55444F3AEA7@swsmsx413.ger.corp.intel.com> From: "Metzger, Markus T" To: "dean gaudet" Cc: , , , , , "Siddha, Suresh B" , X-OriginalArrivalTime: 20 Nov 2007 15:39:39.0407 (UTC) FILETIME=[8FDC09F0:01C82B8B] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2513 Lines: 88 >-----Original Message----- >From: dean gaudet [mailto:dean@arctic.org] >Sent: Dienstag, 20. November 2007 16:27 >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) > >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... That's correct. In 32bit mode, they would use the BTS format that I implemented for Netburst. In 64bit mode, they would use a slightly different format, which is not implemented. We might want to add support for Netburst in 64bit mode some day. For today, I simply exclude Netburst for x86_64. regards, markus. > >-dean > --------------------------------------------------------------------- Intel GmbH Dornacher Strasse 1 85622 Feldkirchen/Muenchen Germany Sitz der Gesellschaft: Feldkirchen bei Muenchen Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer Registergericht: Muenchen HRB 47456 Ust.-IdNr. VAT Registration No.: DE129385895 Citibank Frankfurt (BLZ 502 109 00) 600119052 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. - 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/