Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934980AbcKWUHA (ORCPT ); Wed, 23 Nov 2016 15:07:00 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:58025 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933575AbcKWUG6 (ORCPT ); Wed, 23 Nov 2016 15:06:58 -0500 Date: Wed, 23 Nov 2016 21:06:46 +0100 From: Peter Zijlstra To: kan.liang@intel.com Cc: mingo@redhat.com, acme@kernel.org, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, tglx@linutronix.de, namhyung@kernel.org, jolsa@kernel.org, adrian.hunter@intel.com, wangnan0@huawei.com, mark.rutland@arm.com, andi@firstfloor.org Subject: Re: [PATCH 04/14] perf/x86: output side-band events overhead Message-ID: <20161123200646.GZ3092@twins.programming.kicks-ass.net> References: <1479894292-16277-1-git-send-email-kan.liang@intel.com> <1479894292-16277-5-git-send-email-kan.liang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1479894292-16277-5-git-send-email-kan.liang@intel.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 577 Lines: 16 On Wed, Nov 23, 2016 at 04:44:42AM -0500, kan.liang@intel.com wrote: > From: Kan Liang > > Iterating all events which need to receive side-band events also bring > some overhead. > Save the overhead information in task context or CPU context, whichever > context is available. > > Signed-off-by: Kan Liang > --- > include/linux/perf_event.h | 2 ++ > include/uapi/linux/perf_event.h | 1 + > kernel/events/core.c | 32 ++++++++++++++++++++++++++++---- > 3 files changed, 31 insertions(+), 4 deletions(-) Guess?