Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5346363rwl; Mon, 3 Apr 2023 19:08:06 -0700 (PDT) X-Google-Smtp-Source: AKy350Ydqg8k+rdXU4eqeGIRLqJDjmnW1ttJ0VJUgXDoxQR1+XnkqIqN/t3m8seMNWRT4YmG+IX5 X-Received: by 2002:a17:907:a07b:b0:932:ba53:83ba with SMTP id ia27-20020a170907a07b00b00932ba5383bamr790135ejc.34.1680574086268; Mon, 03 Apr 2023 19:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680574086; cv=none; d=google.com; s=arc-20160816; b=oXN/0VfTnsE3ZVBuuOTKhXxc8NC409IFxW1/2VehJHoD5LLE5t2fTpucx0gzxm1jci 6aX/YHNNarxqagXeft9GwESTn72el0BDOKcaEVKUj+/Y1GtGR/1wWhXxAtaU4dMZ0c9s xk2iqfB8WLv6sxOWI4NiCR/iowXvT78ACz7bjPvi5GGlJsoahYHSm/NeiywWB6TZDQxp NCulvV/S6ygpY07w5Aja7qXTw/4MBhi8GvLThfZaPsFNh3w2LB8n4fyxQffzFMP8kCK7 v0GOsOTevE/XyZP5KJLa4LeaDd4y4ATzFfoaXbblyEPmokGasWhca//ebpZ1Lk16hBn0 kWJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=9b+T7YxPISNhVIwbrr6ne5NJigFUzfkKj1ZO9NCuI0o=; b=pDCCp+P1ALqFzJBxpaMWpx1/yPFjyH6jkB5LHH00vz13GAlISrfM+YnZ/znUs+NAks KFeMWR58YCKtUTdtQDEH1z4VydCRx8Gwa4Ba9eDBSa6j9KLLERwpMrULWCI+LPn63WTO veJNHn5OLDjzkrCR/4cZx274GMVmHjz53qxKOhwIVccBu4KtvpLzwgvnqk6j9zZOKGKP 9chV30zV+BYRgr0HVm+J6q8fgdUHXsEJW0H5N+ll8xJ9KnoU4Uwx0r6wl6ojexX5Ybw0 jFUqFTv5/IpfcmKLGktp+53SsRqcaSLwdLuKMuf/IJHcw5xPuRLCCH1zu9WrkRpl2z3n Z3eA== 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 v23-20020a1709067d9700b00932f39fa597si7669023ejo.698.2023.04.03.19.07.42; Mon, 03 Apr 2023 19:08: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 S232543AbjDDCDi (ORCPT + 99 others); Mon, 3 Apr 2023 22:03:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbjDDCDh (ORCPT ); Mon, 3 Apr 2023 22:03:37 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE7D71980 for ; Mon, 3 Apr 2023 19:03:35 -0700 (PDT) Received: from dggpemm500013.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Pr9wK67JKzKrSc; Tue, 4 Apr 2023 10:01:05 +0800 (CST) Received: from [10.67.108.67] (10.67.108.67) by dggpemm500013.china.huawei.com (7.185.36.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 4 Apr 2023 10:03:33 +0800 Message-ID: Date: Tue, 4 Apr 2023 10:03:33 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.0 Subject: Re: [PATCH] x86: profiling: Using generic unwinding in profile_pc Content-Language: en-US To: Andi Kleen , "x86@kernel.org" , "linux-kernel@vger.kernel.org" CC: "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "hpa@zytor.com" References: <20230224021858.120078-1-chenzhongjin@huawei.com> <96d44033-3bfd-840b-15d7-80dd3a1a5313@linux.intel.com> From: Chen Zhongjin In-Reply-To: <96d44033-3bfd-840b-15d7-80dd3a1a5313@linux.intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.108.67] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500013.china.huawei.com (7.185.36.172) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-3.6 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 On 2023/4/4 2:29, Andi Kleen wrote: > > On 4/2/2023 6:24 PM, Chen Zhongjin wrote: >> Just ping... Or has profile code already been obsoleted? > > > I think it would be reasonable to remove the locked functions hack > since lock profiling can be handled with much better other tools these > days. > > I wouldn't make it depend on the generic unwinder since such a low > level facility is likely better off without complex dependencies that > could break. > > -Andi > > Although now the generic unwinder on x86 is quite stable... I think it's acceptable to remove the locked functions unwinding for !FP case and leave the FP part as is. I'll send a new patch for this with another bugfix. Thanks for review and best, Chen