Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1681585rwb; Sun, 14 Aug 2022 09:24:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR4XIRZ6dkWiP4EnU1mD9qN6++LKvxYfztWL0y19IUr/glpY9nRmBA3IoZQgTMxhMRQjFEQu X-Received: by 2002:a65:5205:0:b0:41d:f6f7:b38a with SMTP id o5-20020a655205000000b0041df6f7b38amr10421513pgp.121.1660494266328; Sun, 14 Aug 2022 09:24:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660494266; cv=none; d=google.com; s=arc-20160816; b=s0WSViIUuNeh+jwFKakpANa20IuioheljADeep/f1yvAVX7/BskrL3SVsYSjQZtxUL kPtvrgNn5QjY28qAdaS2NPE2dckgbPGt/2cQ/IGUPONGSDK+BTGbVLFwG6rmHbP6ZiQQ 9ctX90bOj/cA2LqWi0ThNkRSqdqiFKcVGmEUYlNPJf6JGwYtA9TUXRFVkKK/Pwt55ADT WdHlomkXURKKjU/BwO4O/04Fgn8XPYLVMLAXGzaok7UflHrC5fuXQEu7IdnrTNIPCXUm b3spEwLlxcluXhkCpuPniw8zn/SgO2Mua1BtvCSfJ9nQR1Y6cTsoE2YFhcqvyHG48Oss fx6A== 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:date:subject:cc:to:from :dkim-signature; bh=kAqUbC8Bz3rB5b/XwIS5ceYSLJxt62vr0HFLnSaxuC4=; b=LMns/PTwjkvLvUqTjMMBRzOYIzbUwDcujAXn/HHZylpvYBqHx5VMKWF18OONnttoAN QtgdMLEeEZ/LQtf8q/zFqIdOyQN4Ig2L+KlWYtE02zy2/t18lCx2uqAHUeThJYQQO5Rk 49mAH2iyjdOr4Cs9BxN9RLFGV3wHyL2jfCLHwqrACZo/u3Iwq0zsmi0oql4a+ENRentR AHt6lta6hG+YVYpDVHQMquoSfPy5Cczw/gXfK/uICVa9glXgk+tv+InltC5rj6MfW86J PfMQCr3VzVnHH/mDfureLgkgWhcyc3Ok+VD3zKAd6en+aE2avpqJ0hJ1plOvDbfCzy1D Po5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BXPOKN4P; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh4-20020a17090b4ac400b001f3a43f2460si8231310pjb.166.2022.08.14.09.24.15; Sun, 14 Aug 2022 09:24:26 -0700 (PDT) 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=BXPOKN4P; 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 S240601AbiHNPcx (ORCPT + 99 others); Sun, 14 Aug 2022 11:32:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240596AbiHNPcF (ORCPT ); Sun, 14 Aug 2022 11:32:05 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FF2A1ADB8; Sun, 14 Aug 2022 08:29:56 -0700 (PDT) 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 sin.source.kernel.org (Postfix) with ESMTPS id 316F8CE0B69; Sun, 14 Aug 2022 15:29:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1BACC433D6; Sun, 14 Aug 2022 15:29:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660490992; bh=2F6ETMZsAJ9BEr8L3pUMUUvrKg/3pNm/yewanihTYIE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BXPOKN4PYlcN2AKnnjrgfK+2I77Iv0iKIWvczHA7sE7kfm+j6351tgBpkTAZZkZNV KXs4JGkOGNfSzVsJhV/q65K55Of+gmq56j7+Rz3KFoYaBvRzBYMyRSlXg5mLmZnt+8 xIkXDzwXhEx7mFAhONexClzF98yE3EOKTUQ/U1zB/y7Ng0vMMlGmH3ZOx9t7Wo6TW6 ftlRcFqihGP2pyXnNj/D1DhHXh7q18D6yPlmO3zttPgjDa/N5s1H7o7KVsfRjqdG4J aI4EGxpSQ3UTqUC81mEgS1Cn7GK0MSFemlBKr2xVAE+5r5ZaWr6cNnfAMW7fkYQzLR Rt9dXYGIUK1ag== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "Steven Rostedt (Google)" , Sasha Levin , mingo@redhat.com, shuah@kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 5.19 50/64] selftests/kprobe: Do not test for GRP/ without event failures Date: Sun, 14 Aug 2022 11:24:23 -0400 Message-Id: <20220814152437.2374207-50-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220814152437.2374207-1-sashal@kernel.org> References: <20220814152437.2374207-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 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,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 From: "Steven Rostedt (Google)" [ Upstream commit f5eab65ff2b76449286d18efc7fee3e0b72f7d9b ] A new feature is added where kprobes (and other probes) do not need to explicitly state the event name when creating a probe. The event name will come from what is being attached. That is: # echo 'p:foo/ vfs_read' > kprobe_events Will no longer error, but instead create an event: # cat kprobe_events p:foo/p_vfs_read_0 vfs_read This should not be tested as an error case anymore. Remove it from the selftest as now this feature "breaks" the selftest as it no longer fails as expected. Link: https://lore.kernel.org/all/1656296348-16111-1-git-send-email-quic_linyyuan@quicinc.com/ Link: https://lkml.kernel.org/r/20220712161707.6dc08a14@gandalf.local.home Signed-off-by: Steven Rostedt (Google) Signed-off-by: Sasha Levin --- .../selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc index fa928b431555..7c02509c71d0 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc @@ -21,7 +21,6 @@ check_error 'p:^/bar vfs_read' # NO_GROUP_NAME check_error 'p:^12345678901234567890123456789012345678901234567890123456789012345/bar vfs_read' # GROUP_TOO_LONG check_error 'p:^foo.1/bar vfs_read' # BAD_GROUP_NAME -check_error 'p:foo/^ vfs_read' # NO_EVENT_NAME check_error 'p:foo/^12345678901234567890123456789012345678901234567890123456789012345 vfs_read' # EVENT_TOO_LONG check_error 'p:foo/^bar.1 vfs_read' # BAD_EVENT_NAME -- 2.35.1