Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2502482pxb; Wed, 9 Feb 2022 21:55:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2DPM+gn8rDrO6p1mqy1Bn3ym85iYzo45M5geICC3VZzQAbAk5mmba6LUkr/ENHIZ/rZF4 X-Received: by 2002:a05:6402:490:: with SMTP id k16mr6647949edv.204.1644472512331; Wed, 09 Feb 2022 21:55:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644472512; cv=none; d=google.com; s=arc-20160816; b=uzbbK2YKlJHa1BAQKt3rqO73koPVnxtqmipdSNef+RFivgSLwdTYQknRTmU1NtDnNu aJqKQniOFUin7DSaJLBKwxaskmXgrrqHWE+zC7deRktYjw3F74Btzf65H4CzTeA9zXhV O5YY/TWP62AtjOIEAMZTGqV2Vvh+6SHmeZuEKVFEPu5c5lUreVykoewL24MDMzFaigT7 iy+sDyIHS2zMfwLIjsPk2KkihtsAodU46BgMgN+oKlUhAAsFotBBO9w1ElAkQhBs3X4W yTxPMFuZT80RYlv2cjIU9kuWnA1eCTQnGsfI2nMJy5jzXv/cord8KZ/NLq0Egm+YZBF1 oK6A== 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:subject:cc:to:from:date; bh=XM5tTie+9cfC7mcG2gplxJAVwwOKWbOrh+e/9kY4KaE=; b=JycgdDtyMUihoJlvIzvScFCIfNFnfkZ91DYhmKOwNdYpjlltCS/nur/U4IRJOBwvgn DYqsdvWVhpfjjorTxUoaSVF3+U6PqXw3Acgq/zBHLuFcLoE94SCbyLpZRRkdM9jtnJT+ vLllXy6dsj8PMqh6GgECmhVuly5e6P4kHBLYdH73xoFgIxuxob9WSedVU+jUWSmyvorq tBdJYGiI0PYdIN5RR7aj79cLIJQG/iQxmfAyKn895Ryu/W5TFU+VcmwImRbRN1mEe5YO x4jIoWPQj0P1PkTOhBeGpDYlm3AyBa2x3PRI9PpFj5Qriji2kRFb3uacdI/GAzHovVA3 GSag== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14si5136268edd.614.2022.02.09.21.54.46; Wed, 09 Feb 2022 21:55:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232118AbiBJFAI (ORCPT + 99 others); Thu, 10 Feb 2022 00:00:08 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbiBJFAH (ORCPT ); Thu, 10 Feb 2022 00:00:07 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 275061F7; Wed, 9 Feb 2022 21:00:08 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 53CF8B80E19; Thu, 10 Feb 2022 05:00:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49067C004E1; Thu, 10 Feb 2022 05:00:05 +0000 (UTC) Date: Thu, 10 Feb 2022 00:00:03 -0500 From: Steven Rostedt To: Krzysztof Kozlowski 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 Subject: Re: [PATCH] selftests/ftrace: Do not trace do_softirq because of PREEMPT_RT Message-ID: <20220210000003.6b6142f9@gandalf.local.home> In-Reply-To: <20220209162430.286578-1-krzysztof.kozlowski@canonical.com> References: <20220209162430.286578-1-krzysztof.kozlowski@canonical.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 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 ? -- Steve > > ALL_FUNCS="#### all functions enabled ####" >