From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753826AbbICKF6 (ORCPT ); Thu, 3 Sep 2015 06:05:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35711 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752471AbbICKF5 (ORCPT ); Thu, 3 Sep 2015 06:05:57 -0400 Date: Thu, 3 Sep 2015 12:05:51 +0200 From: Jiri Olsa To: Andi Kleen Cc: Stephane Eranian , linux-kernel@vger.kernel.org, acme@redhat.com, peterz@infradead.org, mingo@elte.hu, namhyung@kernel.org, kan.liang@intel.com, dsahern@gmail.com, adrian.hunter@intel.com Subject: Re: [PATCH] perf stat: fix per-pkg event reporting bug Message-ID: <20150903100551.GE13114@krava.redhat.com> References: <1441199871-7384-1-git-send-email-eranian@google.com> <20150902202657.GC4524@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150902202657.GC4524@tassilo.jf.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 02, 2015 at 01:26:57PM -0700, Andi Kleen wrote: > On Wed, Sep 02, 2015 at 03:17:51PM +0200, Stephane Eranian wrote: > > Per-pkg events need to be captured once per processor > > socket. The code in check_per_pkg() ensures only one > > value per processor package is used. However there is > > a problem with this function in case the first CPU of > > the package does not measure anything for the per-pkg event, > > but other CPUs do. > > I've seen a similar(?) bug with -C and --per-core combined. > Some logical threads are not correctly accounted there either. > Do you think that's another instance of such a bug? AFAICS this is related strictly to per-pkg events, is this what you were doing? jirka