forked from linuxkerneltravel/lmp
-
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.
- Loading branch information
1 parent
3596df7
commit f5f9947
Showing
3 changed files
with
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef __OPEN_H | ||
#define __OPEN_H | ||
|
||
#ifndef TASK_COMM_LEN | ||
#define TASK_COMM_LEN 16 | ||
#endif | ||
|
||
struct fs_t { | ||
int pid; | ||
unsigned long long uid; | ||
int fd; | ||
unsigned long long ts; | ||
char comm[TASK_COMM_LEN]; | ||
}; | ||
|
||
#endif /* __OPEN_H */ |
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,10 @@ | ||
#ifndef __READ_H | ||
#define __READ_H | ||
|
||
|
||
struct event { | ||
int pid; | ||
unsigned long long duration_ns; | ||
}; | ||
|
||
#endif /* __READ_H */ |
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,9 @@ | ||
#ifndef __WRITE_H | ||
#define __WRITE_H | ||
|
||
struct fs_t { | ||
int pid; | ||
unsigned long long duration_ns; | ||
}; | ||
|
||
#endif /* __WRITE_H */ |