From patchwork Mon Mar 6 12:25:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas RAILLARD X-Patchwork-Id: 13161074 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 77A2BC678D4 for ; Mon, 6 Mar 2023 12:51:37 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1pZAJS-00081i-Sy; Mon, 06 Mar 2023 12:51:34 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pZAJR-00081c-2h for linux-f2fs-devel@lists.sourceforge.net; Mon, 06 Mar 2023 12:51:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9Rxvog2dEq5YgT9I+lO7A1WYg5oTp4eIruMCNm3sV2E=; b=GM67qufd28HddKJhWx7QTQpuDo D7g7ChyQjqFOM54D53hs5LGkjk//eFlgKF3a/ZMVByR4DLVgzH6a5l18hJKGqlAPcKCDka0Q6ZKcr TkXKAeetnfNlT7c8/CtU00FuD1Jfl7AAajNtKeGnTO6aWPlCTeAMO+xue4cqsiS9mp6Q=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=9Rxvog2dEq5YgT9I+lO7A1WYg5oTp4eIruMCNm3sV2E=; b=Q LKiRz+X0RRUFg9azlDbslN9qKX2zMf8stX4AbiNCS7CV80EiLVBBNkAPB4x85tYcSd1esvaYMzGZX xFs3oy92FHzgdAlqqVOHhTw8GEy/i4qzaRCGbMaccGUytxthD/tNHFor5p9SXn5lEAv175OUEOrJ9 s7tcDXR2HRvK/9hI=; Received: from foss.arm.com ([217.140.110.172]) by sfi-mx-2.v28.lw.sourceforge.com with esmtp (Exim 4.95) id 1pZAJO-0000Z6-Df for linux-f2fs-devel@lists.sourceforge.net; Mon, 06 Mar 2023 12:51:32 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BC07512FC; Mon, 6 Mar 2023 04:26:51 -0800 (PST) Received: from e126130.cambridge.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 68D863F67D; Mon, 6 Mar 2023 04:26:06 -0800 (PST) From: Douglas RAILLARD To: douglas.raillard@arm.com, Jaegeuk Kim , Chao Yu , Steven Rostedt , Masami Hiramatsu , linux-f2fs-devel@lists.sourceforge.net (open list:F2FS FILE SYSTEM), linux-kernel@vger.kernel.org (open list:TRACING), linux-trace-kernel@vger.kernel.org (open list:TRACING) Date: Mon, 6 Mar 2023 12:25:49 +0000 Message-Id: <20230306122549.236561-1-douglas.raillard@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Headers-End: 1pZAJO-0000Z6-Df Subject: [f2fs-dev] [PATCH] f2fs: Fix f2fs_truncate_partial_nodes ftrace event X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net From: Douglas Raillard Fix the nid_t field so that its size is correctly reported in the text format embedded in trace.dat files. As it stands, it is reported as being of size 4: field:nid_t nid[3]; offset:24; size:4; signed:0; Instead of 12: field:nid_t nid[3]; offset:24; size:12; signed:0; This also fixes the reported offset of subsequent fields so that they match with the actual struct layout. Signed-off-by: Douglas Raillard Reviewed-by: Mukesh Ojha Reviewed-by: Chao Yu --- include/trace/events/f2fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index 31d994e6b4ca..8d053838d6cf 100644 --- a/include/trace/events/f2fs.h +++ b/include/trace/events/f2fs.h @@ -512,7 +512,7 @@ TRACE_EVENT(f2fs_truncate_partial_nodes, TP_STRUCT__entry( __field(dev_t, dev) __field(ino_t, ino) - __field(nid_t, nid[3]) + __array(nid_t, nid, 3) __field(int, depth) __field(int, err) ),