diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2013-04-23 03:42:53 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-04-23 05:15:10 -0400 |
commit | 8e46b3ed11b750a740fec0a313ad9118059fc37b (patch) | |
tree | d6843e692a91a6b6b83d33a22c05098c30dc7e00 /fs/f2fs/gc.c | |
parent | 848753aa3b19a6513315ca54f22ba1e2732ea94a (diff) |
f2fs: add tracepoints for GC threads
Add tracepoints for tracing the garbage collector
threads in f2fs with status of collection & type.
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Pankaj Kumar <pankaj.km@samsung.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
[Jaegeuk: modify slightly to show information]
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r-- | fs/f2fs/gc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 37b05e1c574c..1ca332455ee2 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include "node.h" | 23 | #include "node.h" |
24 | #include "segment.h" | 24 | #include "segment.h" |
25 | #include "gc.h" | 25 | #include "gc.h" |
26 | #include <trace/events/f2fs.h> | ||
26 | 27 | ||
27 | static struct kmem_cache *winode_slab; | 28 | static struct kmem_cache *winode_slab; |
28 | 29 | ||
@@ -301,6 +302,10 @@ got_it: | |||
301 | set_bit(secno, dirty_i->victim_secmap); | 302 | set_bit(secno, dirty_i->victim_secmap); |
302 | } | 303 | } |
303 | *result = (p.min_segno / p.ofs_unit) * p.ofs_unit; | 304 | *result = (p.min_segno / p.ofs_unit) * p.ofs_unit; |
305 | |||
306 | trace_f2fs_get_victim(sbi->sb, type, gc_type, &p, | ||
307 | sbi->cur_victim_sec, | ||
308 | prefree_segments(sbi), free_segments(sbi)); | ||
304 | } | 309 | } |
305 | mutex_unlock(&dirty_i->seglist_lock); | 310 | mutex_unlock(&dirty_i->seglist_lock); |
306 | 311 | ||