From patchwork Sat Jan 7 13:32:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 40391 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1301649wrt; Sat, 7 Jan 2023 05:33:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXutP9iRM6bn8KXmN+1aMvyRX1O8AnMysPTeuQmLxiYvdvQJIFwaEbHOzc1YCfGrTQEiZ5rh X-Received: by 2002:a17:907:c99d:b0:7c0:d88b:1695 with SMTP id uj29-20020a170907c99d00b007c0d88b1695mr41986117ejc.55.1673098431022; Sat, 07 Jan 2023 05:33:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673098431; cv=none; d=google.com; s=arc-20160816; b=M+34JaEtX5XpbHmwsC0fHal7J2/grLH6EOOj8qCRJzPM8/p9eH5LsR5bH+pEbQOHLO K4kDXpj+sXYEX18BFbdLw5MFyCGJn4OJ966ewEmwJjqHJ32S35SwSf7wpIq37aO6ITP3 X/OAWPyNbbpBioNIzY2GqhRu6HZuiHryPMa2YH+QNxpt9FD0BKQU54PYSLypA+ludlcv JZ/rt+R6qMwjRb8d7e6LB4Q80YDQpyMuQsUPEgB3tpmyw+ubq1I8ZHbacyObvZrTOHwb QMTmqivSrypjmpgDFd3PIwWWn/kaPXYQ9vIv2COVTenRgrtwtO9v+T5zXOlZITarnm4n Show== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5KD/neCXahvlLCAqYMTGX8R3zjwWQqiXchPJRv/3DJc=; b=bqtVGYAYr96U19pYdxYOvvCxkeLSPC2EkG6S0tRuUkmKgBI1s9lflopAJ/Zsk59lkv CnBMuA4YzfGBtfG5P4oByO7HnnAOmIdR8Edkz0PPUD7/rlI2yol7B0/nc5efaI/trjPV tyL22sFp+o5M1FrkYrVS8daw/J4TMpp/dOg0TcL91cKK8g/RjQEuFot4uJWPBb2AWTps wgCeENrbZTXwNt8ZVRbbzpnfLrKWsPCV5z9G8VtvO1leloyhMBZjaA0bhC9bP8pYmvcA 98TvGR4D+c9dYcqA8YnizpZgh6xDfXQzToFEx0vjTaqQFLkC2Vikk8kbYBENFydLvtaj hN2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kX2M9ZVP; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn7-20020a17090794c700b007897abd2d17si4649695ejc.468.2023.01.07.05.33.27; Sat, 07 Jan 2023 05:33:51 -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=@kernel.org header.s=k20201202 header.b=kX2M9ZVP; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229475AbjAGNcw (ORCPT + 99 others); Sat, 7 Jan 2023 08:32:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231859AbjAGNcd (ORCPT ); Sat, 7 Jan 2023 08:32:33 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C98795D415; Sat, 7 Jan 2023 05:32:31 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 575A360C14; Sat, 7 Jan 2023 13:32:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B3D1C433D2; Sat, 7 Jan 2023 13:32:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673098350; bh=lA+rE8kKU4UerwopcQ1eDt8yxXIRd212goJdv8X2Ulo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kX2M9ZVPoclER5r+AYgjQNDSJPnG2X0VHHYExO94dzwNPeeIwexodLfSdEtSHz53T bRIVV77kkNHpyFAG0a3VQyfdq7TJ/tJZcYHCehITGUgcpAsHb/yFmG6hV+uyCHlG3W bGMNDuAVxWUt0bzV62ordUOSXhHNPsKi2fi6PEyThPykZUoVpV+CAolu2JAKwUcwzL cCBW3jih6ABBjXOxH4YtoU+S0iTZhLYXUwZUGGhWz7uEZ8Av0Wr7LTav/vja7VdFJM PSmtvrlnuouQVx5BrVyq1kH/3eOds0fy9dbhURyXv7uKocmtRLcUIZfA3j6Rh/9xKx K+U9yjfSNjhng== From: "Masami Hiramatsu (Google)" To: Shuah Khan , Steven Rostedt Cc: Masami Hiramatsu , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH 2/3] selftests/ftrace: Fix eprobe syntax test case to check filter support Date: Sat, 7 Jan 2023 22:32:27 +0900 Message-Id: <167309834742.640500.379128668288448035.stgit@devnote3> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <167309832823.640500.13244630381161014364.stgit@devnote3> References: <167309832823.640500.13244630381161014364.stgit@devnote3> User-Agent: StGit/0.19 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754370860735921275?= X-GMAIL-MSGID: =?utf-8?q?1754370860735921275?= From: Masami Hiramatsu (Google) Fix eprobe syntax test case to check whether the kernel supports the filter on eprobe for filter syntax test command. Without this fix, this test case will fail if the kernel supports eprobe but doesn't support the filter on eprobe. Fixes: 9e14bae7d049 ("selftests/ftrace: Add eprobe syntax error testcase") Cc: stable@vger.kernel.org Signed-off-by: Masami Hiramatsu (Google) --- .../test.d/dynevent/eprobes_syntax_errors.tc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/ftrace/test.d/dynevent/eprobes_syntax_errors.tc b/tools/testing/selftests/ftrace/test.d/dynevent/eprobes_syntax_errors.tc index fc1daac7f066..4f5e8c665156 100644 --- a/tools/testing/selftests/ftrace/test.d/dynevent/eprobes_syntax_errors.tc +++ b/tools/testing/selftests/ftrace/test.d/dynevent/eprobes_syntax_errors.tc @@ -22,6 +22,8 @@ check_error 'e:foo/^bar.1 syscalls/sys_enter_openat' # BAD_EVENT_NAME check_error 'e:foo/bar syscalls/sys_enter_openat arg=^dfd' # BAD_FETCH_ARG check_error 'e:foo/bar syscalls/sys_enter_openat ^arg=$foo' # BAD_ATTACH_ARG -check_error 'e:foo/bar syscalls/sys_enter_openat if ^' # NO_EP_FILTER +if grep -q '\..*\[if \]' README; then + check_error 'e:foo/bar syscalls/sys_enter_openat if ^' # NO_EP_FILTER +fi exit 0