From patchwork Wed Feb 9 16:24:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 541660 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 422B1C433FE for ; Wed, 9 Feb 2022 16:25:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236790AbiBIQZN (ORCPT ); Wed, 9 Feb 2022 11:25:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236769AbiBIQZM (ORCPT ); Wed, 9 Feb 2022 11:25:12 -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 6D4A0C0612BE for ; Wed, 9 Feb 2022 08:25:15 -0800 (PST) Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (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 A3D293F1E0 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-ed1-f72.google.com with SMTP id n7-20020a05640205c700b0040b7be76147so1656818edx.10 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=b9sm0fz+Ca2DCvcAXFUmRBQckaJAOQHh+cZZP3HzlAOU0rwOam+2oCxj1r1mO+V/1z Z8qYedbtbtgQkvIpSqrcPG4ehffP0nSOYV30A58fXBzmfp2DiRA5eEBDj+wvl1UMiQRJ 30moE8O5rZv06Rqw5ClW3o93MaLcB781MYh1Y8ULs3k843hdhREAMcSza79HCqEc65Rj yrtJmRS/S0EUzyOJX9LjZqWaK+3a1JHcMDW2lMH2IxDnSymB4fi5sSRGeF9Bex7sd5ac 4TuBw7YFI5tZcuz2s5BYBjqheP4ppexkAEdLWfcC1uXW2vOOo7+qaiayyiY0wEQ61DHQ n6/g== X-Gm-Message-State: AOAM531uF+ccMRiupYczpMXHCUCcHxALfI6XP9NKceKIKrlf6zoorhvK ZsajcWMSnwrRokpKDuOoRHxRmTGx5daERF/+IcDThlQm6bzIwwG9ElFd1+5nlBi+2490rHmIwZM VlErRNfWXqJACBkvVrMqhFTYj9t5Z22bViUW9GAXa7ow1 X-Received: by 2002:a17:907:a409:: with SMTP id sg9mr2642423ejc.219.1644423910886; Wed, 09 Feb 2022 08:25:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKvtjCZePVTEi6+XanNHWx67xsb5RlaQqVAD+8Rt87SKNwj0aCwZWrYYo6ZHiUBiw21MJl1A== 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 Precedence: bulk List-ID: X-Mailing-List: linux-rt-users@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 Reviewed-by: Shuah Khan --- 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 ####"