Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
13186379707 authored Mar 22, 2024
1 parent 3596df7 commit f5f9947
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
16 changes: 16 additions & 0 deletions MagicEyes/src/backend/fs/fs_watcher/include/open.h
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 */
10 changes: 10 additions & 0 deletions MagicEyes/src/backend/fs/fs_watcher/include/read.h
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 */
9 changes: 9 additions & 0 deletions MagicEyes/src/backend/fs/fs_watcher/include/write.h
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 */

0 comments on commit f5f9947

Please sign in to comment.