Blame view
fs/f2fs/trace.h
1013 Bytes
63f92ddc8
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
/* * f2fs IO tracer * * Copyright (c) 2014 Motorola Mobility * Copyright (c) 2014 Jaegeuk Kim <jaegeuk@kernel.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef __F2FS_TRACE_H__ #define __F2FS_TRACE_H__ #ifdef CONFIG_F2FS_IO_TRACE #include <trace/events/f2fs.h> |
0e689d036
|
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
enum file_type { __NORMAL_FILE, __DIR_FILE, __NODE_FILE, __META_FILE, __ATOMIC_FILE, __VOLATILE_FILE, __MISC_FILE, }; struct last_io_info { int major, minor; pid_t pid; enum file_type type; struct f2fs_io_info fio; block_t len; }; |
63f92ddc8
|
33 |
extern void f2fs_trace_pid(struct page *); |
05ca3632e
|
34 |
extern void f2fs_trace_ios(struct f2fs_io_info *, int); |
c05086506
|
35 |
extern void f2fs_build_trace_ios(void); |
351f4fba8
|
36 |
extern void f2fs_destroy_trace_ios(void); |
63f92ddc8
|
37 38 |
#else #define f2fs_trace_pid(p) |
05ca3632e
|
39 |
#define f2fs_trace_ios(i, n) |
c05086506
|
40 |
#define f2fs_build_trace_ios() |
351f4fba8
|
41 |
#define f2fs_destroy_trace_ios() |
63f92ddc8
|
42 43 44 |
#endif #endif /* __F2FS_TRACE_H__ */ |