From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757060AbZHGH3r (ORCPT ); Fri, 7 Aug 2009 03:29:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757032AbZHGH3q (ORCPT ); Fri, 7 Aug 2009 03:29:46 -0400 Received: from mga11.intel.com ([192.55.52.93]:16709 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756452AbZHGH3q convert rfc822-to-8bit (ORCPT ); Fri, 7 Aug 2009 03:29:46 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.43,340,1246863600"; d="scan'208";a="481557265" From: "Metzger, Markus T" To: Ingo Molnar , Peter Zijlstra CC: "tglx@linutronix.de" , "hpa@zytor.com" , "markus.t.metzger@gmail.com" , "linux-kernel@vger.kernel.org" Date: Fri, 7 Aug 2009 08:29:05 +0100 Subject: RE: [patch] x86, perf_counter, bts: add bts to perf_counter Thread-Topic: [patch] x86, perf_counter, bts: add bts to perf_counter Thread-Index: AcoU98gcZfPZAe/3R+2NGBTqTkrCLQCOES7g Message-ID: <928CFBE8E7CB0040959E56B4EA41A77EC1BFEEE3@irsmsx504.ger.corp.intel.com> References: <20090721155648.A17047@sedona.ch.intel.com> <1249381489.7924.186.camel@twins> <20090804111412.GA20942@elte.hu> <20090804113555.GA28198@elte.hu> In-Reply-To: <20090804113555.GA28198@elte.hu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >-----Original Message----- >From: Ingo Molnar [mailto:mingo@elte.hu] >Sent: Tuesday, August 04, 2009 1:36 PM >To: Peter Zijlstra >Cc: Metzger, Markus T; tglx@linutronix.de; hpa@zytor.com; markus.t.metzger@gmail.com; linux- >kernel@vger.kernel.org >Subject: Re: [patch] x86, perf_counter, bts: add bts to perf_counter > > >* Ingo Molnar wrote: > >> > Over all looks very nice, some comments below (could be >> > addressed in a delta patch). >> >> ok - thanks guys - i'll test this some and push it out into the >> perfcounters tree. Will apply the delta patch too once it's done. > >the kernel hard-locks if i try to use it: > > titan:~/tip/tools/perf> perf record -f -e branches -c 1 ~/hackbench 1 > >with the attached 64-bit (def-)config, on a Core2 test-box, latest >-tip. Ingo, thanks for reporting the issue! I forgot to set the BTINT bit. I now also set pending_kill = POLL_IN as perf_counter_overflow() would do when draining BTS. I incorporated Peter's review comments, except that I would not enforce sample_period == 1 when branch tracing is requested. There might be users who want to sample the IP every 100.000'th branch for profiling reasons. regards, markus. --------------------------------------------------------------------- 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.