Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp2045265rdb; Thu, 17 Aug 2023 09:09:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5wNBYanXVSPQeLKQlc5KX+zWcEShf7qsPJEhjrSgxcE0wOlgTPJmWOzCC4dNSY1AYI6lV X-Received: by 2002:a17:907:168e:b0:98e:738c:6d39 with SMTP id hc14-20020a170907168e00b0098e738c6d39mr4040396ejc.36.1692288587786; Thu, 17 Aug 2023 09:09:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692288587; cv=none; d=google.com; s=arc-20160816; b=oO+6oaw7A2DpSX48DrZZiiYTIoIMVmQwsW/Tu68wowGPHBrHE39F4DBu+7vyMBx70n QT4qvS06Dr9uF5xdU8SzbzuYqnkPOEd2fplQ7P+25mPtmxKrDSi5xCk600te2aVQst71 MoCLnIIv6QmDlRNt+Q2lFrd9JzMaAxD6S2wRLez9RTxDwTWF+qf+j7fQMIFlegkunM1v FkoUL09fYsjlIXuaJ9dIHiBP8kbSDhlYA7Vd8xTPI6Pl0uTpwVnWkBM95KC3SskMcs9q BpZcNQhpumVWLmlMmdJwLMUGuBy6cgGKwUjWDCg0WZLaKSHqp5KGXOvwPqX1sRg+Ybgf 9i8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject; bh=6Oy2MMOWGURzZm65cuVa2GTkKwnbNbbTL8Sc/8n7hOY=; fh=4IjgEq0j6giTqQS1WiXaP0Cq7WFpNsEvUHhE5Ls389E=; b=iV9CJixeZ80LIgFwI4n/2lcqK/+6daIwJ+veBd9hSUFYT3q9hiC18bArWjj4H4oaOA +RDVwxOnaC+Bed2DgQs4L1kN1+7O60jGeRK/Xdhe6m28fT9KQPZfdNEusxOwC+S8qdlk hKdO/x1ICJS7yznRz1or6VTKBnWBreJ5zFotJTvv1zXHOs39lSjWtFidurBYxryC66vb HfrKjcrOGEX3lseLeu4FfhQrm8Fmm1LY+hm0AB8ZlFwOWX/umAS4PUPl4pL1fX4G0Ja9 TzwNCOiWPX7Aibn5IqAhNWJ8IZlt9dSBjcyl7IPVy+qwSCrpvpPxE4S9MNl/4EjhsZsY sXtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jj7-20020a170907984700b0096f4deef5basi13286081ejc.649.2023.08.17.09.09.22; Thu, 17 Aug 2023 09:09:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350816AbjHQM1P (ORCPT + 99 others); Thu, 17 Aug 2023 08:27:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350900AbjHQM1L (ORCPT ); Thu, 17 Aug 2023 08:27:11 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A251E271B; Thu, 17 Aug 2023 05:27:09 -0700 (PDT) Received: from kwepemm600003.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RRPL83spWztSHK; Thu, 17 Aug 2023 20:23:28 +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; Thu, 17 Aug 2023 20:27:05 +0800 Subject: Re: [PATCH v5 3/7] perf record: Move setting dummy tracking before record__init_thread_masks() From: Yang Jihong To: Ian Rogers CC: , , , , , , , , , , , , , , Adrian Hunter References: <20230804020741.99806-1-yangjihong1@huawei.com> <20230804020741.99806-4-yangjihong1@huawei.com> <29111bbc-61af-4452-bf73-c3b32221989f@huawei.com> Message-ID: <753ead6a-3113-5e10-3249-09a33042b8f3@huawei.com> Date: Thu, 17 Aug 2023 20:27:05 +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: <29111bbc-61af-4452-bf73-c3b32221989f@huawei.com> 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: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On 2023/8/15 9:57, Yang Jihong wrote: > 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. > Ian, do you have any questions about the commit message above? If it's okay, I'll send the next version as above. Thanks, Yang