From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932883AbeAXJqq (ORCPT ); Wed, 24 Jan 2018 04:46:46 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:56685 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932606AbeAXJqo (ORCPT ); Wed, 24 Jan 2018 04:46:44 -0500 Date: Wed, 24 Jan 2018 10:46:36 +0100 From: Peter Zijlstra To: Lin Xiulei Cc: Jiri Olsa , mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, Stephane Eranian , torvalds@linux-foundation.org, linux-perf-users@vger.kernel.org, Brendan Gregg , yang_oliver@hotmail.com, jinli.zjl@alibaba-inc.com, "leilei.lin" Subject: Re: [PATCH v2] perf/core: Fix installing cgroup event into cpu Message-ID: <20180124094636.GP2228@hirez.programming.kicks-ass.net> References: <20180124075010.83296-1-linxiulei@gmail.com> <20180124082036.GL2228@hirez.programming.kicks-ass.net> <20180124091456.GN2228@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 24, 2018 at 05:19:34PM +0800, Lin Xiulei wrote: > Sure, and I consider this "OK" works for "What goes wrong if we leave > it set?". : ) It would be good if you inspect the code for the case of leaving cpuctx->cgrp set with no cgroup events left -- AND -- put a blurb about what you found in your new Changelog. I suspect it works out and something like perf_cgroup_switch() will fix things up for us later, but double check and test.