f2fs: add f2fs_io_tracer support
[deliverable/linux.git] / fs / f2fs / trace.h
1 /*
2 * f2fs IO tracer
3 *
4 * Copyright (c) 2014 Motorola Mobility
5 * Copyright (c) 2014 Jaegeuk Kim <jaegeuk@kernel.org>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11 #ifndef __F2FS_TRACE_H__
12 #define __F2FS_TRACE_H__
13
14 #ifdef CONFIG_F2FS_IO_TRACE
15 #include <trace/events/f2fs.h>
16
17 extern void f2fs_trace_pid(struct page *);
18 extern void f2fs_trace_ios(struct page *, struct f2fs_io_info *, int);
19 #else
20 #define f2fs_trace_pid(p)
21 #define f2fs_trace_ios(p, i, n)
22
23 #endif
24 #endif /* __F2FS_TRACE_H__ */
This page took 0.041577 seconds and 6 git commands to generate.