Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2688854rwd; Fri, 9 Jun 2023 15:30:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5eSfFFkZTbIurBts0BsWx0jJl0hPxXeN3f5MozF50YFciVGwTedHuoO73zJZby9qBQFa/5 X-Received: by 2002:a05:6a00:84a:b0:655:89f1:2db8 with SMTP id q10-20020a056a00084a00b0065589f12db8mr3299343pfk.16.1686349854684; Fri, 09 Jun 2023 15:30:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686349854; cv=none; d=google.com; s=arc-20160816; b=M4kMjN06r8tk62Hdy3iG5vELD1rE0ciydu7Yc714Ml9WdToF7xi4PftFdjeUXg17Ji CyDoN0hZ6/MsblHT0uljz3BiHaCEpagGFFPIuHrdScnsS8mqmuPxNzCCWKfb3/owhxed N710DL7uuTdZTqOJ3OM+eRTPY+vBPO6/OqwJYJFlOYwdkmCEtUJgXWSLRFPeJEtnBvDW skJtLEr4lkX6qQFzDc1lMYndi0rnsf/RbMUmJIuGlaGbTIpiRCKM6MqMB28evb4yWMUA e3wSkTDkxx+sYvjiGMls2u1zfuINNu0YFYzpqjNWA/IlfmeeMxv7/O6v8K6wll5IA16W auQQ== 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=xdFG1LmdeDvFw9M/RmuQtDIg+dtZUEFCOwz/+qI3x30=; b=yi4UC6iHwlMTrYOwZQVhq4DStnBSSd8wHYVqh/HwNWcZJsNdsP9keQcu0RHp/Vt/oU LKktdwu8mKOUg0nZVSIOBMelamC7YdxSgpz2EjPUxbJTFzwHbUcu0Qg9FDDGAQiRxo2z ANl4t8QAsz1qO1wmwMnpfpVP+yOQSt5hXmwXAOKfB9WjMMdAgNVd7btZewHt2JhvW/Fs pC4zy7A8P3wf/ah29VH9O9jiWmIutPEtZU+zPiq/BzsrrPrQ38FSr/7iZWGOgvyzBnLY 6745wlF7kW0gc9I/z44s0L6n7Ja+rqrwbaXRBsqqJc/f2MddS5x7nM1STRU8m/9okxyp onXw== 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 c145-20020a624e97000000b0063b731e3938si3038151pfb.2.2023.06.09.15.30.42; Fri, 09 Jun 2023 15:30:54 -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 S232543AbjFIVqd (ORCPT + 99 others); Fri, 9 Jun 2023 17:46:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbjFIVqc (ORCPT ); Fri, 9 Jun 2023 17:46:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10C6D35BE; Fri, 9 Jun 2023 14:46:31 -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 A284665C70; Fri, 9 Jun 2023 21:46:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4653CC433D2; Fri, 9 Jun 2023 21:46:29 +0000 (UTC) Date: Fri, 9 Jun 2023 17:46:26 -0400 From: Steven Rostedt To: Zheng Yejian Cc: , , , , , Shuah Khan Subject: Re: [PATCH] selftests/ftrace: Test toplevel-enable for instance Message-ID: <20230609174626.66659892@gandalf.local.home> In-Reply-To: <20230509203659.1173917-1-zhengyejian1@huawei.com> References: <20230509203659.1173917-1-zhengyejian1@huawei.com> X-Mailer: Claws Mail 3.17.8 (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=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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