00001
00008
00009
00010
00011
00012 #ifndef __RT_MON_INCLUDE_HISTOGRAM2D_H_
00013 #define __RT_MON_INCLUDE_HISTOGRAM2D_H_
00014
00015
00016 #include <l4/rt_mon/types.h>
00017
00018 EXTERN_C_BEGIN
00019
00039 rt_mon_histogram2d_t *
00040 rt_mon_hist2d_create(double low[2], double high[2], int bins[2], int layers,
00041 const char * name,
00042 const char * unit_ord,
00043 const char * unit_abs1, const char * unit_abs2,
00044 int clock);
00045
00054 void
00055 rt_mon_hist2d_insert_data(rt_mon_histogram2d_t * hist, rt_mon_time_t x[2],
00056 int layer, unsigned int val);
00057
00067 int
00068 inline rt_mon_hist2d_get_data(rt_mon_histogram2d_t * hist, rt_mon_time_t x[2],
00069 int layer);
00070
00077 void
00078 rt_mon_hist2d_free(rt_mon_histogram2d_t * hist);
00079
00089 void
00090 rt_mon_hist2d_reset(rt_mon_histogram2d_t * hist);
00091
00092
00098 void
00099 rt_mon_hist2d_dump(rt_mon_histogram2d_t * hist);
00100
00106 inline void
00107 rt_mon_hist2d_start(rt_mon_histogram2d_t * hist);
00108
00117 inline void
00118 rt_mon_hist2d_end(rt_mon_histogram2d_t * hist, rt_mon_time_t y, int layer);
00119
00120
00128 inline rt_mon_time_t
00129 rt_mon_hist2d_measure(rt_mon_histogram2d_t * hist);
00130
00138 void
00139 rt_mon_hist2d_avg(rt_mon_histogram2d_t * hist, double (* avg)[2], int layer);
00140
00141 EXTERN_C_END
00142
00143 #endif