Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp990517iog; Mon, 13 Jun 2022 18:13:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbxOvEThp5C7qdeEfEjXz2Y7G8Ingoo4OT8cBw9jmznAxLgGpSPLPr7iMjJtXoe3PUe9Cw X-Received: by 2002:a05:6402:2696:b0:42f:aa52:aca7 with SMTP id w22-20020a056402269600b0042faa52aca7mr2948267edd.358.1655169213501; Mon, 13 Jun 2022 18:13:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655169213; cv=none; d=google.com; s=arc-20160816; b=Pj5XLAjnjSzh+FxLGA0gREppFqXyLBxN8cnkUmUduR+FnjI0fa/ysW0t6FEJ9FB/In g7QVR7v6w60x0hEg88+vRQQa6a899hMSYWCMd3NT1ALDqvAV6VxUaFRADGAXreSXJlvE VFSqKCONHvwj2/DrevOYVzPXJY3f1LY46oYU/K1Zfb8hwuqeQEgXtVCDF5IOEMhqwEhx 8f8nJdUWCEnvM8kb0u6voAP0y3+rp4kUZeAVjU6SIjh7e2mEDhAFl2rY5pc3lZ1KjSBG X0RYJBjsbDhXUH+25EGOgTCJ2+EYkCjhHLll9ofTWZfC6pmgxCklESZl9HHvbC5cAJ3D LizA== 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=cYvzkMIO6tiTJ/JabWvIfmWy2wcYanEm4N1j9TB0FZ0=; b=F+bFlkBK73NgmsoBKy5DyPXczW4YZib7IfCl7mVeU+/COtzAPqJMbR1lHfqkG5lgu6 +ZkwUzfz5uAlSze5+1nS4YXZFefNysTMjiFBCPrnFvTZ9mceKleVE/jKx2DasqoNsAGe 0P7Dwe8cx9LLCFeRz77qVO0eeHd0qggYj1tAOdtzPPUvR+v6sq7YCrWIJWakhjQHV+Fv dBtJzOVvKO8DpQ4ROkdAF3Ow6re7M18O+oYdLlvOYunOh+S7Tc1KzkggstCXm8mYU7dq E1IDVF6XjFFHm4PeO4KlcSp+2uWefqMUqntrYNIBq4VAfVRTFD1oleXuCmIUt2rAApBO afBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=qdUqDjun; 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 sb34-20020a1709076da200b00703f4835d31si11260057ejc.913.2022.06.13.18.13.06; Mon, 13 Jun 2022 18:13:33 -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=qdUqDjun; 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 S245193AbiFNBGU (ORCPT + 99 others); Mon, 13 Jun 2022 21:06:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233812AbiFNBGN (ORCPT ); Mon, 13 Jun 2022 21:06:13 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37E5130559 for ; Mon, 13 Jun 2022 18:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655168773; x=1686704773; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cYvzkMIO6tiTJ/JabWvIfmWy2wcYanEm4N1j9TB0FZ0=; b=qdUqDjun0MBwpg42YjubuP+kpw4j5YdWyn0bhGIuD92cgHrPRd2rPHN3 w6P9jV3r9whwo6W2dGKSfZWzpRTg0AbxjV6DTkWvJkbY8A6MPRPWTu+Iy TrGRoJ//MMhEnCu91DOd+G6D7ayBA5eg8JwXY+k3iiG3ut6Zzh644pPmx Q=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 13 Jun 2022 18:06:13 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 18:06:13 -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, 13 Jun 2022 18:06:12 -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, 13 Jun 2022 18:06:10 -0700 From: Linyu Yuan To: Steven Rostedt , Masami Hiramatsu , Tom Zanussi , Ingo Molnar CC: , Linyu Yuan Subject: [PATCH v5 3/3] selftests/ftrace: add test case for GRP/ only input Date: Tue, 14 Jun 2022 09:04:58 +0800 Message-ID: <1655168698-19898-4-git-send-email-quic_linyyuan@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655168698-19898-1-git-send-email-quic_linyyuan@quicinc.com> References: <1655168698-19898-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 .../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