Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4467910ioo; Tue, 31 May 2022 05:16:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykmWDBF0tcPox83ugAXIGD5mea1fP3g2KZjm5/cdZ8xMRb8Rm+B50vrIIOSu0/MrhtyS02 X-Received: by 2002:a17:903:22c4:b0:163:6700:d27b with SMTP id y4-20020a17090322c400b001636700d27bmr28837502plg.37.1653999371392; Tue, 31 May 2022 05:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653999371; cv=none; d=google.com; s=arc-20160816; b=yv+bDHtBGp6xWZvk2QQZJbGPirOEMAEKZVMgAVz18lLfemE8BWLB6X1wKMk5SftO55 uvu+TBxLM5tDV7sBWyWk9m2OpN1rMb0HMe0zqC6n75sjKZ9FwIumIC/6iuigNDcXeNTE w/v2K0pBeDD7u4sJ5PV0qqrj8yk5BkEHPtln3pbQ/nz+drXtMiJguCzTgoPWyCoRH63J FRaXRnE+Xx+tDbES+W9leMBsUXNMTOq5eJlNUfvQs8AF3UP/BujX7wiPEvBodsY/d/7b gx7hYWb23uTDl79SbzgiN7csMihWyN9BEP7gafYkS6eoZPWh4WL4SyO8C6CIxWrRgRZn xFRg== 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=QXg7b+Rnqya3yXGgAAyG3rkHeFxZDDW8JABm9HrsSqA=; b=f0jwzK7PyvgsfaAi2KiLKlCwrmuqZXBAmdwL1/+33xv38B8Xm7wEH+fM/dwqhB3hlR r9js3jucGiTQ/zgtzVJOd830FsvE4s820Cs/bQFXq3YEL6437Cv4ILAl152qBvylbErA AofxzV5QuhU5dbPnmRQ7qj5S/hY7mQginZyVfstBCa3gMofActLXYWUmj1C3Yae8UEaD TcUoTsYxRKMVkU9EGoCF0JmZmGIgYtDVRKHcwzyWYwyUbfeafsWdW6BrdQbYrnmoBqcX 7AN86Y9wnpwLXu4VoCYGirvqz/LCsDQzTSh1Zj/3+fU6uh8noRSemj2nk8A4PeOleyUp S1Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=ar+zsHAV; 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 j65-20020a638b44000000b003fc649efa37si1767204pge.1.2022.05.31.05.15.59; Tue, 31 May 2022 05:16:11 -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=ar+zsHAV; 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 S244323AbiEaG3k (ORCPT + 99 others); Tue, 31 May 2022 02:29:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244306AbiEaG3d (ORCPT ); Tue, 31 May 2022 02:29:33 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AE85674D4 for ; Mon, 30 May 2022 23:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1653978564; x=1685514564; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QXg7b+Rnqya3yXGgAAyG3rkHeFxZDDW8JABm9HrsSqA=; b=ar+zsHAVUEoiEvSTc+u1XHuSK/lTNXN8C4CpwQyRQiTBZihjbb9EZtZP wads9DBXnj+Kl1DmCS+DP1/uAYyJ064bSQmAvmruwZZG+BHLdxy2vmFcE GR0ONPQxnal8kEflGbyjWqy1GiIEt7qc3QlIe0afl/J92OaL9gngVRoTF Q=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 30 May 2022 23:29:24 -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; 30 May 2022 23:29:24 -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, 30 May 2022 23:29:23 -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, 30 May 2022 23:29:21 -0700 From: Linyu Yuan To: Steven Rostedt , Masami Hiramatsu , Tom Zanussi , Ingo Molnar CC: , Linyu Yuan Subject: [PATCH v3 3/3] selftests/ftrace: add test case for GRP/ only input Date: Tue, 31 May 2022 14:29:12 +0800 Message-ID: <1653978552-18637-4-git-send-email-quic_linyyuan@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1653978552-18637-1-git-send-email-quic_linyyuan@quicinc.com> References: <1653978552-18637-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. Signed-off-by: Linyu Yuan --- v3: first add in this version .../testing/selftests/ftrace/test.d/dynevent/add_remove_eprobe.tc | 7 ++++++- .../testing/selftests/ftrace/test.d/dynevent/add_remove_kprobe.tc | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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..97856df 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 "e[:[/][]] . []":README echo 0 > events/enable @@ -87,4 +87,9 @@ echo "-:eprobes/$EPROBE $SYSTEM/$EVENT $OPTIONS" >> dynamic_events ! grep -q "$EPROBE" dynamic_events ! test -d events/eprobes/$EPROBE +echo "e:mygroup/ $SYSTEM/$EVENT $OPTIONS" >> dynamic_events +test -d events/mygroup +echo "-:mygroup/" >> dynamic_events +! test -d events/mygroup + 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..6b102a7 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 @@ -1,7 +1,7 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0 # description: Generic dynamic event - add/remove kprobe events -# requires: dynamic_events "place: [:]":README "place (kretprobe): [:]":README +# requires: dynamic_events "p[:[/][]] []":README echo 0 > events/enable echo > dynamic_events @@ -23,4 +23,9 @@ grep -q myevent1 dynamic_events echo > dynamic_events +echo "p:mygroup/ $PLACE" >> dynamic_events +test -d events/mygroup +echo "-:mygroup/" >> dynamic_events +! test -d events/mygroup + clear_trace -- 2.7.4