From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751404AbdHaJxf (ORCPT ); Thu, 31 Aug 2017 05:53:35 -0400 Received: from mga02.intel.com ([134.134.136.20]:60957 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbdHaJxd (ORCPT ); Thu, 31 Aug 2017 05:53:33 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,451,1498546800"; d="scan'208";a="1009587283" To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin Cc: Andi Kleen , Kan Liang , Dmitri Prokhorov , Valery Cherepennikov , Mark Rutland , David Carrillo-Cisneros , Stephane Eranian , linux-kernel From: Alexey Budankov Subject: [PATCH v9 0/2] perf/core: addressing 4x slowdown during per-process profiling of STREAM benchmark on Intel Xeon Phi Organization: Intel Corp. Message-ID: <4d83cc42-37c5-ed06-63ad-c71bbf7f4952@linux.intel.com> Date: Thu, 31 Aug 2017 12:53:29 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patch set v9 addresses feedback captured on review of v7. For more background details please refer to v7 and earlier. Specifically in this version groups are kept in a single tree indexed by CPU and then by a 64bit virtual index. In this version mux switch is renamed to rotation switch and the value of rotation switch may be the one of defined by ROTATION_DISABLED or ROTATION_ENABLED macros. ctx->rotate_disable bool flag is renamed to ctx->rotation and also employs ROTATION_DISABLE and ROTATION_ENABLED macros. pinned_group_sched_in() and flexible_group_sched_in() API are introduced to consolidate code enabling a whole group from pinned and flexible groups appropriately. Patches in the set are expected to be applied one after another in the mentioned order and they are logically split into two parts to simplify the review process. Thanks, Alexey --- Alexey Budankov (2): perf/core: use rb trees for pinned/flexible groups perf/core: add rotation switch to skip to the current CPU's events list on mux interrupt include/linux/perf_event.h | 17 +- kernel/events/core.c | 500 +++++++++++++++++++++++++++++++++------------ 2 files changed, 382 insertions(+), 135 deletions(-)