From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4736C001E0 for ; Tue, 15 Aug 2023 01:58:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234054AbjHOB55 (ORCPT ); Mon, 14 Aug 2023 21:57:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233256AbjHOB5j (ORCPT ); Mon, 14 Aug 2023 21:57:39 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09627B0; Mon, 14 Aug 2023 18:57:39 -0700 (PDT) Received: from kwepemm600003.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RPvSn3mBJztRwy; Tue, 15 Aug 2023 09:54:01 +0800 (CST) Received: from [10.67.111.205] (10.67.111.205) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Tue, 15 Aug 2023 09:57:35 +0800 Subject: Re: [PATCH v5 3/7] perf record: Move setting dummy tracking before record__init_thread_masks() To: Ian Rogers , Adrian Hunter CC: , , , , , , , , , , , , , References: <20230804020741.99806-1-yangjihong1@huawei.com> <20230804020741.99806-4-yangjihong1@huawei.com> From: Yang Jihong Message-ID: <29111bbc-61af-4452-bf73-c3b32221989f@huawei.com> Date: Tue, 15 Aug 2023 09:57:35 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.111.205] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On 2023/8/15 4:29, Ian Rogers wrote: > On Thu, Aug 3, 2023 at 11:58 PM Adrian Hunter wrote: >> >> On 4/08/23 05:07, Yang Jihong wrote: >>> When dummy tracking go system wide, the mmap cpu mask is changed. > > As previously commented, can we improve the quality of the function > names and commit messages? This sentence is particularly difficult to > understand, I don't understand it. OK. The commit messages will be modified. Please check whether the following description is clear: User space tasks can migrate between CPUs, so when tracing selected CPUs, sideband for all CPUs is needed. In this case set the cpu map of the evsel to all online CPUs. This may modify the original cpu map of the evlist. Therefore, need to check whether the preceding scenario exists before record__init_thread_masks(). Dummy tracking has been set in record__open(), move it before record__init_thread_masks() and add a helper for unified processing. Thanks, Yang