Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2124724pxb; Mon, 11 Oct 2021 22:55:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyhEpGYUP1IAn4c+C9g0gYtlI1bi4blid6aWC0m3ewo44oeUrBG8IhJVEqVsQkKd59N4J6 X-Received: by 2002:a17:906:a404:: with SMTP id l4mr30717836ejz.175.1634018129787; Mon, 11 Oct 2021 22:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634018129; cv=none; d=google.com; s=arc-20160816; b=z4MJk/40rikcZcjB5gwtFlMxYC3vIiwh4SIB8KjAG0WD6GW4lly9jhXKqV0MiptoKs s/HCO2k/iv6sGIUpQPuSF8ep+DiGEA0bzsVD1wh+RNOXeROqKUBMbK8enyIipW+tCxxu MDIe4DIvm0OrHkMw+JW1TbMhRfI/gd0VwqTqy1dHnswQfKQyX9UNGezi5Rk/3d/4W8Lq cqffF2eozNxp6Oz/+3Klz/FDhlr2EfZ/ipgpbBgglz4z2z/nlStmpwXR92mpH7jwwwRn y8FUXF2xp40Cmm21qS3HD9+HJ9wCHxXnIVmqqpUOcTMtVGLH9jEYt0qDQt2ZDu95OgDs oe1w== 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:from:references :cc:to:subject; bh=XLrl/S13ZGeL7ESKwAmiHzfzw16iVDKg8U0zQeN4AsE=; b=SE9SB1MgLauLdG9847CE7aLCayu1wr6wb8glAVNktQKGQmqnYe2EurPeHtjbEmlS80 ZqfVL3sWHhm3ms64979kL/c90w+LAl9xQBfgbeYEl+YT1lbD8NiUGQsfF/D2OcRKD9k5 ZWFiVClsiXq8EC64FErsENSzkCBj09PCv8LmZfBB6Hx016wTa6TX21VAq089f7j2qQbT AK6kpheJ0jrfH3JzdODUDOllt66uDmVwppmuPWo821KCkTZzTqF8kB+PHreZYplutJwK +R0g3uicXielBGRti1Ss6lHR9R0uIA1XQipjH/7iOyQlMTARfiEFaQMLkCfNcPSZwMkr WQGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si19649690ede.422.2021.10.11.22.55.06; Mon, 11 Oct 2021 22:55:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232254AbhJLFxT (ORCPT + 99 others); Tue, 12 Oct 2021 01:53:19 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:55965 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232673AbhJLFxQ (ORCPT ); Tue, 12 Oct 2021 01:53:16 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R931e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=yun.wang@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UrXy.sr_1634017873; Received: from testdeMacBook-Pro.local(mailfrom:yun.wang@linux.alibaba.com fp:SMTPD_---0UrXy.sr_1634017873) by smtp.aliyun-inc.com(127.0.0.1); Tue, 12 Oct 2021 13:51:14 +0800 Subject: Re: [RESEND PATCH v2] trace: prevent preemption in perf_ftrace_function_call() To: Peter Zijlstra Cc: Steven Rostedt , Ingo Molnar , open list , Jiri Olsa References: <20211008200328.5b88422d@oasis.local.home> <87aeef5b-c457-d4df-8abf-f9f035d73dbc@linux.alibaba.com> <20211011144510.GE174703@worktop.programming.kicks-ass.net> From: =?UTF-8?B?546L6LSH?= Message-ID: Date: Tue, 12 Oct 2021 13:51:13 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211011144510.GE174703@worktop.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/10/11 下午10:45, Peter Zijlstra wrote: [snip] >>> >>> Oh, I might've gotten that wrong, I assumed regular trylock semantics, >>> but it doesn't look like that's right. >> >> I will use bit instead ret and give some testing :-) >> >> BTW, would you prefer to merge these changes into this patch or maybe send >> another patch with your suggested-by? > > Yeah, please send another patch; once you've confirmed it actually works > etc.. I did this before waking (as evidence per the above), who knows > what else I did wrong :-) I've send the: [PATCH 0/2] ftrace: make sure preemption disabled on recursion testing should have taking care all the places, but only testing with x86 since I got no machine for other arch... just by logically it should be fine. Regards, Michael Wang >