|
Last change
on this file was
2,
checked in by jglee, 11 years ago
|
|
first commit
|
-
Property svn:executable set to
*
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | /* |
|---|
| 2 | * coda_statis.h |
|---|
| 3 | * |
|---|
| 4 | * CODA operation statistics |
|---|
| 5 | * |
|---|
| 6 | * (c) March, 1998 |
|---|
| 7 | * by Michihiro Kuramochi, Zhenyu Xia and Zhanyong Wan |
|---|
| 8 | * zhanyong.wan@yale.edu |
|---|
| 9 | * |
|---|
| 10 | */ |
|---|
| 11 | |
|---|
| 12 | #ifndef _CODA_PROC_H |
|---|
| 13 | #define _CODA_PROC_H |
|---|
| 14 | |
|---|
| 15 | void coda_sysctl_init(void); |
|---|
| 16 | void coda_sysctl_clean(void); |
|---|
| 17 | |
|---|
| 18 | #include <linux/sysctl.h> |
|---|
| 19 | #include <linux/coda.h> |
|---|
| 20 | |
|---|
| 21 | /* these four files are presented to show the result of the statistics: |
|---|
| 22 | * |
|---|
| 23 | * /proc/fs/coda/vfs_stats |
|---|
| 24 | * cache_inv_stats |
|---|
| 25 | * |
|---|
| 26 | * these four files are presented to reset the statistics to 0: |
|---|
| 27 | * |
|---|
| 28 | * /proc/sys/coda/vfs_stats |
|---|
| 29 | * cache_inv_stats |
|---|
| 30 | */ |
|---|
| 31 | |
|---|
| 32 | /* VFS operation statistics */ |
|---|
| 33 | struct coda_vfs_stats |
|---|
| 34 | { |
|---|
| 35 | /* file operations */ |
|---|
| 36 | int open; |
|---|
| 37 | int flush; |
|---|
| 38 | int release; |
|---|
| 39 | int fsync; |
|---|
| 40 | |
|---|
| 41 | /* dir operations */ |
|---|
| 42 | int readdir; |
|---|
| 43 | |
|---|
| 44 | /* inode operations */ |
|---|
| 45 | int create; |
|---|
| 46 | int lookup; |
|---|
| 47 | int link; |
|---|
| 48 | int unlink; |
|---|
| 49 | int symlink; |
|---|
| 50 | int mkdir; |
|---|
| 51 | int rmdir; |
|---|
| 52 | int rename; |
|---|
| 53 | int permission; |
|---|
| 54 | |
|---|
| 55 | /* symlink operatoins*/ |
|---|
| 56 | int follow_link; |
|---|
| 57 | int readlink; |
|---|
| 58 | }; |
|---|
| 59 | |
|---|
| 60 | /* cache invalidation statistics */ |
|---|
| 61 | struct coda_cache_inv_stats |
|---|
| 62 | { |
|---|
| 63 | int flush; |
|---|
| 64 | int purge_user; |
|---|
| 65 | int zap_dir; |
|---|
| 66 | int zap_file; |
|---|
| 67 | int zap_vnode; |
|---|
| 68 | int purge_fid; |
|---|
| 69 | int replace; |
|---|
| 70 | }; |
|---|
| 71 | |
|---|
| 72 | /* these global variables hold the actual statistics data */ |
|---|
| 73 | extern struct coda_vfs_stats coda_vfs_stat; |
|---|
| 74 | |
|---|
| 75 | #endif /* _CODA_PROC_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.