Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35966226rwd; Mon, 10 Jul 2023 15:48:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlFFam8JKAQoVIncali5smw9MHHJ+pGXuHaLQLuJmjt4YoLC8c09KxEJ1yUUm9S9zx6C/g9A X-Received: by 2002:aa7:cad9:0:b0:51d:dbf1:c825 with SMTP id l25-20020aa7cad9000000b0051ddbf1c825mr16276525edt.1.1689029291995; Mon, 10 Jul 2023 15:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689029291; cv=none; d=google.com; s=arc-20160816; b=WAS/Y+Mohhh5ZNTzfDp3W5PkQ9Q0sTLdDE3alvUGEtK+kJq/vCegVpmO4txkZXUC95 kAI7YlbE7etzZ1fd8KTacyPEyjWGSt0h25KEPHPN10+kLZ6dQhPBqexYcT31wkgmSzXz kf2XsVdeMmSL9SZyrVpNcyJE5vgA5acEbEEIz9lYYRXNuJgFc8kjqh4fDCQIWWRKL3v8 Myi1/BlgLStP7nEGNHNyjVDcXikh6dUR20t9itE+KLsTPM+A4PaTXswyqKna+6LXYINT hKvmDRzbbLExvbdaPFmUEJSKcrfk2t0BZL5uLeaLhJTpOrC5ajv8oeyHfhAF8go8vIW5 4w1A== 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=y0Jy6qS57SGdkBFKaHOMiEdFp/9DGFOnzZtOn2NaMVc=; fh=yvT4RpSJfIJ6tBK/WH1mhon9NMkPT1QBqKDdearQHD8=; b=pRDOq3K0nkSmMUJoKcqvk+SIULKLZaOoEfo89uhmjQB9HJsnZsS1etTaI4owXhHbVY nxSWsy3fwx1uVhzNmOdbxK/Tf9UJOx4xer3HiDTgwr9/UK4noUy28y7znGy/7OtBz1Uj AZbCh9AF0cDB8+nnrvhkmsZIZtb0LHMpBlnfNC1Cm494lLrb8o8XuPYnRmBTTSICF5ec GCXoIWPDBOhEQ2DBxgslpZRqrlF1XKkB0mbVhfw5tXwGF4HoM8wBGeOHlTffXGfYBjxP jKlS2LgV3fMEVUb93mI6Du6LFs/qi8GjLJzAYDgqksl+e6ououqrXeD1tgLiHa2JCd0R +Osg== 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 r23-20020aa7d597000000b0051dd525dd79si527016edq.521.2023.07.10.15.47.47; Mon, 10 Jul 2023 15:48:11 -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 S229969AbjGJWif (ORCPT + 99 others); Mon, 10 Jul 2023 18:38:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbjGJWid (ORCPT ); Mon, 10 Jul 2023 18:38:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7AC81702; Mon, 10 Jul 2023 15:38:01 -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) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3E3D06124A; Mon, 10 Jul 2023 22:37:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA068C433C7; Mon, 10 Jul 2023 22:37:43 +0000 (UTC) Date: Mon, 10 Jul 2023 18:37:41 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Zheng Yejian , , , , , Shuah Khan Subject: Re: [PATCH] selftests/ftrace: Correctly enable event in instance-event.tc Message-ID: <20230710183741.78f04c68@gandalf.local.home> In-Reply-To: <20230626191255.53baab4ed48d7111dcd44cad@kernel.org> References: <20230626001144.2635956-1-zhengyejian1@huawei.com> <20230626191114.8c5a66fbaa28af3c303923bd@kernel.org> <20230626191255.53baab4ed48d7111dcd44cad@kernel.org> 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=-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 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 Shuah, can you take this? On Mon, 26 Jun 2023 19:12:55 +0900 Masami Hiramatsu (Google) wrote: > On Mon, 26 Jun 2023 19:11:14 +0900 > Masami Hiramatsu (Google) wrote: > > > On Mon, 26 Jun 2023 08:11:44 +0800 > > Zheng Yejian wrote: > > > > > Function instance_set() expects to enable event 'sched_switch', so we > > > should set 1 to its 'enable' file. > > > > > > Testcase passed after this patch: > > > # ./ftracetest test.d/instances/instance-event.tc > > > === Ftrace unit tests === > > > [1] Test creation and deletion of trace instances while setting an event > > > [PASS] > > > > > > # of passed: 1 > > > # of failed: 0 > > > # of unresolved: 0 > > > # of untested: 0 > > > # of unsupported: 0 > > > # of xfailed: 0 > > > # of undefined(test bug): 0 > > > > > > > Good catch! > > > > Fixes: 91e6f1ce8657 ("ftracetest: Add instance created, delete, read and enable event test") > > > > It seems this tests internally broken but the result is same because this disabled > > error checking ('set +e'). > > And > > Acked-by: Masami Hiramatsu (Google) Acked-by: Steven Rostedt (Google) -- Steve > > Thanks! > > > > > > > > Signed-off-by: Zheng Yejian > > > --- > > > .../testing/selftests/ftrace/test.d/instances/instance-event.tc | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc > > > index 0eb47fbb3f44..42422e425107 100644 > > > --- a/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc > > > +++ b/tools/testing/selftests/ftrace/test.d/instances/instance-event.tc > > > @@ -39,7 +39,7 @@ instance_read() { > > > > > > instance_set() { > > > while :; do > > > - echo 1 > foo/events/sched/sched_switch > > > + echo 1 > foo/events/sched/sched_switch/enable > > > done 2> /dev/null > > > } > > > > > > -- > > > 2.25.1 > > > > > > > > > -- > > Masami Hiramatsu (Google) > >