Message ID | 20230509203659.1173917-1-zhengyejian1@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2850671vqo; Tue, 9 May 2023 05:44:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5QpuwDMf37aezlPouqCpiRwRgNf6EhJlabdoitOwZiXhVl7kBPucevP2YQBmpLWYVTuL1i X-Received: by 2002:a17:90a:d24f:b0:24e:4a1a:39a4 with SMTP id o15-20020a17090ad24f00b0024e4a1a39a4mr14463473pjw.17.1683636243842; Tue, 09 May 2023 05:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683636243; cv=none; d=google.com; s=arc-20160816; b=PJZ1fiI3KBVZPuy0fXdYRodJovtR2j+WQuG5FU9da94k0OnSWFF+w0+0VTs6pJEFgK QduNO27SDjI+7EHxJGTHZ+RwO2and6UptCpfGie8a/xIwtns78hKtUY3igPUG/0ylXtI 5tqfym3vihqV53CLv8ivN/fr/5AdhZnYihkOUC00MJmqa8aDu5J/WXmaV6DFXH5qUv25 1RihXmO2LEpWISv4G6J+sKzU2q2sAQkP8ez1P0ltTnVWqJWxNHeHl0kq3HfPMHchwC/j Y/gNToyixOiYxLnbRlY6oiq9sCU1JHG5xF6zdhcQVh0U+NxyHtLl1QGOe0lYnOSrJihA LGXw== 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 :message-id:date:subject:cc:to:from; bh=d515JiJHHgjTltNvYzHEpxxcjHd1wrYOfM99NXrFBAA=; b=uPOznB9zEtbOn1j93RFmB7vC+H0haRaMMsUKi+kmByeePHAG2oYLlAgYOQNEY5bfGJ Rtd3ODyVnF9MV5PFS4tfyZYszCXocXL89k9WGHyNVsLXUkRejSfaHba2/ILu4Mml3WDE l/6aa44v0SrE5qAf1ffuggAUk/kQ9BMFYlgvH9F67AQwV7FXkSE3ArNuTzHQMSZ1KdJv U2LqK7cCeV2sETTdk/LeBbP1NGMXyr2IbR0H3/BJrr3BRXvt22NGIYTlMU6Bpb4gyLLN ClX2bB4pxjwvLGrCrDaKHK1oOSzT2xijLv/dVzPeeUHpGp7Gc96UdDLwQjh+QaKuYBis Mg0A== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r134-20020a632b8c000000b005288509b88asi1387588pgr.681.2023.05.09.05.43.51; Tue, 09 May 2023 05:44:03 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235270AbjEIMha (ORCPT <rfc822;baris.duru.linux@gmail.com> + 99 others); Tue, 9 May 2023 08:37:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235155AbjEIMh2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 9 May 2023 08:37:28 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBB6C468D; Tue, 9 May 2023 05:37:26 -0700 (PDT) Received: from dggpeml500012.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QFyLC64VpzsRFn; Tue, 9 May 2023 20:35:31 +0800 (CST) Received: from localhost.localdomain (10.67.175.61) by dggpeml500012.china.huawei.com (7.185.36.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 9 May 2023 20:37:23 +0800 From: Zheng Yejian <zhengyejian1@huawei.com> To: <rostedt@goodmis.org>, <mhiramat@kernel.org>, <shuah@kernel.org> CC: <linux-kernel@vger.kernel.org>, <linux-trace-kernel@vger.kernel.org>, <linux-kselftest@vger.kernel.org>, <zhengyejian1@huawei.com> Subject: [PATCH] selftests/ftrace: Test toplevel-enable for instance Date: Wed, 10 May 2023 04:36:59 +0800 Message-ID: <20230509203659.1173917-1-zhengyejian1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.175.61] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500012.china.huawei.com (7.185.36.15) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_MED,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765420558120441445?= X-GMAIL-MSGID: =?utf-8?q?1765420558120441445?= |
Series |
selftests/ftrace: Test toplevel-enable for instance
|
|
Commit Message
Zheng Yejian
May 9, 2023, 8:36 p.m. UTC
'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 <zhengyejian1@huawei.com>
---
tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Wed, 10 May 2023 04:36:59 +0800 Zheng Yejian <zhengyejian1@huawei.com> 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 <zhengyejian1@huawei.com> Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> -- 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
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 <rostedt@goodmis.org> wrote: > On Wed, 10 May 2023 04:36:59 +0800 > Zheng Yejian <zhengyejian1@huawei.com> 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 <zhengyejian1@huawei.com> > > Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> > > -- 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
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