Windows: remove extraneous "pingCount" format param
[openafs.git] / src / WINNT / afsd / cm_performance.h
1 /*
2  *  Copyright (c) 2008 - Secure Endpoints Inc.
3  */
4
5 /*
6  *  The performance module when activated collects
7  *  data necessary to analyze the usage of the cache
8  *  manager and establish recommendations for future
9  *  cache manager configuration changes.
10  *
11  *  As a starting point, the package will collect
12  *  a list of all FIDs accessed during the session
13  *  which will be used to periodically analyzed the
14  *  contents of the cm_buf_t, cm_scache_t, cm_volume_t
15  *  and cm_cell_t pools.
16
17  */
18
19 #ifndef CM_PERFORMANCE_H
20 #define CM_PERFORMANCE_H
21 typedef struct cm_fid_stats {
22     cm_fid_t    fid;
23     afs_uint32  fileType;
24     osi_hyper_t  fileLength;
25     afs_uint32  flags;
26     afs_uint32  buffers;
27     struct cm_fid_stats * nextp;
28 } cm_fid_stats_t;
29
30 #define CM_FIDSTATS_FLAG_HAVE_SCACHE 0x01  /* set if cm_scache_t present */
31 #define CM_FIDSTATS_FLAG_HAVE_VOLUME 0x02  /* set on (vnode = 1) if cm_vol_t present */
32 #define CM_FIDSTATS_FLAG_RO          0x04
33 #define CM_FIDSTATS_FLAG_PURERO      0x08
34 #define CM_FIDSTATS_FLAG_CALLBACK    0x10
35
36 extern void cm_PerformanceTuningInit(void);
37 extern void cm_PerformanceTuningCheck(void);
38 extern void cm_PerformancePrintReport(void);
39
40 #endif /* CM_PERFORMANCE_H */
41