Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp205958rwe; Fri, 14 Apr 2023 01:12:18 -0700 (PDT) X-Google-Smtp-Source: AKy350ZoQmt9SKpMDMRyvmqav4xzjEMqdaZs/ttV7/MPOQ6EJ7lNxTpARBtfhrKfou3NP7q6D2TS X-Received: by 2002:a17:903:22d0:b0:1a6:6d9f:2fc9 with SMTP id y16-20020a17090322d000b001a66d9f2fc9mr2571742plg.30.1681459938182; Fri, 14 Apr 2023 01:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681459938; cv=none; d=google.com; s=arc-20160816; b=qHLl1Z1pIKTYyrNiTKSUpXNQCUKC7GxGHGb2ZXfhCOIny+7pp/ZnGo1uQum2HE9uOF 34TNeteFnYPei4bkYWZbC2XjOU7Wv7v+Ug//5fB42KCjk2OCjlcp5d4hsgOJ4yFpB+0W J9l3v6//OYK2hVe+F/ewZ/FHooolJCHq2NxZNf02PDwd4a93uP/72lUajogkwzVF15D2 EmSoslrL4uzWSKRO5/Z1gPJ9ClbXVMe8UXeIhVX1UxFzgAqWjO3KGLE4b4CPGi27HNxS GpxTKpRGUHNbkGzotTYk10ZHP5rStRO0OnTYQJ9ujVaBqAC3hQ9xIeo4bsF2g93e1s++ UErg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:subject:cc:to:from:message-id:date :dkim-signature; bh=7pDgMY2uf/2OwQImclTx5thTOqS4qhcATXLrvKTp73M=; b=fKFlKIPapmY7M2wUF+lCmm5htJwurhwMovX7vixGb9DliqDljwgJQEU+iOB+2PXvyj F9udKhN9HZT8X8TS0GCz1hm1Cs5XorKNNy+r44OevWP+jdUytRprLZsmQQV3sgpoLNUv lGdDLdcXPpWb8Zvyo09Xbiio3oEaYSywabQ2DdBY8AIHMyr1uXCcxQ5KZs9WIhp7aF9L O8IOA1CMFzZqBC8EhM5BdI3Ed3naVXe8/cyu4yOEGvVdMTOXkFmpm0SMNNe+a9C/6ntE kF6dJREcasQ1ekfkaj2KFbW9mWlG/IfqsqDOE1SUcOdMchPWSVT+GX2AzzZ6EPz7iGJN UwTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WdcwNeQ8; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a170902e5cc00b001a27f94808csi4349442plf.518.2023.04.14.01.12.03; Fri, 14 Apr 2023 01:12:18 -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=@gmail.com header.s=20221208 header.b=WdcwNeQ8; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229650AbjDNIGv (ORCPT + 99 others); Fri, 14 Apr 2023 04:06:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbjDNIGu (ORCPT ); Fri, 14 Apr 2023 04:06:50 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBCB440F1; Fri, 14 Apr 2023 01:06:49 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-247061537b3so440400a91.2; Fri, 14 Apr 2023 01:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681459609; x=1684051609; h=in-reply-to:subject:cc:to:from:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=7pDgMY2uf/2OwQImclTx5thTOqS4qhcATXLrvKTp73M=; b=WdcwNeQ8p7OOQ3fvo5SsWtk4XH60b1j5QjdLzpHuCqAh+CDAplMzqEMUoa2lY25Fc9 O4hlLybQN8ScVYHxemwTaYMmPjoFLy/QDERP6Z8hvK2wHo+2b+MATLcDbiOWGqA4OYeg Zd/P1XAJXZ9xiXBHLqmL70Q3kwPgdqsBR/4Muno8T8cNRFMpdafRtsRONEtntTtF00p9 QAlvEHeNriSIRgOjzhUs9ewMs8xmqPhPbm3DbRE4uIOhxvGnHtnFcvXEaVTJrrIriD6e nn3RZJx4TIT4NmCg/lEFESkyUQUhwhlvGXdcOseuLjhhBX61RWPB+F20cI1JGof/euzZ KDHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681459609; x=1684051609; h=in-reply-to:subject:cc:to:from:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7pDgMY2uf/2OwQImclTx5thTOqS4qhcATXLrvKTp73M=; b=bF2eIp6bS234CowtRTyen/RKD82SlXba6KfwqXbV6v/AZfV1w08njtxx3I4Wagc8QH YKINJUZvrmLFoWSZ0Xd5swpWxizrwtjoFtfATxF2WrY1QjFliXAJKige5LbTbprDHlII pjeLYPMxscFYMgcisoTHhSrQ78ux6GHzbDq4x0/nZYU+p87I6MJ/UMbL/8PTt02iEhsz HRKfI8igEG0fWPzREV+zjICJ0L0L1GL9XKimwUTD9nwAB8lPcVF7BMDE4FUO3ZuNK9Ko 4b6Sgmj0ArrYn5jqy4/QDgA/ky7fQwyepYFef9873iIagqi8LMzc/tTNIkBsnEmpZJk3 ingg== X-Gm-Message-State: AAQBX9edqWzK6fDm2ho3lJvYivVZYKcOpOIRgjujyNIkzrgBdYFDHlMD mnTdKF07Pfwx6iOb82DhjWbJz/CEzlA= X-Received: by 2002:a05:6a00:1905:b0:639:243f:da25 with SMTP id y5-20020a056a00190500b00639243fda25mr7031703pfi.22.1681459609382; Fri, 14 Apr 2023 01:06:49 -0700 (PDT) Received: from rh-tp ([2406:7400:63:7035:9095:349e:5f0b:ded0]) by smtp.gmail.com with ESMTPSA id q11-20020a65684b000000b0051b1aef8032sm2464157pgt.38.2023.04.14.01.06.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 01:06:49 -0700 (PDT) Date: Fri, 14 Apr 2023 13:36:43 +0530 Message-Id: <874jpizy3w.fsf@doe.com> From: Ritesh Harjani (IBM) To: Christoph Hellwig Cc: linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, Jan Kara , Christoph Hellwig , "Darrick J . Wong" , Ojaswin Mujoo , Disha Goel Subject: Re: [RFCv3 07/10] ext2: Add direct-io trace points In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Christoph Hellwig writes: > So why do you add tracepoints in ext2 in addition to iomap? 1. It's very convenient to look into all ext2 filesystem activity by just "trace-cmd -e ext2" 2. For cases in ext2 which fallbacks to buffered-io routine. Adding a trace point specifically for ext2 can cover this path as well as to how much got written via buffered-io path or in case there was an error while doing that. 3. As of now there was no tracepoint added to ext2. Going forward it will be quick and convenient to add any trace event for debugging/observing other call paths too while development. -ritesh