Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2120765pxb; Wed, 9 Feb 2022 11:15:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyE4IEV3P3FSKSF1qj750cSG0EdcNf3pTZQQaTDguLONZa2fV0kQX7gMGG65XwF3M4ddbuh X-Received: by 2002:a17:90b:1a90:: with SMTP id ng16mr5071311pjb.72.1644434141083; Wed, 09 Feb 2022 11:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644434141; cv=none; d=google.com; s=arc-20160816; b=zbSOnoWwmE3pb/y4TEKKXDzGZ9Nq1OLI0fuYkrdEkxtXpjIDsjrBMviTHhfsG+uDuN PfQaqp51WvQi8+AsLhUCJo0UeDoSXR+/b2BPSIlHIHukaZkUC3pbRkiQmbE7Wj4wasSi lgTHhqVRMuxTnMW2TwmLbgW358V1eYEXk8s7IbLbA/jsZ4sN1udoLkDGLm6NAONahWFO uE+fI2ZouIi8PO7XFvYssBgsp5yPH2XD79tmLqFNaZZI0PFdV9DnQGWgwafbhG0B/jt7 r+GJD9xRz3soBtYyxj960jj8sYwi20Jm0sct0PELj2BepJ/bhDdb817KiJ5Lmfpq1hj0 liVA== 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 :message-id:date:subject:to:from:dkim-signature; bh=/xekYk/q8PDd5X+mZnZ/+eb+Bf0iUFVR8K4RtVmP8o4=; b=uCQE8tgmYobpecbj9h1+2jLdW2vW7IWvuQn3208wqK71XUiTnE6/uv/RxjmrKSYI21 7G0W4uqk0m8BBMceYgmETCXBolnk7t53mjvkSPU2EWsuW3dwNC9TOb6e1tujDeJz4W8P Z99qYC9BzDRLy4DIjCXzpdbD0RCNRsm2fOvsve531WqGR/ooX3KGt8NYBREXEoDtqvky 5+tOx2Jqxs4q/MUbFC6QPfLqxVG/zpaNGGZ0USaGpfoVrpa0QHKsg7fM2241a3xGFE4l fgQhM2ErLBbribNP/Jhq0xIxDj9aS4sx2WY/XgFVsOrBaBbkUDUUQOQzo4LWIaYXgaMb ditw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=U+gjmSlo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a15si14942370pls.313.2022.02.09.11.15.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 11:15:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=U+gjmSlo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 88F83C0043F6; Wed, 9 Feb 2022 11:14:17 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236792AbiBIQZN (ORCPT + 99 others); Wed, 9 Feb 2022 11:25:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236165AbiBIQZM (ORCPT ); Wed, 9 Feb 2022 11:25:12 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D37AC061355 for ; Wed, 9 Feb 2022 08:25:15 -0800 (PST) Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.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-1.canonical.com (Postfix) with ESMTPS id 2D2FA3F1F0 for ; Wed, 9 Feb 2022 16:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1644423911; bh=/xekYk/q8PDd5X+mZnZ/+eb+Bf0iUFVR8K4RtVmP8o4=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=U+gjmSlolYuUisQo0EDYIhK5RHaPwDdDvXikHufLFgBTfai88FvWmsUUsnmhJkFXu R1eAHAPiBgJByKS9ryg1Awn2zOSnG+ECzbMxHsjEbDAvJlm+CN5MDCa0+xQyFzlcnK uemSpDXlqnZJGjXjw//W36FVYRMPGixvZM/TSPmvlnVpw6dfdyU1X6SoE7Zs4H2wfz QtPpJgZTmot60G5y3+dbxJFnmRkLEIHcqv567Vg1P8CVsx+m/almcfdvbZiEnedGiP /sMcrk9f2Rxi/jHF2XaEnCp5+9RvlC2ht1p1/BSYnPt3GbXXK6ce1c+OiInk3wEqVy KXIJ5qCGMXjUQ== Received: by mail-ej1-f71.google.com with SMTP id 13-20020a170906328d00b006982d0888a4so1415357ejw.9 for ; Wed, 09 Feb 2022 08:25:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=/xekYk/q8PDd5X+mZnZ/+eb+Bf0iUFVR8K4RtVmP8o4=; b=3lGRXbCo+SJYl8dcSFaYgQsnyQ/YiEsyadhh/VMByIfC4wj0KP6iELlqgLhFPN1ejA 0JYL0Yx4h3h0BqR0VdbLUrb7Tot35+ZN6yNASgHaNRnUvhy66epbwy89+TNe2x47xRLt CJhuVG57J8twANyUskPlmOHmtV+Id5AxGfMjxdYeklCCgKz3b8tNRhXU2HUesLgVzKAT nTgkKpnF66BVkFnLNmI7t9yxJJGkEL9pvMsnvZ7jR6koyswTKdsqEq1trvK6Wm2pTwtp BqpHS+h3Ys+xWfj3FtRPn80uW0Otte2hQtnt0Rz9YSc5jKSxcsycVdna8P2pxLvadwuS r3Ow== X-Gm-Message-State: AOAM532tL69mrk3Fkw3KO3kC8rhoeCYNxmCDMZ7gqJLrsdPcos8qEPPf qrjHZrcBt3xlAHmrW5sMSM10MVvvz6vMETBu4oIwHt11de3dVWjGwINEWnEJx7oz0wdcOwl669I CYlEbGndOSq7zJyu9iwV/JeOeLKJL8Cdi3SO/DciEOQ== X-Received: by 2002:a17:907:a409:: with SMTP id sg9mr2642421ejc.219.1644423910884; Wed, 09 Feb 2022 08:25:10 -0800 (PST) X-Received: by 2002:a17:907:a409:: with SMTP id sg9mr2642412ejc.219.1644423910718; Wed, 09 Feb 2022 08:25:10 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id d23sm6687575edv.79.2022.02.09.08.25.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 08:25:10 -0800 (PST) From: Krzysztof Kozlowski To: Steven Rostedt , Ingo Molnar , Shuah Khan , Krzysztof Kozlowski , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, joseph.salisbury@canonical.com Subject: [PATCH] selftests/ftrace: Do not trace do_softirq because of PREEMPT_RT Date: Wed, 9 Feb 2022 17:24:30 +0100 Message-Id: <20220209162430.286578-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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" ALL_FUNCS="#### all functions enabled ####" -- 2.32.0