Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6824727ybx; Mon, 11 Nov 2019 15:35:28 -0800 (PST) X-Google-Smtp-Source: APXvYqyC9Qrk4gWozeJuSvCeCW3Lq/Vwgq9lIiVD8MbD9SiifVhyG2P7dTkcuA+cei5oSUa6t91p X-Received: by 2002:a50:b262:: with SMTP id o89mr28776083edd.170.1573515328764; Mon, 11 Nov 2019 15:35:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573515328; cv=none; d=google.com; s=arc-20160816; b=z5ZggCPfN65tU9ZBxYpzHhsFRHdBhGvD3RNVijZgk1XMldzN67uQN3SQc3k4p36l7e aVXPEFLGMH1m5pVLWBXRjYFZZ7qY7lxDKI4HUp7b19vdfg5o4ylOSRc04RPewtnqxgms Wpj0+xSDaljCFs4nQ4WlpCKRVtqFiEMaiWbmiiyI2FwNCzugzf9JUZeY+MIk4yHhgZbM kqvRqGEjA4fYYUQGEWbcKC/jMcrHLx9QdTqXyYK4mqZS0mlr4crk/ax86CBTL0lQM0Hn AnXb/blFW+S8/MwNqFXLuLFCMYuxYjt9VFN23ZA8xaA1Syngks2Ilcug0f4XEOAaMnU0 ZZ5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/YG7iYvKQcvQld0zxP+iPdp8eOlj2RsC4YoG4jWbczM=; b=ZSmL1CHfMeT9VSsnd2ik24p/Sl8AeMgT3dGSEFAn5V0anlTcoVR6WkL/c+807WiXi1 IdTM0cYvaBUhSgKJ8iZvKjVJbT56XZb8NUF+qWJhNccoOeVOCLSmnYUdlwMOtTQeMOpl j6wQsYfv+mCs2AwxRiqEqQoGZ2kIuXwcrYeMPkNmvAr2UJENPlHYPv+38mFqu0NL4XJB oi0nqqGl0L5w7aKblanyqt4KQM/xiCrqWNxmWD4GxU8NOhYOYr10z0/2lRzodi6wktp1 rIae67AZ8/gJkDXYCRD0r70AVnDxbctBScExKzVT+6uXCYjbZ2KhSQ0GBEMD7/MdVENP cKOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=yJSRUbmi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si1959931edg.76.2019.11.11.15.35.00; Mon, 11 Nov 2019 15:35:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=yJSRUbmi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727295AbfKKXb2 (ORCPT + 99 others); Mon, 11 Nov 2019 18:31:28 -0500 Received: from one.firstfloor.org ([193.170.194.197]:57802 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726845AbfKKXb2 (ORCPT ); Mon, 11 Nov 2019 18:31:28 -0500 Received: by one.firstfloor.org (Postfix, from userid 503) id B30C9868A0; Tue, 12 Nov 2019 00:31:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firstfloor.org; s=mail; t=1573515085; bh=/YG7iYvKQcvQld0zxP+iPdp8eOlj2RsC4YoG4jWbczM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yJSRUbmiU3bFUZW6AOnkY2T5QOZeza/9fERK5ybf1nevjDwK6eTGX7KNn9XtXvm/J 6U4OyngwlFxc2GjNNNLgTGCaDkms9TtSEdoR+GjE3XIQj7VG2xDvrXqOJJGFx0HqR/ wDVa3F78xyB/Ag1wdA2IJBaLzsG98g8uhCJWcxuI= Date: Mon, 11 Nov 2019 15:31:25 -0800 From: Andi Kleen To: Jiri Olsa Cc: Andi Kleen , Andi Kleen , jolsa@kernel.org, acme@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 13/13] perf stat: Use affinity for enabling/disabling events Message-ID: <20191111233124.sg4g7rkwa4g4u7al@two.firstfloor.org> References: <20191107181646.506734-1-andi@firstfloor.org> <20191107181646.506734-14-andi@firstfloor.org> <20191111140415.GA26980@krava> <20191111165028.GC573472@tassilo.jf.intel.com> <20191111200655.GB31193@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191111200655.GB31193@krava> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > then let's have some assert or BUG_ON on !all_cpus > and remove the fallback code from close path I tried it again, but in record mode evsel->cpus is usually NULL, resulting in various crashes. I think fixing this beyond the scope of this patchkit, so i will keep the fallback checks for now. I'll add better comments though. -Andi