Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2539042iog; Sun, 26 Jun 2022 19:26:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uOXMmjrqFkOPObJeRIA0jim26vQrvlpd4yPLU7eue60GEUbvo8NwZQucsBrGj0DP+GtUPg X-Received: by 2002:a17:903:3286:b0:16a:b0c:336 with SMTP id jh6-20020a170903328600b0016a0b0c0336mr12208959plb.79.1656296787147; Sun, 26 Jun 2022 19:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656296787; cv=none; d=google.com; s=arc-20160816; b=vnYIdzV7Dk16SZdPJ8w/gAlMZ3TuETBXGgJxepeKvaK6fVTN2jg/SqbUK3ilfcy0KR Yinj/+RXIw8R4entysTaTTocpztKREtT332kIjDZA7mvR+zd3wvtSC+qgtsAi8M9SXEj +2bX0Ud2ph8B97pVXHqWfV5btQwkJOt327KskuCaml31DgAdrZxJsp0RCW75Y1Sy5L4C /ARavTUBGKWvfvx1dQ0LwTqf64tEAeryMYLRX6CztAycPSng81N4wgiW2aXErz17DhzZ n+4hPvikn7BKZHkmwVVqPS2Jkyq2xqgMjBJ2G0H94NQI8T6ZXjpG7dfMfOPyrFulHjp3 Zyog== 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=lrXxvgDU/MnoDDeXXkn7zZSgJ7McVQVSLVnuIbYNY50=; b=d0tBcKvJK+WLD4WSvGFloBgW0bFpDPrg5lCN8V4xnXlHs0i/xnLu6XzgXbeZ+M4Jr8 Q9bWUyFf3hg8eQZ2goKN/zjmt/DjTNhf2qCrAUpqvvmARvYMWdAfkwCB+cVHdd7uqqCJ Tk1jLJ/yam0IWWYiR6uUnoSahhfJc9rYC0zBmK9xWB3RFiLnm8YnFeOW+jhzT5nFllE0 NeSlIOI6yyPtul/v1fFzYTxR3MIV/NkpiRErUd7W0CfHvElWc5Zhpci4f1HjXr6TLzBt CfToF8dO1FKKUMGnegDnyXSKz3yiD7Jc6csNwSa6T0rLVdG4m855y+4wjE4UbgZj4aW9 7hxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=M+HnXr+r; 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 z12-20020a170903018c00b001635111a63csi14703140plg.432.2022.06.26.19.26.15; Sun, 26 Jun 2022 19:26:27 -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=M+HnXr+r; 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 S230194AbiF0CTb (ORCPT + 99 others); Sun, 26 Jun 2022 22:19:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231569AbiF0CT2 (ORCPT ); Sun, 26 Jun 2022 22:19:28 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5B5DB8E for ; Sun, 26 Jun 2022 19:19:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1656296367; x=1687832367; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lrXxvgDU/MnoDDeXXkn7zZSgJ7McVQVSLVnuIbYNY50=; b=M+HnXr+rIN0fdy7jCNl+Q6kPZU9yeqvUNobHpDrVT2ZCWl8Lq6hploi1 P2wvoYcYRMyJCPb/7j03yi3K43sh6j6f0/UE/Gr2nYsUj8gvPt9Gd3EXl yQL5B6ciU4b9WxGSv+1IHMRpaUucvU3sbZZD8jGNoHgFiiRKtezKsw8m0 U=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 26 Jun 2022 19:19:27 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2022 19:19:27 -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; Sun, 26 Jun 2022 19:19:26 -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; Sun, 26 Jun 2022 19:19:25 -0700 From: Linyu Yuan To: Steven Rostedt , Masami Hiramatsu , Tom Zanussi CC: , Linyu Yuan Subject: [PATCH v7 4/4] selftests/ftrace: add test case for GRP/ only input Date: Mon, 27 Jun 2022 10:19:08 +0800 Message-ID: <1656296348-16111-5-git-send-email-quic_linyyuan@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1656296348-16111-1-git-send-email-quic_linyyuan@quicinc.com> References: <1656296348-16111-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 v7: 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