Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35946029rwd; Mon, 10 Jul 2023 15:26:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlGX748Ib/XMQ78fsofPo5AHIC0urzveyfAtsW6fcop4G8eFgOkAJJ5C+vqWv3v2tgx22Nfd X-Received: by 2002:a17:906:3f13:b0:994:1806:fb96 with SMTP id c19-20020a1709063f1300b009941806fb96mr553322ejj.16.1689027987266; Mon, 10 Jul 2023 15:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689027987; cv=none; d=google.com; s=arc-20160816; b=OakCHUUXklu/33mlgDwITDlVTBDaETBEbH405efV7XXPBCvgeZ8Jnr5qoNhwdWCIlj y+o2Ca14zOk4OkGvRGtcV+Gu7I6k5eGLyk+wAuia0E8nF+P0uD96vv6tJv0K+XdKQqo0 jbFrE663O704x0WCX+MjeUId2GwvQ5xeqeQht3XR1310x3JYbjR8clH9JQ0yN90YtJtY ocWaZwpObvmeV9civIzBL6NQMVfKXUbdwx2QUi589y81bGppojMKV2k+GClMUghk1Rt5 8vxKeygQ/u1SWMatT4ihxVfsIdwPrCx4FdIbIUlwi0aYFm2esN76Lk6CXxA9Ub4YWx68 VuRg== 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; bh=DzMpYEojtM0JtcSfxeeigGzMhKP/+l6bwBpVTj93dDc=; fh=RhgPDYR8uXb+uoZwxTvtbv3d5qVtzMl4FfmEK098umE=; b=coft1jsrpcgzs54cAM2cx0zcltnNGzBo2OLFbdh13KKX7lolXxwjmG3G+9y9VuZBMz kC/a7QZ9unVry5OzwGOeWrO9X67flHyUz1zH350u8mzJmvTRPl9pk+Aypqfltm9XkVen YUGiZRDfALyW8Lt8PbEn5PqNhsaNraYrrDrhyWzggKw5dH0w8YDPtwhMtApEAaPg2Qzq p/U218VLZucYqaIaoXywOweXnsmi2YxGAjiXoxw2Eb9pXmHsyVw2o4pxiYOO6JVCdGxN 1N7F0CXTYBXUCntHUE/o0/RmLxi0M1iPG1Bunb3lyv06BQUyaWMmxSDNOsqweiX2GdL3 Ub4A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020a170906709200b009934728f33bsi566201ejk.533.2023.07.10.15.26.02; Mon, 10 Jul 2023 15: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229964AbjGJVym (ORCPT + 99 others); Mon, 10 Jul 2023 17:54:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbjGJVyl (ORCPT ); Mon, 10 Jul 2023 17:54:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0F9412F; Mon, 10 Jul 2023 14:54:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3702C6121C; Mon, 10 Jul 2023 21:54:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7294C433C8; Mon, 10 Jul 2023 21:54:37 +0000 (UTC) Date: Mon, 10 Jul 2023 17:54:36 -0400 From: Steven Rostedt To: Zheng Yejian Cc: , , , , , Shuah Khan Subject: Re: [PATCH] selftests/ftrace: Test toplevel-enable for instance Message-ID: <20230710175415.2ec0061f@gandalf.local.home> In-Reply-To: <20230609174626.66659892@gandalf.local.home> References: <20230509203659.1173917-1-zhengyejian1@huawei.com> <20230609174626.66659892@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; 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=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Shuah, I think this dropped through the cracks. Can you take this through your tree? -- Steve On Fri, 9 Jun 2023 17:46:26 -0400 Steven Rostedt wrote: > On Wed, 10 May 2023 04:36:59 +0800 > Zheng Yejian wrote: > > > 'available_events' is actually not required by > > 'test.d/event/toplevel-enable.tc' and its Existence has been tested in > > 'test.d/00basic/basic4.tc'. > > > > So the require of 'available_events' can be dropped and then we can add > > 'instance' flag to test 'test.d/event/toplevel-enable.tc' for instance. > > > > Test result show as below: > > # ./ftracetest test.d/event/toplevel-enable.tc > > === Ftrace unit tests === > > [1] event tracing - enable/disable with top level files [PASS] > > [2] (instance) event tracing - enable/disable with top level files [PASS] > > > > # of passed: 2 > > # of failed: 0 > > # of unresolved: 0 > > # of untested: 0 > > # of unsupported: 0 > > # of xfailed: 0 > > # of undefined(test bug): 0 > > > > Signed-off-by: Zheng Yejian > > Acked-by: Steven Rostedt (Google) > > -- Steve > > > --- > > tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc > > index 93c10ea42a68..8b8e1aea985b 100644 > > --- a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc > > +++ b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc > > @@ -1,7 +1,8 @@ > > #!/bin/sh > > # SPDX-License-Identifier: GPL-2.0 > > # description: event tracing - enable/disable with top level files > > -# requires: available_events set_event events/enable > > +# requires: set_event events/enable > > +# flags: instance > > > > do_reset() { > > echo > set_event