Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2184875rwl; Thu, 13 Apr 2023 02:55:32 -0700 (PDT) X-Google-Smtp-Source: AKy350ZU9rWqcjZuZVF4+cY6p2TCkvfKeh60fOBL1NFS3df4yFgyEPRokrra2TB6SvRqP0Dl+hoM X-Received: by 2002:a05:6a20:4f1d:b0:de:a889:c58b with SMTP id gi29-20020a056a204f1d00b000dea889c58bmr1734276pzb.25.1681379732227; Thu, 13 Apr 2023 02:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681379732; cv=none; d=google.com; s=arc-20160816; b=L/upY92zwZ8Q1So3d+CzKSMz9jLuMo7jsca9Ua1LW7aHpsYWPQAk0W5NUVCEEpKjcQ vdYJJIQMXXjKCFGpkSgefomXBu9Fa4q7bUfseGXlZuPR8Yh6rMBgfE3R++ttbnWIhHjq g0Eo+xLA2kvE6MXHlKEgIbxwztPhbC/zDVlLt4NKni9yCoI0QsO+Hf2T2ixYB83gM0S+ KpK7IcCQEjpiyFYShUjw8Bs9IjMbkRS1pjhHca2AGgmWzQJajnDyF2poilS/+cLwFh5c uJ11ZRvqYP4mqA3YX4eUkB8SnYBCxS7GHxuMU1IMu5x5vFnvEDpN7oUWApmHAYubTlrG pLYA== 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; bh=yNDfGLcLL0CSLuILqhKnPrrla6Nhft133+nXzeZGHoY=; b=RjgbUKiSxpJosTzm9EYSea5eVXtonwdvIkPSTSmViCTxYMktL8E6E/HYTOh6rDQZ8x 9xviwsaz53ZwJnos5f3cUTY99kHiMnCxD9Y+RWFYXU+/nTJ3HkXWzzL8LFimHNNeGtG6 BkAdTBHhPRaDP4OuzJ+5uiuQIPNYHZnHDUTN35mwBd7I4I9Nd96+157gniiYElTyWWwS syf4w0N1MOkX8+C7WNvEpQc2rn0wd2sTYhFBAI37bJtUzcq9lpCD2Kt+2/bvQHZJmt7o oe8avloXX7ajuLss6B0yG88qSLEZa1R7qHz1Eb2qoiUbclLo4zKZ2ppC4NTVRk2/KK6/ tNCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mz0N6CFU; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z38-20020a630a66000000b0050fbc594e1asi1652221pgk.207.2023.04.13.02.55.19; Thu, 13 Apr 2023 02:55:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@kernel.org header.s=k20201202 header.b=mz0N6CFU; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229893AbjDMJyb (ORCPT + 99 others); Thu, 13 Apr 2023 05:54:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbjDMJy1 (ORCPT ); Thu, 13 Apr 2023 05:54:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5863974C; Thu, 13 Apr 2023 02:54: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 68EFB63CBA; Thu, 13 Apr 2023 09:54:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66F7EC4339B; Thu, 13 Apr 2023 09:54:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681379665; bh=726Vv60nLcRdRHuGleJutcRXEfvdcGUOQyO8Iw43z4k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mz0N6CFUcySJeqze4kP14fQT5OCeSIYFDgiy5UBN9q6JYZsGxk0+iigYbKZIHOXiK EOmTo1cdk3GrGqUwF3jar22s+fxkqWLSXeRmkpg8waksWZQ0YU/W3WbIAy++JMkHap oPk56w2yVkG3JludMsg6Hu6LaPuTolGdTINvLFaACNS89niQcC5+tBCFUylTw9mg4Q +0md7VcifMrK+HUefuPliBF6iT7isKvCTwqQFgMNwLvqsdWAFgkY3oT4cfUKMIB9P/ HOr1b0iUZS4YbJ4L8xZIOFCdf4A/V2JVAcL5728E3DSlzpZQpWao3OSmsv5bY3wTeh V31bWhVBfqy5A== Date: Thu, 13 Apr 2023 11:54:20 +0200 From: Christian Brauner To: "Ritesh Harjani (IBM)" Cc: linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, Jan Kara , Christoph Hellwig , "Darrick J . Wong" , Ojaswin Mujoo , Disha Goel , Christoph Hellwig Subject: Re: [RFCv3 06/10] fs.h: Add TRACE_IOCB_STRINGS for use in trace points Message-ID: <20230413-rauchen-gesalzen-f15b4be69248@brauner> References: <1b57f3a973377392df1f1d02442675ac5fd0c115.1681365596.git.ritesh.list@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1b57f3a973377392df1f1d02442675ac5fd0c115.1681365596.git.ritesh.list@gmail.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-ext4@vger.kernel.org On Thu, Apr 13, 2023 at 02:10:28PM +0530, Ritesh Harjani (IBM) wrote: > Add TRACE_IOCB_STRINGS macro which can be used in the trace point patch to > print different flag values with meaningful string output. > > Tested-by: Disha Goel > Reviewed-by: Christoph Hellwig > Signed-off-by: Ritesh Harjani (IBM) > --- Fine, but fs.h is such a dumping ground already I hope we can split more stuff out of it going forward... > include/linux/fs.h | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/include/linux/fs.h b/include/linux/fs.h > index 9ca3813f43e2..6903fc15987a 100644 > --- a/include/linux/fs.h > +++ b/include/linux/fs.h > @@ -340,6 +340,20 @@ enum rw_hint { > /* can use bio alloc cache */ > #define IOCB_ALLOC_CACHE (1 << 21) > > +/* for use in trace events */ > +#define TRACE_IOCB_STRINGS \ > + { IOCB_HIPRI, "HIPRI" }, \ > + { IOCB_DSYNC, "DSYNC" }, \ > + { IOCB_SYNC, "SYNC" }, \ > + { IOCB_NOWAIT, "NOWAIT" }, \ > + { IOCB_APPEND, "APPEND" }, \ > + { IOCB_EVENTFD, "EVENTD"}, \ s/EVENTD/EVENTFD/