Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp767188pxp; Fri, 11 Mar 2022 14:35:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWI1H93JerQ4NhWb+SKW1zczISN8DYsp0SqUq4cDmmIgOdhLIUrCX95w9a7G8yJ6lvMAMG X-Received: by 2002:a17:902:700b:b0:148:ee33:70fe with SMTP id y11-20020a170902700b00b00148ee3370femr12938686plk.38.1647038110303; Fri, 11 Mar 2022 14:35:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647038110; cv=none; d=google.com; s=arc-20160816; b=Fd+HUPN9/M3G5L5eNwlIlf45NmT9MnryJOczj8R6CkmatrxfjJoVbbFWlM4QRyuWvJ C0dg/13nRFYvIoAhtbLlJXW/1SiSLpjuwD1HdBk1NtyTjn+JD3ujISVV8bC7z9LDEkWj Av4bn8arZP78BUzy1uZdd3Qbx2wiJ8cVEgo2+HY9KocyIWw3eJMUWQcHKF47RwPIriuS /wlOJwyzSUlFFtdKfD5DEma7+nCeDvDPNKmO5rUToVnfQMziLKRh+zkVM9RORgm8d08p jn3RLXDr+Mdw9ashOr7GCDwyZzig4j2GzUG031PS0ZPdPVAceU9oPdq1ZTEDrao8+bLH agXw== 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=JGXdjNuKkBfRPuEON4IGfVkpyjwzFBT7uz8Yj1z3+OM=; b=FGzlFOh/v2YJc07Ik6q1/VWmYdorS45csEHWTK/+WvX0jFiDX+vrv0ViD3EJt4wGvE jLIPQ5DNB1PgBS7tXlJDLthsj1gOjQoUAeHplZev0Vv2GHlnd00JsIePNXAEyxtiOUri U4hA1N19o2XwHSfgk1O/5O24QszgJe3qIVpQfIqoAo27ZBFuGQQ1SHnd/zdc7ZlMqe7K QKJLKW86ub02Edwr0Uig8VWDhcNHperbOjfhAGxOMyZrOOlED4uTo7bS7Fns4EZUPquB Wjd//8yLO8Byw5mGqs0hxpXEmksKb/T8olQ9Bv0p9nB4CMP4oag0uF2whkED3ndDBOK+ 8ZLA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-ext4-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c1-20020a170903234100b00151d33b90desi9851544plh.428.2022.03.11.14.35.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:35:10 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-ext4-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-ext4-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B736A31BD81; Fri, 11 Mar 2022 13:41:14 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236432AbiCKQnu (ORCPT + 99 others); Fri, 11 Mar 2022 11:43:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231971AbiCKQns (ORCPT ); Fri, 11 Mar 2022 11:43:48 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABDFF1FA4E; Fri, 11 Mar 2022 08:42:43 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id 18F33CE295C; Fri, 11 Mar 2022 16:42:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B39DC340EE; Fri, 11 Mar 2022 16:42:39 +0000 (UTC) Date: Fri, 11 Mar 2022 11:42:37 -0500 From: Steven Rostedt To: Ritesh Harjani Cc: linux-ext4@vger.kernel.org, Jan Kara , "Theodore Ts'o" , Harshad Shirwadkar , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv2 00/10] ext4: Improve FC trace events Message-ID: <20220311114237.51a2ed29@gandalf.local.home> In-Reply-To: <20220311150357.x6wpvzthsimb26m6@riteshh-domain> References: <20220310110553.431cc997@gandalf.local.home> <20220310170731.hq6z6flycmgkhnaa@riteshh-domain> <20220310193936.38ae7754@gandalf.local.home> <20220311021931.d4oozgtefbalrcch@riteshh-domain> <20220310213356.3948cfb7@gandalf.local.home> <20220311031431.3sfbibwuthn4xkym@riteshh-domain> <20220310233234.4418186a@gandalf.local.home> <20220311051249.ltgqbjjothbrkbno@riteshh-domain> <20220311094524.1fa2d98f@gandalf.local.home> <20220311150357.x6wpvzthsimb26m6@riteshh-domain> 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=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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-ext4@vger.kernel.org On Fri, 11 Mar 2022 20:33:57 +0530 Ritesh Harjani wrote: > On 22/03/11 09:45AM, Steven Rostedt wrote: > > On Fri, 11 Mar 2022 10:42:49 +0530 > > Ritesh Harjani wrote: > > > > > You may add below, if you like:- > > > > > > Reported-and-tested-by: Ritesh Harjani > > > > Will do. Thanks for testing. > > > > I'll be adding this for the next merge window. I don't think this is > > something that needs to be added to this rc release nor stable. Do you > > agree? > > If using an enum in TP_STRUCT__entry's __array field doesn't cause any side > effect other than it just can't be decoded by userspace perf record / trace-cmd, > then I guess it should be ok. Right. It only causes trace-cmd and perf to not be able to parse the field. But that's not really a regression, as it never was able to parse an enum defining an array size. > > But for this PATCH 2/10 "ext4: Fix ext4_fc_stats trace point", will be > needed to be Cc'd to stable tree as discussed before, as it tries to > dereference some sbi pointer from the tracing ring buffer. Then hopefully the > only problem with previous kernel version would be that ext4_fc_stats(), won't > show proper values for array entries in older kernel version where this patch > of trace_events is not found. > But cat /sys/kernel/debug/tracing/trace_pipe should be able to show the right values. > > > >From my side, I will send a v3 of this patch series with just EXT4_FC_REASON_MAX > defined using TRACE_DEFINE_ENUM. OK, I'll just add this for the next merge window. If people complain about the parser not being able to parse this from user space, then we can either backport it, or add a plugin that parses it manually in libtraceevent. > > Thanks again for your help :) > No problem. Thanks for the report. -- Steve