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 typedef struct cm_fid_stats {
22 osi_hyper_t fileLength;
25 struct cm_fid_stats * nextp;
28 #define CM_FIDSTATS_FLAG_HAVE_SCACHE 0x01 /* set if cm_scache_t present */
29 #define CM_FIDSTATS_FLAG_HAVE_VOLUME 0x02 /* set on (vnode = 1) if cm_vol_t present */
30 #define CM_FIDSTATS_FLAG_RO 0x04
31 #define CM_FIDSTATS_FLAG_PURERO 0x08
32 #define CM_FIDSTATS_FLAG_CALLBACK 0x10
34 extern void cm_PerformanceTuningCheck(void);
36 extern void cm_PerformancePrintReport(void);