2 * Copyright (c) 2008 - Secure Endpoints Inc.
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.
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.
19 #ifndef CM_PERFORMANCE_H
20 #define CM_PERFORMANCE_H
21 typedef struct cm_fid_stats {
24 osi_hyper_t fileLength;
27 struct cm_fid_stats * nextp;
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
36 extern void cm_PerformanceTuningInit(void);
37 extern void cm_PerformanceTuningCheck(void);
38 extern void cm_PerformancePrintReport(void);
40 #endif /* CM_PERFORMANCE_H */