forked from microsoft/WSL2-Linux-Kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch adds: o initial trace.c and trace.h with skeleton functions o Kconfig and Makefile to activate this feature Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
- Loading branch information
Jaegeuk Kim
committed
Jan 10, 2015
1 parent
cf04e8e
commit 63f92dd
Showing
4 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* 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. | ||
*/ | ||
#include <linux/fs.h> | ||
#include <linux/f2fs_fs.h> | ||
#include <linux/sched.h> | ||
|
||
#include "f2fs.h" | ||
#include "trace.h" | ||
|
||
void f2fs_trace_pid(struct page *page) | ||
{ | ||
} | ||
|
||
void f2fs_trace_ios(struct page *page, struct f2fs_io_info *fio, int flush) | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* 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> | ||
|
||
extern void f2fs_trace_pid(struct page *); | ||
extern void f2fs_trace_ios(struct page *, struct f2fs_io_info *, int); | ||
#else | ||
#define f2fs_trace_pid(p) | ||
#define f2fs_trace_ios(p, i, n) | ||
|
||
#endif | ||
#endif /* __F2FS_TRACE_H__ */ |