Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758033Ab3DYLDO (ORCPT ); Thu, 25 Apr 2013 07:03:14 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:53932 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757594Ab3DYLCn (ORCPT ); Thu, 25 Apr 2013 07:02:43 -0400 X-AuditID: cbfee68f-b7f066d000003683-a3-51790d51e0fa From: Jaegeuk Kim Cc: Jaegeuk Kim , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH 2/3] f2fs: add a tracepoint on f2fs_new_inode Date: Thu, 25 Apr 2013 20:01:36 +0900 Message-id: <1366887697-24627-2-git-send-email-jaegeuk.kim@samsung.com> X-Mailer: git-send-email 1.8.1.3.566.gaa39828 In-reply-to: <1366887697-24627-1-git-send-email-jaegeuk.kim@samsung.com> References: <1366887697-24627-1-git-send-email-jaegeuk.kim@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLLMWRmVeSWpSXmKPExsVy+t8zY91A3spAgytv+Syu7/rLZHFpkbvF nr0nWSwu75rD5sDisXvBZyaPvi2rGD0+b5ILYI7isklJzcksSy3St0vgyvi9cwZbQQ9XxZct TUwNjMs4uhg5OSQETCRWNj9kgrDFJC7cW8/WxcjFISSwjFHi3qIj7DBFa1t2MkMkFjFK7J69 khXCaWOS+Lx2B5DDwcEmoC2xeb8BSIOIALPEgqnnGUFqmAUmMEr8X/SeBSQhLGArcWj2ZTYQ m0VAVeL8u3VgcV4Bd4k1y8+xQWzTlVj9/znYZk4BD4ktf3vAzhMCqnnQtQ/sCgmB32wSOxe0 sEAMEpD4NvkQC8gREgKyEpsOMEPMkZQ4uOIGywRG4QWMDKsYRVMLkguKk9KLjPWKE3OLS/PS 9ZLzczcxQoK2fwfj3QPWhxiTgcZNZJYSTc4HBn1eSbyhsZmRhamJqbGRuaUZacJK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LHNV+VWIozEg21mIuKEwGDJD1nzQIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1487 Lines: 55 This can help when debugging the free nid allocation flows. Signed-off-by: Jaegeuk Kim --- fs/f2fs/namei.c | 3 ++- include/trace/events/f2fs.h | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index c57fd18..4aa26e5 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -63,7 +63,7 @@ static struct inode *f2fs_new_inode(struct inode *dir, umode_t mode) nid_free = true; goto out; } - + trace_f2fs_new_inode(inode, 0); mark_inode_dirty(inode); return inode; @@ -71,6 +71,7 @@ out: clear_nlink(inode); unlock_new_inode(inode); fail: + trace_f2fs_new_inode(inode, err); iput(inode); if (nid_free) alloc_nid_failed(sbi, ino); diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index b2b2f72..52ae548 100644 --- a/include/trace/events/f2fs.h +++ b/include/trace/events/f2fs.h @@ -197,6 +197,13 @@ DEFINE_EVENT(f2fs__inode, f2fs_evict_inode, TP_ARGS(inode) ); +DEFINE_EVENT(f2fs__inode_exit, f2fs_new_inode, + + TP_PROTO(struct inode *inode, int ret), + + TP_ARGS(inode, ret) +); + TRACE_EVENT(f2fs_unlink_enter, TP_PROTO(struct inode *dir, struct dentry *dentry), -- 1.8.1.3.566.gaa39828 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/