From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756011AbbIBU07 (ORCPT ); Wed, 2 Sep 2015 16:26:59 -0400 Received: from mga02.intel.com ([134.134.136.20]:53389 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755159AbbIBU05 (ORCPT ); Wed, 2 Sep 2015 16:26:57 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,456,1437462000"; d="scan'208";a="637345790" Date: Wed, 2 Sep 2015 13:26:57 -0700 From: Andi Kleen To: Stephane Eranian Cc: linux-kernel@vger.kernel.org, acme@redhat.com, peterz@infradead.org, mingo@elte.hu, jolsa@redhat.com, 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: <20150902202657.GC4524@tassilo.jf.intel.com> References: <1441199871-7384-1-git-send-email-eranian@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1441199871-7384-1-git-send-email-eranian@google.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 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? -Andi