Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3599706rwl; Sun, 9 Apr 2023 20:17:06 -0700 (PDT) X-Google-Smtp-Source: AKy350ZXmVplj+FLXOvJCO1atq12vZhcS8VkZJZnP9dnop7xunZyyy+wxT39yWlaxHAWqOE1nT/N X-Received: by 2002:a05:6a20:29a4:b0:d9:2818:44d with SMTP id f36-20020a056a2029a400b000d92818044dmr9031859pzh.11.1681096626062; Sun, 09 Apr 2023 20:17:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681096626; cv=none; d=google.com; s=arc-20160816; b=UEmHgUz7dRJhVKTo093DFYIBzmCCy6R4ponb2y+ChBPleDeDaqOw5pmtAEpRm6VXeh BPMRHzx7PnShT8JyESvjJ74Vz9Y+PRr8k7wMQMkccVW7PsIoK93rD+g16Cs8TpBOTv88 scMvxuL1hFm1czy2knYIxT3uAXi35/WBwPHIEzaWrq1xC8J9HI21x88jSI1ROrBkcEX5 y/O8oA7FlRyRtEasZZU4Sr4/eHf5RNyVbLLv1KYk/9MDWSDB/9Nf/XaIvHiYE6Op0Da9 AF9mOFenhXFP9SMAV6Xu0U5wnJtRiu1seZLNZP1SNEYYK5Gsdv5QBvm2dc29euHKxwSb bN3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=UosCqk4QFAstWyH0KtPGjW2oEH1BRgfB6IH6XtvIPS0=; b=l/anTXc2xDHf4yYG7KW3RBKD6JYhFHfdux0y9la+CdKzghhJ64fVCvVeeZLh5ljKg0 7/Ki7d2cPxtO7pZE6g7DERaOPo0/1U+Lbvk3Iwymltu2y2b5g+8bQywiPTyCIEA6qkfB G1uelheDa/6s8jq4i9MJDhELbc/mPALForW+3ST6YVVCDP1roDx+uqbHzs8jc4LTvFnA dx0W+/ZHuaQnO4E6c0o4mY6CGKJjVbPu/Yt7ev+dj3mqwCMR48+1sO20xrQEzzYLSUmm qncBi5KI+PtuXCUPjAPIv+e2z/sga0lEIR2zPbVPn/hU3UI3G7kw63bzAID5FhkI8qFc +A+w== 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 u26-20020a63471a000000b0050b026c3aa7si9326606pga.395.2023.04.09.20.16.55; Sun, 09 Apr 2023 20:17:06 -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 S229731AbjDJC6R convert rfc822-to-8bit (ORCPT + 99 others); Sun, 9 Apr 2023 22:58:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbjDJC6Q (ORCPT ); Sun, 9 Apr 2023 22:58:16 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A698730DD; Sun, 9 Apr 2023 19:58:14 -0700 (PDT) Received: from kwepemi500007.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4PvtqN3skxz17MGW; Mon, 10 Apr 2023 10:54:40 +0800 (CST) Received: from huawei.com (10.174.179.93) by kwepemi500007.china.huawei.com (7.221.188.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 10 Apr 2023 10:58:10 +0800 From: Hangliang Lai To: CC: , , , , , , , , , , , , , , Subject: Re: [PATCH v2] perf top: expand the range of multithreaded phase Date: Mon, 10 Apr 2023 10:58:08 +0800 Message-ID: <20230410025808.2008-1-laihangliang1@huawei.com> X-Mailer: git-send-email 2.37.3.windows.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain X-Originating-IP: [10.174.179.93] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500007.china.huawei.com (7.221.188.207) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Thanks for your reply Kim , On 2023-04-07 21:21 you wrote: > Not always, the synthesis can run in a single thread. But I think in machine__synthesize_threads, there are thread_nr threads will be created to do synthesize_threads_worker(tools/perf/util/synthetic-events.c:970) It’s not a single thread part. So we're supposed to call perf_set_multithreaded() before synthesize? Thanks, Hangliang Lai