Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3390029iog; Mon, 20 Jun 2022 19:18:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vRaDwObULODyLznuH1kXpRmrVAhW5SN9gaT16G2aV6T+4KYWCNGXcyC45WvVYSVsTELeg5 X-Received: by 2002:aa7:d353:0:b0:435:6a15:139f with SMTP id m19-20020aa7d353000000b004356a15139fmr20449932edr.19.1655777894542; Mon, 20 Jun 2022 19:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655777894; cv=none; d=google.com; s=arc-20160816; b=wbCEKlKp7myb/bfNXCZQaMy5bS5fqcc16rRyOI+Hbw/t6XlBSX6FdHSMXA92ngL/5A P4650hxwUk+E2bZ1QhDAz5Pe9IKyM01WMrLao4dpK2UVaYaMlIGI3mgfFi8fG+gK4Y37 rVvq1DETPp704925AE8lilCZLYE0NvUi3VpfZitq3/9p1sR/G8R2DOXCnb4vsp4FYQUR 9iXA3aQuxobJhI1P4bA8Hnhzw6CEFLlYIdW3Y8/SsrR/U0pUywWQuHltExjXLYttOhjr F0rF18YWKEVaKaHvHawhaFp/wcUOsfVwPZPBkSVy2ACLJbI8LR3Mics9+4UmuaxjbU0G /i2g== 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=ivaNmgfsumKjrrg4WxHsyk5YImOtlBaV+wscfVuY8S0=; b=ztzDFB/SOD1WufUH4sbwsQo1FFy4p0/S4wIDq9+xENtj3jCuctjuic9Rm4Jnzz5q7x aCyl9U7KqN0nj0NhuxMrxieZIjLmcJtt64wLDBfpqbprPcPU5ppb1BMtL75xAjcl/EuS 2zA7qnJbpMvpN13LGRu3nrwZf0dXbCYCKheHG+9asMJr7OpYlCyO59XxtRJLYQeLodbF KLL4XIOA68c9BfonETc1eM3SwNee3c0cwL4gv3MUaaeG2e2M/RGSfdke7DCxRNVA1+NC hkuEhY+2O2ghtd60nzYkk+ItNRuil/NFLAK6st64qAlyHGPXZpAHs0Mpux29b/DSIgqn /lqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=G02L5eP0; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go8-20020a1709070d8800b00711d1497f8csi13080844ejc.961.2022.06.20.19.17.49; Mon, 20 Jun 2022 19:18:14 -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=@quicinc.com header.s=qcdkim header.b=G02L5eP0; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245221AbiFUCAI (ORCPT + 99 others); Mon, 20 Jun 2022 22:00:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244924AbiFUCAC (ORCPT ); Mon, 20 Jun 2022 22:00:02 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0479A1A83A for ; Mon, 20 Jun 2022 19:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655776802; x=1687312802; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ivaNmgfsumKjrrg4WxHsyk5YImOtlBaV+wscfVuY8S0=; b=G02L5eP07be03BFjbMgoZ3W6eLCN8bEM+l0ER8QckY5oDp/NmZLwKMq3 M9AuiDe3tyJFyb9zbMHpB/kLElG80vzMy+rULyC+deYHsptKszugCyNOu Mw9mzpvaMSK8jL9UfdlM6YUjo7kEhJlfaiG97w4b1ZYj+5fqRARrDhK09 s=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 20 Jun 2022 19:00:02 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2022 19:00:02 -0700 Received: from nalasex01b.na.qualcomm.com (10.47.209.197) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 20 Jun 2022 19:00:01 -0700 Received: from linyyuan-gv.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 20 Jun 2022 18:59:59 -0700 From: Linyu Yuan To: Steven Rostedt , Masami Hiramatsu , Tom Zanussi CC: , Linyu Yuan Subject: [PATCH v6 3/3] selftests/ftrace: add test case for GRP/ only input Date: Tue, 21 Jun 2022 09:59:47 +0800 Message-ID: <1655776787-18133-4-git-send-email-quic_linyyuan@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655776787-18133-1-git-send-email-quic_linyyuan@quicinc.com> References: <1655776787-18133-1-git-send-email-quic_linyyuan@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,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=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 add kprobe and eprobe event test for new GRP/ only format. Acked-by: Masami Hiramatsu (Google) Signed-off-by: Linyu Yuan --- v3: first add in this version v4: remove restriction of test case v5: add Acked-by tag v6: no change .../selftests/ftrace/test.d/dynevent/add_remove_eprobe.tc | 9 ++++++++- .../selftests/ftrace/test.d/dynevent/add_remove_kprobe.tc | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_eprobe.tc b/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_eprobe.tc index 60c02b4..c300eb0 100644 --- a/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_eprobe.tc +++ b/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_eprobe.tc @@ -1,7 +1,7 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0 # description: Generic dynamic event - add/remove eprobe events -# requires: dynamic_events events/syscalls/sys_enter_openat "e[:[/]] . []":README +# requires: dynamic_events events/syscalls/sys_enter_openat ". []":README echo 0 > events/enable @@ -87,4 +87,11 @@ echo "-:eprobes/$EPROBE $SYSTEM/$EVENT $OPTIONS" >> dynamic_events ! grep -q "$EPROBE" dynamic_events ! test -d events/eprobes/$EPROBE +if grep -q "e\[:\[/]\[]]" README; then + echo "e:mygroup/ $SYSTEM/$EVENT $OPTIONS" >> dynamic_events + test -d events/mygroup + echo "-:mygroup/" >> dynamic_events + ! test -d events/mygroup +fi + clear_trace diff --git a/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_kprobe.tc b/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_kprobe.tc index b4da41d..13d43f4 100644 --- a/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_kprobe.tc +++ b/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_kprobe.tc @@ -23,4 +23,11 @@ grep -q myevent1 dynamic_events echo > dynamic_events +if grep -q "p\[:\[/]\[]]" README; then + echo "p:mygroup/ $PLACE" >> dynamic_events + test -d events/mygroup + echo "-:mygroup/" >> dynamic_events + ! test -d events/mygroup +fi + clear_trace -- 2.7.4