Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11451966rwd; Thu, 22 Jun 2023 13:31:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ59ohADSXbHg2K09YGv1Smv8xlLl5KOuv0lr1jfpSEHfSBMR6/x1BbjuIGJEopPp+iy92gu X-Received: by 2002:a9d:7397:0:b0:6b4:69b6:73a3 with SMTP id j23-20020a9d7397000000b006b469b673a3mr15242089otk.11.1687465881915; Thu, 22 Jun 2023 13:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687465881; cv=none; d=google.com; s=arc-20160816; b=VD3MO23bTJlM1fAI0xA4oitQ8sNsUGKmLjtNq0K/Sklb95ErKdgvohNy4L25EiINjr CODiFrPfHaTw2O8MKWkGnOsRLqBfq188MYlYpmtdPrd207gbj4gYkSxp6E3lGWRvrE8l Ll1xozdUaGTJlgSCjYQCJA5w26x/LeaxSgtJ6erlWIMUGHbS5od04CFLyCh9QRlwxPux uN30W3Wg7ywYcNM+i7bn9iYuHDuqHX+ZjvsHjxZF6taCNWswJMB3NjMoVYPC3T3TbwNK TIag+X0pM4z86FFHGsqG286vfs3oW8adiyYbg7jigI/mqTwOY68G3UXsncu6dVm5LA1G SLYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-filter; bh=NeibX9LIwGoST56KfbPrH75vbGuqTfTOqKUoB4hTpMY=; b=l5Ua9c3+g3qyVxgAdteR07eGKQ/4hCA9uMv8oGeO+GJwMDdeFDjQLywycMYp1TkRNf uRPrSJmxGlrjvAUqIDD+U9jwwGqD+qMa53Ctd+QqTwCELI06JpvXEd596zKBX/QEoGpN YhYK6fSKkAUMaYArHgujZwcVE8K9GMBZxFyoki+GLNaj5YgJ9p/pSJhGqCDyViyuEo1Z N658KU5r5juVYUUe3EppLsX0gWnKsBYPbXN4umG+93riAHemg8eorV1IbHp4Lf/Oqkhz WkFrXU2cBLbXsWOOw11DR3lkfTw87FhsVRLYNfo8L34sCQAj8bM1mcdY9kFtGUpnsTst BYqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=DI2JGIz9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x191-20020a6386c8000000b00552db08cd8bsi7291235pgd.730.2023.06.22.13.31.08; Thu, 22 Jun 2023 13:31:21 -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; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=DI2JGIz9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231160AbjFVUYL (ORCPT + 99 others); Thu, 22 Jun 2023 16:24:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbjFVUYJ (ORCPT ); Thu, 22 Jun 2023 16:24:09 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 771E11995; Thu, 22 Jun 2023 13:24:08 -0700 (PDT) Received: from CPC-beaub-VBQ1L.localdomain (unknown [4.155.48.126]) by linux.microsoft.com (Postfix) with ESMTPSA id D977D21C20AC; Thu, 22 Jun 2023 13:24:07 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D977D21C20AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1687465447; bh=NeibX9LIwGoST56KfbPrH75vbGuqTfTOqKUoB4hTpMY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DI2JGIz9a/qU9E87TuQ7pUS/EMJIpyly9QeqGdxNYxG19k3qzkV2HOCxz/+Sj+X1H TGW0QTXwwP+vT8yfuyDQ8fVmwFFLtTxIFi55fn/GWiLvrL82soBH4NcOD2hsDc37wb LTnqsryiV6/GEj7jgVWdOCmdsTFkr0ppoiU/CCx4= Date: Thu, 22 Jun 2023 20:24:02 +0000 From: Beau Belgrave To: sunliming Cc: rostedt@goodmis.org, mhiramat@kernel.org, kelulanainsley@gmail.com, linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/3] selftests/user_events: Enable the event before write_fault test in ftrace self-test Message-ID: References: <20230621063438.154271-1-sunliming@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230621063438.154271-1-sunliming@kylinos.cn> X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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, Jun 21, 2023 at 02:34:38PM +0800, sunliming wrote: > The user_event has not be enabled in write_fault test in ftrace > self-test, Just enable it. > > Signed-off-by: sunliming Good catch. Acked-by: Beau Belgrave Thanks! > --- > tools/testing/selftests/user_events/ftrace_test.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/testing/selftests/user_events/ftrace_test.c b/tools/testing/selftests/user_events/ftrace_test.c > index abfb49558a26..d33bd31425db 100644 > --- a/tools/testing/selftests/user_events/ftrace_test.c > +++ b/tools/testing/selftests/user_events/ftrace_test.c > @@ -373,6 +373,10 @@ TEST_F(user, write_fault) { > ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); > ASSERT_EQ(0, reg.write_index); > > + /* Enable event */ > + self->enable_fd = open(enable_file, O_RDWR); > + ASSERT_NE(-1, write(self->enable_fd, "1", sizeof("1"))) > + > /* Write should work normally */ > ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 2)); > > -- > 2.25.1