Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2599366pxb; Thu, 10 Feb 2022 00:58:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSlyI1X5L+Zrk3waC0rfgdNR2aEeCsR7lcRGQBugB0yYEDJnrDpsTge9n2AHyfsZlvVrTe X-Received: by 2002:a17:906:f0cb:: with SMTP id dk11mr5455304ejb.20.1644483522400; Thu, 10 Feb 2022 00:58:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644483522; cv=none; d=google.com; s=arc-20160816; b=xF2pz2t7ibRkwW5mqUSq09pvf4l1X8UNOuJzNaNz/VxH3ke0k9vkPtbGSZV4XHuASh ySLIE6/vFebN/LU21Ofy8XiigArc91wfkR4tZAYEV6jArR+GMFlmJP+kOU52hGThhZgI JSFoFN7li2DVOAKvI2JOmYAXGRk4dqdvPQpsvxCEmV9rpHp7Rlmy8R41HUZur0ngqAtG OhdZlIyQEXizENQeP4OQ8uwDdU4BKtdd0m1jJTjhkURi+PGPwcqq477+Kb+DXhPGQC6R PI/p7gM5W+1U5Zamw0LrcGx3RrFjSQrenqWfzqrdMde7wsEf0DtdU4iE1BW28mln8Iwq luGQ== 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:dkim-signature; bh=rnVHj9CHiNB6vcrhWaipk1/sdp7xgf97Hh+oKwEPpOs=; b=TsAYg32x2mV4VmrH9YMrsR7XHvIe+5v6KPt3fbCwTsduVoXKCFfrElacE78Mncko/+ tNQhVNI+JWujghT9U9gpZpMfmcbNX3rgaZ4fibnEZBSxpoKNUSit6CFzJRBoSu7Or2JI mgEUDF92QXA6lLQOxvULBNrLU+gtPZij4sHdjj0LzDTdAeBbEx3+eAJYuZZZaF1Yi2L5 SLADc/pgy4If3iMtQOBk1HPTHRRYMTSgGveDj6z8CRgzL6s7xQAhuKSHdOmQzvYFsKWg yjohyzBzwHZXhF6bPQgbl5d/GU8hx/GcHRTmSWO1iqu7TtKNOrnazM0frbMMYoAeiybI OdRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=hKlHiHRQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc41si6422267ejc.5.2022.02.10.00.58.17; Thu, 10 Feb 2022 00:58:42 -0800 (PST) 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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=hKlHiHRQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237114AbiBJILJ (ORCPT + 99 others); Thu, 10 Feb 2022 03:11:09 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237098AbiBJILH (ORCPT ); Thu, 10 Feb 2022 03:11:07 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D1121097 for ; Thu, 10 Feb 2022 00:11:06 -0800 (PST) Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 3C4F83F32C for ; Thu, 10 Feb 2022 08:10:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1644480658; bh=rnVHj9CHiNB6vcrhWaipk1/sdp7xgf97Hh+oKwEPpOs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hKlHiHRQmg2i9AQzqbU5BfEQOztKoNYvApUzp+n4PPyY8KF44lJeVn97keQlOyOTO ovkte5tYNaD15sj1k2ImhDJt9D4uOBGXg/B0Bmg1STf0MnNKY7YWfsjX8fh4e2xfAp 7U8K5eu0OCFYEt//NTAeFESqEk+zxlzs6Y8lcC3uaAucTFmqKZ2c7GDPvkmzFWs6nK ht/A3ywBaun6hf8oXorfnrV2SenWAUFYIy0Jy0E9hupGOxx8TjLt69/+XtOFGyhMID /q8YN+uV5rUWrbaplr+d0XidT64dQIkck7iNLiEGaSDmkKuIQ/W9f7cfnnEDJHl2yT o/37vv1gC9xag== Received: by mail-ed1-f71.google.com with SMTP id ed6-20020a056402294600b004090fd8a936so2864639edb.23 for ; Thu, 10 Feb 2022 00:10:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=rnVHj9CHiNB6vcrhWaipk1/sdp7xgf97Hh+oKwEPpOs=; b=OIKP8GGnNn2rh7SXgWqSqfUwTcEUjkQbSvwfOMveUK3U3fPrj+VCbJEXOoefANDx2+ c0oaCXlMH0AcE1KBuWQJ+d5mKHxep7CIGi+1myoq2SoZMT10xt6xCJ1pBttc/pBdNmOA RhNQGAbPnmtyysQkD3Cuw+tnKVDWpscr533piYZefg92f/hjeTv6TiBU4ILyeR6pEF+a WIdVskVGQyFSdryMkG8QnbFtnefS6fZShI//g6eRbLhg7FYn7RHX/2FOPTxsv8IAnH5t LZSqgBUkZltlnffruZ4BYBX+giNBgRx+vJGUA+Ad+W0LodYRIqAxF2H0FSvaLZgt5j9L RV5w== X-Gm-Message-State: AOAM5336oDmO+w1AxLyLtLsRvcVqYNqA/Ew1d229ZvEiuUwXHHjCVVts Br5QUZtyWUhcSXe8ys/Jx9Qv1P1pPt/JVKtcQuLE+1MEngtroST1FhEPypuU+JOF76UrbXQAY/j 1594WThSTRca4emx5jkeKZE2aCYamzlAqLAe1+kI0eg== X-Received: by 2002:a17:906:5349:: with SMTP id j9mr1695990ejo.368.1644480656975; Thu, 10 Feb 2022 00:10:56 -0800 (PST) X-Received: by 2002:a17:906:5349:: with SMTP id j9mr1695977ejo.368.1644480656756; Thu, 10 Feb 2022 00:10:56 -0800 (PST) Received: from [192.168.0.97] (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id kw5sm6904003ejc.140.2022.02.10.00.10.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 00:10:56 -0800 (PST) Message-ID: <61be0071-a6e9-f749-37e9-978a72a60897@canonical.com> Date: Thu, 10 Feb 2022 09:10:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] selftests/ftrace: Do not trace do_softirq because of PREEMPT_RT Content-Language: en-US To: Steven Rostedt Cc: Ingo Molnar , Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, joseph.salisbury@canonical.com References: <20220209162430.286578-1-krzysztof.kozlowski@canonical.com> <20220210000003.6b6142f9@gandalf.local.home> From: Krzysztof Kozlowski In-Reply-To: <20220210000003.6b6142f9@gandalf.local.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 10/02/2022 06:00, Steven Rostedt wrote: > On Wed, 9 Feb 2022 17:24:30 +0100 > Krzysztof Kozlowski wrote: > >> The PREEMPT_RT patchset does not use soft IRQs thus trying to filter for >> do_softirq fails for such kernel: >> >> echo do_softirq >> ftracetest: 81: echo: echo: I/O error >> >> Choose some other externally visible function for the test. >> >> Signed-off-by: Krzysztof Kozlowski >> >> --- >> >> I understand that the failure does not exist on mainline kernel (only >> with PREEMPT_RT patchset) but the change does not harm it. >> >> If it is not suitable alone, please consider it for RT patchset. >> --- >> .../selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc b/tools/testing/selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc >> index e96e279e0533..1d0c7601865f 100644 >> --- a/tools/testing/selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc >> +++ b/tools/testing/selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc >> @@ -19,7 +19,7 @@ fail() { # mesg >> >> FILTER=set_ftrace_filter >> FUNC1="schedule" >> -FUNC2="do_softirq" >> +FUNC2="_printk" > > The problem with the above, is that it is not guaranteed to trigger (and > probably will not), where as the do_softirq is. The filtering is suppose to > trace something that actually happens. > > How about using: scheduler_tick ? > This works as well. I had impression that the test is only about filtering interface and actual function does not have to hit/trigger. I'll send v2 with scheduler_tick. Best regards, Krzysztof