Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp293950rdb; Fri, 8 Sep 2023 00:15:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFN30nh8PBffugYzn7F+SuwLVDNycjUVVPSSBbN0upVqbmFVZHnQZJE6STLdLenlaXXMBXy X-Received: by 2002:a19:431a:0:b0:502:9b7c:9d4 with SMTP id q26-20020a19431a000000b005029b7c09d4mr820552lfa.5.1694157331907; Fri, 08 Sep 2023 00:15:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694157331; cv=none; d=google.com; s=arc-20160816; b=oG4l+Y/K6e8LDDFJ4Q9tINQYevFQPbYKNbvrgUdcCK1va/IdJhTgD7lGGmdptRj3J/ iTZaMDlPVXa5ly7JK9gUjLxRzul0XZRq2rN7YlR9OcTOqNBwhax0nL5XXNhwmMoGulYm 7SDfAfQsvRwaB2PlnqoxQLOsZ0+CjB6HH0uWZenUaFIuLnsHkZ5C/6xhzxVedik4pOel kF+hMpq+OEKeX/i80X4zwmdybYnBH4JwO//0ytnNm3ipALOexyhafb0OUdrhz3pD+R01 UtQfZZ102qv2pyBW9nUhwtLRu1YcvPkJ21gca2Acdr+owbMRmnB40UK7uo9UVMXtfPGd 4uWg== 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=qNs7MWqk1uXVrGrUP1gDZV8WnS2+nuoZzTuDIqOa3+I=; fh=84Iav3WXimDueV1IHeqlVgVaG/DQ7c71HkyG4TZe5oU=; b=IbwwE891/5lqDEiOgt48xtMUh9FbTi99T1z2Ho1doYDlkRqvHtYzOWnMd+3p6OCgk/ 9hCQ/c7ZvD8cCBXt5In4uFJGSLO0unGUTqxxatNH4IPHuOjY7Cxd1skWDCTtyUADCMJK uJ4ZiAUs78q7ZbgGXA674jypmrh++OR3TKuprm6H8sTqybzupFp0rmn77fl5KjUM8ato n6v6QK9W5gur4K05e7OS136L0pVCQIPk5QKmwlR+X6Klh5F6zZ0nyKltchEbdvCc5Hbk K47vs9LCCiVABMRITV7uiY1KCwqR3IzIXynqtDUguczRiJbmSRpshXY6gKbc/qTK4Z03 TCug== 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 y17-20020a170906471100b00992ee06bddbsi900834ejq.176.2023.09.08.00.15.17; Fri, 08 Sep 2023 00:15:31 -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 S239010AbjIHBkL (ORCPT + 39 others); Thu, 7 Sep 2023 21:40:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235744AbjIHBkJ (ORCPT ); Thu, 7 Sep 2023 21:40:09 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CEE919BD; Thu, 7 Sep 2023 18:40:05 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74584C433C8; Fri, 8 Sep 2023 01:40:04 +0000 (UTC) Date: Thu, 7 Sep 2023 21:40:20 -0400 From: Steven Rostedt To: Zheng Yejian Cc: , , , , , Shuah Khan Subject: Re: [PATCH] selftests/ftrace: Test toplevel-enable for instance Message-ID: <20230907214020.34981ffd@gandalf.local.home> In-Reply-To: <20230710175415.2ec0061f@gandalf.local.home> References: <20230509203659.1173917-1-zhengyejian1@huawei.com> <20230609174626.66659892@gandalf.local.home> <20230710175415.2ec0061f@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.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS 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 On Mon, 10 Jul 2023 17:54:36 -0400 Steven Rostedt wrote: > Hi Shuah, > > I think this dropped through the cracks. Can you take this through your > tree? ping? > > -- 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