Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5548854pxb; Mon, 14 Feb 2022 01:33:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJylZG3Lda47MgMy3cgzopB4lMXFeGT4U77/rG9q4iz9YQTDIMcxQi01zhW44pnAM7q4SD77 X-Received: by 2002:a17:907:6096:: with SMTP id ht22mr10391764ejc.611.1644831239279; Mon, 14 Feb 2022 01:33:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644831239; cv=none; d=google.com; s=arc-20160816; b=rZ3mz+ZXeNvbdjQov+BWRaO6ORT4s3v5dRLK/r0U5Q3GnmqjOnrO2wnQXknVcnSPxM ewg/FZYbW97ZNMZMFy36+mKbSMwj2OvxSHss0CcHEfxlicXbQQf8HqELPSJNDdSXpwdi STLIF0vdAVGMi0x29vnDV3o2pieWM+8bx6SGpPUuU24Jm3ssaL3dkkc2TDjYgX6fbkTT ytKjhtvb7msQUqw6mFb3igxwTUxs9LRHnbOu3OYhbRgdK5xs5+PIbOjqUw6zF3ZDvzGC l6pYHf1h/RF5Z0J3CLTOolgMU9JpUjF97TsqNqeXwM6rhSy0K6pSZ3g9owJUUSoiMORg e9PQ== 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:cc:to:from:dkim-signature; bh=UeS9MvqP+4XVHpHzzOg6ayahqyEHPitjbY58dkpAMu0=; b=c0RnWZoLogAqEuQaWP3SJgqF8A9gOFzB+7aKRqlypv20WhVVoNaYHyuxFVu8cr6pAu lsEVvSoZX6It3yAAC8U2PZhSRgs86pcZuwtL702LAsvPozCTSG25xOhXCRNFtFJx0qJV SNwexCiTORXYQyFcU+CaWaeA1CSFF5sDyahyuIw1iXsgTcv+lDIG/lEICnWUt72cdRUy v3qW4zdmL64lzJmJ160Bw0PPhH+s/aCShJ2C27gKrf9VB06VtsisD05vhZPnNYbQFsLV hy8qmPVx8vX8ANZHN8jwF5oFdsEcBrHf0HGYjb71Y+kLcnuGVY6xGrcSRoVxYhHRC1xD bSAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=NSjk2lG0; 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 13si18817469ejh.92.2022.02.14.01.33.36; Mon, 14 Feb 2022 01:33:59 -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=NSjk2lG0; 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 S240112AbiBNIhr (ORCPT + 99 others); Mon, 14 Feb 2022 03:37:47 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235658AbiBNIhq (ORCPT ); Mon, 14 Feb 2022 03:37:46 -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 9816EDF6F for ; Mon, 14 Feb 2022 00:37:38 -0800 (PST) Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (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 4AEE73F33A for ; Mon, 14 Feb 2022 08:37:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1644827857; bh=UeS9MvqP+4XVHpHzzOg6ayahqyEHPitjbY58dkpAMu0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=NSjk2lG0p10BZUmenmlcPDzGQ8q5zoAeU6qrz5jfY3klFki7z2tdZJqA5oMyBAcU+ txrN5ghpRoS6QzFdiZGhk5cgmMc4i1hgGHLAoaAfVu11AT52wajDEaMWk+1gHqMHoy LgRFJS0p9QWhvlvR+fN7C+rl0VF2c9l7OzA53QyhnaJpxjaR1cs9jRagA2r4KwEw8b dhY5lYP3y1i/ki/ERc5VPpes9kW8laje3Br/HjVq20nZyVIRGPAWXt76IMUAfCG2yZ c3xCBcfvRTmytWDs7UREgXmWfpHXfDm/q6In9BEEr84KHauJFojpfyr4+TI2pUX7fa 3qHdJG990LpTA== Received: by mail-ed1-f69.google.com with SMTP id z8-20020a05640240c800b0041003c827edso8155206edb.0 for ; Mon, 14 Feb 2022 00:37:37 -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:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UeS9MvqP+4XVHpHzzOg6ayahqyEHPitjbY58dkpAMu0=; b=1WF84o2T841uNCQewe2jc0kIGy68BJ8E1WF3i8Xh9OwAjgoeXvVyfYlB0Ly1FNNB9p 5BCzmt6iKG1TgYZxklejh9Ht8l7UlqPHY2t1gTTs/b0xgqqbPfpRtXItwTW+XNejwEMF OJpoi9vqARJ/+ChzNIZP04mC8UtDse9JbM+lFS6rJ03mLaZQMzubVLiXjsX7VwMeugbi EvGN08ktuez+qMOHvCrklGRGtT5FbTQEyZs6mwb2MrYJX2m6qbngkF6u+5gxcQA+tmRH yZv2rLbzUItzRaNHIMJsZnH81cnoB6/9v98eFv1YGRgDqs5Mbrj2LGE4f9yNARC+2s+/ MF/Q== X-Gm-Message-State: AOAM530HyyCXPyhu97LR5jlC20Npf7SvFZGVgWL+OS6yMxtEQhhSEbQy sRKvNdUx66K8KhX3asKqkd22yBRuEYKVFSzq+rFlDFmeFZ21cYOJ7OvgiL59tYhYqNUQ6t1Unyv Ix54NGVvvJrT8wwb1zkwX/RvWsS63pD6zWcWNojX7wA== X-Received: by 2002:a05:6402:4313:: with SMTP id m19mr14313658edc.320.1644827857010; Mon, 14 Feb 2022 00:37:37 -0800 (PST) X-Received: by 2002:a05:6402:4313:: with SMTP id m19mr14313649edc.320.1644827856877; Mon, 14 Feb 2022 00:37:36 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id er9sm10310087edb.77.2022.02.14.00.37.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 00:37:36 -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 Cc: Sebastian Andrzej Siewior , Shuah Khan Subject: [PATCH v3] selftests/ftrace: Do not trace do_softirq because of PREEMPT_RT Date: Mon, 14 Feb 2022 09:36:57 +0100 Message-Id: <20220214083657.165921-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=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 The PREEMPT_RT patchset does not use do_softirq() function thus trying to filter for do_softirq fails for such kernel: echo do_softirq ftracetest: 81: echo: echo: I/O error Choose some other visible function for the test. The function does not have to be actually executed during the test, because it is only testing filter API interface. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Shuah Khan Reviewed-by: Steven Rostedt (VMware) --- Changes since v2: 1. Rephrase commit msg, after comments from Sebastian. 2. Add review tag. Changes since v1: 1. Use scheduler_tick. 2. Add review tag. Notes: 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..25432b8cd5bd 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="scheduler_tick" ALL_FUNCS="#### all functions enabled ####" -- 2.32.0