Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751296AbdIELUG (ORCPT ); Tue, 5 Sep 2017 07:20:06 -0400 Received: from merlin.infradead.org ([205.233.59.134]:52720 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750955AbdIELUC (ORCPT ); Tue, 5 Sep 2017 07:20:02 -0400 Date: Tue, 5 Sep 2017 13:19:43 +0200 From: Peter Zijlstra To: Alexey Budankov Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Andi Kleen , Kan Liang , Dmitri Prokhorov , Valery Cherepennikov , Mark Rutland , Stephane Eranian , David Carrillo-Cisneros , linux-kernel , Vince Weaver , Thomas Gleixner Subject: Re: [RFC][PATCH] perf: Rewrite enabled/running timekeeping Message-ID: <20170905111943.v2twm3jgu3mct3ib@hirez.programming.kicks-ass.net> References: <20170803150052.za2vofyqfgarukdr@hirez.programming.kicks-ass.net> <20170822204743.GR32112@worktop.programming.kicks-ass.net> <2a426aa2-42c8-e839-1cec-aa3971651f3e@linux.intel.com> <20170831171837.njnc6r6elsvkl7lt@hirez.programming.kicks-ass.net> <46f72a3f-f18b-0227-3d78-fb23c8a6e18e@linux.intel.com> <20170904120843.oazlv73phoxoinlj@hirez.programming.kicks-ass.net> <385005b6-51ea-383e-df81-43365f3f5152@linux.intel.com> <20170904154145.xl4fyg7vhgbnmhwi@hirez.programming.kicks-ass.net> <9c3c1fc7-5a2e-2745-dab1-390dc7d58d50@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9c3c1fc7-5a2e-2745-dab1-390dc7d58d50@linux.intel.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 388 Lines: 9 On Tue, Sep 05, 2017 at 01:17:39PM +0300, Alexey Budankov wrote: > However we can't completely get rid of whole tree iterations because of > inheritance code on forks in perf_event_init_context() here: Right, fork() / inherit needs to iterate the full thing, nothing to be done about that. I'll go make proper patches for that timekeeping rewrite and then have a look at your patches.