4 * CODA operation statistics
7 * by Michihiro Kuramochi, Zhenyu Xia and Zhanyong Wan
8 * zhanyong.wan@yale.edu
15 void coda_sysctl_init(void);
16 void coda_sysctl_clean(void);
18 #include <linux/sysctl.h>
19 #include <linux/coda_fs_i.h>
20 #include <linux/coda.h>
22 /* these four files are presented to show the result of the statistics:
24 * /proc/fs/coda/vfs_stats
27 * these four files are presented to reset the statistics to 0:
29 * /proc/sys/coda/vfs_stats
33 /* VFS operation statistics */
45 /* inode operations */
56 /* symlink operatoins*/
61 /* cache invalidation statistics */
62 struct coda_cache_inv_stats
73 /* these global variables hold the actual statistics data */
74 extern struct coda_vfs_stats coda_vfs_stat
;
75 extern struct coda_cache_inv_stats coda_cache_inv_stat
;
77 /* reset statistics to 0 */
78 void reset_coda_vfs_stats( void );
79 void reset_coda_cache_inv_stats( void );
81 /* like coda_dointvec, these functions are to be registered in the ctl_table
82 * data structure for /proc/sys/... files
84 int do_reset_coda_vfs_stats( ctl_table
* table
, int write
, struct file
* filp
,
85 void * buffer
, size_t * lenp
);
86 int do_reset_coda_cache_inv_stats( ctl_table
* table
, int write
,
87 struct file
* filp
, void * buffer
,
90 /* these functions are called to form the content of /proc/fs/coda/... files */
91 int coda_vfs_stats_get_info( char * buffer
, char ** start
, off_t offset
,
93 int coda_cache_inv_stats_get_info( char * buffer
, char ** start
, off_t offset
,
97 #endif /* _CODA_PROC_H */