Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp441158rdb; Sat, 19 Aug 2023 07:53:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEeDsUKagpht6PEvIr/xuEsaG3PIU35bRLcUysUVIVP/NDiJLiqRPA3cdoqLuaVDuJz0THt X-Received: by 2002:a05:6a00:478f:b0:68a:2e49:97da with SMTP id dh15-20020a056a00478f00b0068a2e4997damr1170892pfb.0.1692456793062; Sat, 19 Aug 2023 07:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692456793; cv=none; d=google.com; s=arc-20160816; b=rYi1mQUgWncDzf0lG+FpIULwanD1PWOdytTVRgFNddPyzzBhV5CDVpoacmLxM59zAK CRIJvFW3jkoeM1b566DYrR9kITOICFa6LgGao5HE38jkeSlFt86gj/Qw2SwtMFy08UKn +nFyEL1rxcuAgcm5iPqMZVgdtIfkvp1MVLRPSNX+4PSz0XaGW+1NDeXleG+64WK6qQcw blKPtWx3dRBicu+WV9/wbkSKyiRFSEQGDFCbJ2WKT4/Kw5Rtk3zCJb6g+un8GPRfPQbt 6khjWOOEIdRrd+co7lAvKFqaA6OQij01bB71q7aUL+4P3UPhk4znhYRXpZvC5yx+bC1v ZCrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Q45JqAXzr4Yc7nNEyhWOzDg94DzcZe7EdIRyJCqv0Jo=; fh=2ncew60peLtSOX1Ac269UbIxoKsD2sq4FUcMWUrACOo=; b=YA6XkPUXYXMrVdi9YpOoiYMipaBxcxbfPDEub2BOscZUN7i//R3QzggxFKUF5UGrUP jioFlcyYSrjOsC3Vlb3uXDkw305QTFcsmDLx9MRk5gYX/xQHFI3tu9rL1lDlsJzX7cO5 rWEeUtQHm387nKvXL22kZbzRQBA3o9aXxKrX30coBQG8NAlJeesEhUwcxxqenS1bSPjM ZB+bx/R5HFC3ePR4nRNJC11PB2Qg3ICKhV0GuIUZWJZjo1vgnatb62+IzQKI5smWwB+M mxWl509lQZ4fiMYEQTYdwr9dHXE4ESzjWdgnbeSpD9nLZf5fYe+D7mTcqDpoN+IkWgUT 7W2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=YcPQmIOt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p3-20020a62ab03000000b00687501ac7dasi3392960pff.363.2023.08.19.07.53.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 07:53:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=YcPQmIOt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 38649D395A; Sat, 19 Aug 2023 01:45:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233612AbjHPX1W (ORCPT + 99 others); Wed, 16 Aug 2023 19:27:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347167AbjHPX1R (ORCPT ); Wed, 16 Aug 2023 19:27:17 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA5E52723 for ; Wed, 16 Aug 2023 16:27:15 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b9bf52cd08so105459141fa.2 for ; Wed, 16 Aug 2023 16:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1692228434; x=1692833234; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Q45JqAXzr4Yc7nNEyhWOzDg94DzcZe7EdIRyJCqv0Jo=; b=YcPQmIOtMYQxiiZ/0AoABDlTNdSDIrOtk2rGs70EhaTerh977ds3mBVgJcKMcJTDHe YjKFJ/KIfKRAka9zH6TltVJEIm9Zy6YyMSj1y+Tvdn7Ih5/BknEoMv00A1MUjAKHV86c Jf0U662FZiWrgTbizBQ0/YqFTtOjmLu9LVX40= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692228434; x=1692833234; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q45JqAXzr4Yc7nNEyhWOzDg94DzcZe7EdIRyJCqv0Jo=; b=OFcpVPc+cNnmykk+AeryWPGGEC+6OSZj3DlWRzjhbDlfqBpJw2Rf1AIo6l7CRQo864 /VAOmnbjkOCytMxVvumsou8UlqzBXGJ1TtMbhmykhhTKzgQwx13xjgYxwzSVu1W4t9ty ZpTnlYtGN1E+EwghBYU+AAGos7WZe+8j2lN06ZyeNztUUU6ti6g2+phncjLgrEjgTP81 dJKrfZBswVB3UqZhBuRb8412XVAW2PV2tyTRGnoopo0togKHI4QOx3cDCx07NuyYYgAg ovNIIB9sRVaXD3JGy0quLGGYATlrdfcrF09wC4BJ6QjfEltMhavM8ekVl26uy0/oznxU Ad2w== X-Gm-Message-State: AOJu0YzKwQEBPqMPc6LJmwoMb8k0vqsyFoSv8vGHEykyf2iz4/wji4SF Es0wOqT+ObqPdZX9a0g+/Kao0OxN81ArRgVhv+haVA== X-Received: by 2002:a2e:80c7:0:b0:2b5:9f54:e290 with SMTP id r7-20020a2e80c7000000b002b59f54e290mr2556165ljg.0.1692228434049; Wed, 16 Aug 2023 16:27:14 -0700 (PDT) MIME-Version: 1.0 References: <20230815190949.GA3207581@google.com> <6a234118-1ad2-4e22-ad80-f35a1dab8f03@paulmck-laptop> In-Reply-To: <6a234118-1ad2-4e22-ad80-f35a1dab8f03@paulmck-laptop> From: Joel Fernandes Date: Wed, 16 Aug 2023 19:27:03 -0400 Message-ID: Subject: Re: [PATCH v3] rcutorture: Copy out ftrace into its own console file To: paulmck@kernel.org Cc: linux-kernel@vger.kernel.org, Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Shuah Khan , Joel , rcu@vger.kernel.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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, Aug 16, 2023 at 6:57=E2=80=AFPM Paul E. McKenney wrote: > > On Tue, Aug 15, 2023 at 07:09:49PM +0000, Joel Fernandes (Google) wrote: > > When debugging, it can be difficult to quickly find the ftrace dump > > within the console log, which in turn makes it difficult to process it > > independent of the result of the console output. This commit therefore > > copies the contents of the buffers into its own file to make it easier > > to locate and process the ftrace dump. The original ftrace dump is stil= l > > available in the console log in cases where it is more convenient to > > process it there, for example, when you have a script that processes > > console output as well as ftrace-dump data. > > > > Also handle the case of multiple ftrace dumps potentially showing up in= the > > log. Example for a file like [1], it will extract as [2]. > > > > [1]: > > foo > > foo > > Dumping ftrace buffer: > > --------------------------------- > > blah > > blah > > --------------------------------- > > more > > bar > > baz > > Dumping ftrace buffer: > > --------------------------------- > > blah2 > > blah2 > > --------------------------------- > > bleh > > bleh > > > > [2]: > > > > Ftrace dump 1: > > blah > > blah > > > > Ftrace dump 2: > > blah2 > > blah2 > > > > > > Signed-off-by: Joel Fernandes (Google) > > Very good, and I did queue this one. > > I fixed the indentation of the awk script. Perhaps your text editor is > being too smart for our good? ;-) Thanks! Yes the editor messing up is a possibility, I'll go look at that, though the indent seems still messed up in your dev branch: The line "/Dumping ftrace buffer:/ " has spaces, as does the "awk < $1" line. Is that intentional? All the following ones have tabs. thanks, - Joel