Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5755548ioo; Wed, 1 Jun 2022 11:54:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0yQYO+c/p0OGeG6RzD1UdTPupVPefK6FwXII6JttAL1uHpRg2oONZwGNUfcOLpOYxyas/ X-Received: by 2002:a17:903:186:b0:161:f394:3e75 with SMTP id z6-20020a170903018600b00161f3943e75mr810905plg.113.1654109657556; Wed, 01 Jun 2022 11:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654109657; cv=none; d=google.com; s=arc-20160816; b=x/7ce/u0iiqW8VR5n36b1c5DrfAmiDA61NQgGK3jdZKWnLZKL02AkXfghg2OLTGl2x mLGM5DJRyrH+tCnfyAPiGMKX9ea8RUhXO61dxCkvglB0ZIHGV0ZD9rjdvpJi1oeTF/2D arODeG5B9HkazFLuNelEby9EL2hcteh0AaxdOWcNwfT0pDUfKNYrpWy0lNP/iNeUIsqI wu6XdCg/tBLVSyPtPg+ITFYkX5K2CaHEj4OkXTXxcu9rKPVBvdpjUw6HbR93MEESuqhP kRhuT8k7ej2xqnHWlzyufdW2hf7xlp3aDmY0C9eZwvantXyk1v1+q4a1tukjzQ9Q/m7R 1+3g== 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:subject:cc:to:from:date :dkim-signature; bh=PqxWBcxUfF82iWSEY1UFKXxMhIK3L9a50UWUWwn+X8s=; b=GOxtAJNYzMjBjzhJPu2bBTlHu0h2QNebl+NAEbGGIAZ7xdUHtN41c2TIcLFxB05PKn 53WBJ7As9nkBbEyYdfo7MV+Z1SZxQSHpJ+iqr5++3eLsfr9WM6W3YeWJPiGEoB2z9ab6 aRBNF+26xyblNTc/q/I6VWLcKYgAS03NBhOzE2QnHe/TOw97eM071WYATrgXB16Pqs53 qPd3iBtj2CjEaWY0lFMuIpr5pL5VHPoRsUqZvTeJ+Nzgp4wz57zyw42s+JvVpELAQm9Y iX2qNkNYREV/RRzjmvSRYEe2+TPMDp7PNuBNlqYlY1f+wAk0pcsyiLItwhnXuXXa4p/P Z8xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Q7Q/u9Sd"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y126-20020a633284000000b003fbb432d3c1si2963327pgy.449.2022.06.01.11.54.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 11:54:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Q7Q/u9Sd"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DB5325BD3B; Wed, 1 Jun 2022 11:42:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235639AbiFAO5z (ORCPT + 99 others); Wed, 1 Jun 2022 10:57:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230345AbiFAO5w (ORCPT ); Wed, 1 Jun 2022 10:57:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 378C848E57 for ; Wed, 1 Jun 2022 07:57:50 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C2ADF6146E for ; Wed, 1 Jun 2022 14:57:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B984C385A5; Wed, 1 Jun 2022 14:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654095469; bh=MXWRHmHSAdjhUaccIo0GyTsXK1sAkJ+6VcfxiNE/aa8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Q7Q/u9SdHy7/54IqiM3lHp33kCIsrtoRoWmSaUub+yI92Yx+/758enal6HsDjJ2N/ j2gbWw9id+DzQTFsQ/vcXnwydJG82nB8+LJAPQH9EDl9SAz6IxMgG7x1DfshbgnogF V5P0bWJeaj6gbOXeekilS7usGIfKw1CvVJgJHwgspzQzxgvFq2G3Nv4Dhfd7HkoXCB AzSXCtjX+BZuBUGjP3b/+mA5JKh5cl7ZfolzoCXENhFWruQ99SlX2G6498HeYLvEIk dzWXDd8g1WJWp6Z0JBHcWrYQpLqTmJZJNhJhTFU3kZS1U+QoNQHcjsMQEhICp9PAwY 4ZSkEWFtLbihg== Date: Wed, 1 Jun 2022 23:57:44 +0900 From: Masami Hiramatsu (Google) To: Linyu Yuan Cc: Steven Rostedt , Tom Zanussi , Ingo Molnar , Subject: Re: [PATCH v3 3/3] selftests/ftrace: add test case for GRP/ only input Message-Id: <20220601235744.93ba3c80951680c3d6bb6961@kernel.org> In-Reply-To: <1653978552-18637-4-git-send-email-quic_linyyuan@quicinc.com> References: <1653978552-18637-1-git-send-email-quic_linyyuan@quicinc.com> <1653978552-18637-4-git-send-email-quic_linyyuan@quicinc.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi Linyu, On Tue, 31 May 2022 14:29:12 +0800 Linyu Yuan wrote: > 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 Hmm, this is too restricted. With this change, this entire test only runs after patching this series. Can you change the requires so that skip checking the first half, like ". []":README and check whether "e[:[/][]]" is in the README for the new test code? > 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 Ditto. In this case, don't touch the requires line (because it is not updated) and just add a README check for below new code. Thank you, > > 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 > -- Masami Hiramatsu (Google)