Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6148953rwi; Tue, 18 Oct 2022 08:40:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7UT1ScratiO6EGDLOspONvAHu47eeCtS2y/qKrOBYiHNzjsbznV4UKYhnPP4nL/p9Y0bci X-Received: by 2002:a05:6402:7d0:b0:459:d35c:8563 with SMTP id u16-20020a05640207d000b00459d35c8563mr3274715edy.229.1666107623371; Tue, 18 Oct 2022 08:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666107623; cv=none; d=google.com; s=arc-20160816; b=ALuHxBcwyrl1dYDFlwjernJxiYHzSTUTF8tPrQwYdkBuza17qJGmmATDSnUhmQRecW cMmEJhxJgW2DtFiaUsvG3JmBHzCJWm10O4K/Mw7BEmLvcP3p5qgtwFwMBXkUePfrgV0F KEoP0g56ZgMtEezQ/TUDK0FoZVFRKSvPKjEoypTq2KjGwVUkR7s/EDxGrWecZrnSOYrG 7mXk+4YMIl5g6HxNKKRn9Dz7mLGNA5oRg6QlbE5BawqctE4YbYk5tOdhCY3hupf4CfGk hpSbw69PFrPh27PCQGPsBsOAWq6sPuK7uBTpzbt0o0bDEEc/q2YHya3GqEISd8tcuKRR b1VQ== 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=qR8vba+f06QDdGFdwitx7QVuFUNnoMXuZK/HSc0uPq8=; b=VpsYG1vTGpi6Gmkc+5V3eggB6dW3fzS8By4MkRF+TiGZMv3XtdsfeaY53mNPA79ryD jKpAnXckXnvUa2AGzXIRFCabrEzlGnJGM7Yf9rWvhlFyCrw+YCoD7qPNXe03uUKAu5wA 1fCDtC6IxWSWZFRAnJB/48gGDt7Si0FJSVZyJIoJ8D7S0dRE+eL50J60p4Nar4/nOuBg dJEG+Ko2xKcSrtYqkvweswonCh1g/RJUT8QMJqPh8YPkxW0L7lIdJRLOFD1DeVL+S422 gEesadHLpDG+oswyOcwmI6FKSBTqjsvJsfBHHJ3TMPWLmXAF635VUY2kuzKds+2zQton QPmg== 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 ay1-20020a170906d28100b007833c7cf1dcsi10643011ejb.387.2022.10.18.08.39.56; Tue, 18 Oct 2022 08:40:23 -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 S230078AbiJRPWd (ORCPT + 99 others); Tue, 18 Oct 2022 11:22:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbiJRPWb (ORCPT ); Tue, 18 Oct 2022 11:22:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FC09D01AA for ; Tue, 18 Oct 2022 08:22:26 -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 B5EBE615CE for ; Tue, 18 Oct 2022 15:22:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78834C433C1; Tue, 18 Oct 2022 15:22:23 +0000 (UTC) Date: Tue, 18 Oct 2022 11:22:24 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: "Naveen N. Rao" , Shuah Khan , , Akanksha J N Subject: Re: [PATCH] selftests/ftrace: Limit number of lines processed in 'trace' Message-ID: <20221018112224.372a3484@gandalf.local.home> In-Reply-To: <20221019001949.950fb044677f96c6cdd00fdf@kernel.org> References: <20221017105502.307506-1-naveen.n.rao@linux.vnet.ibm.com> <20221017105103.540a87c7@gandalf.local.home> <20221019001949.950fb044677f96c6cdd00fdf@kernel.org> 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 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, 19 Oct 2022 00:19:49 +0900 Masami Hiramatsu (Google) wrote: > > You need to make sure that the "pause-on-trace" option is set or tracing_on > > is set to 0 (disabled). Otherwise, if the tracing is still active, then the > > reading of the trace file could potentially never end. > > initialize_ftrace() does this setting. So it must be set. > If you run the ftracetest on old kernel, this feature is not there and > it may cause a trouble. Naveen, can you clarify it? But for old kernels that do not have "pause-on-trace" it should be the default. The "pause-on-trace" was added when the default was changed to not pause the trace while reading it. -- Steve