From: Ben Gras Date: Fri, 9 Jan 2009 21:40:29 +0000 (+0000) Subject: cprofile always on; data type and definitions to include file X-Git-Tag: v3.1.4~145 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch05.html?a=commitdiff_plain;h=b82588848deb26b30ec110d87012906defb32c67;p=minix.git cprofile always on; data type and definitions to include file --- diff --git a/include/minix/profile.h b/include/minix/profile.h index 91193a4b9..b242dae0c 100644 --- a/include/minix/profile.h +++ b/include/minix/profile.h @@ -31,8 +31,6 @@ struct { #endif /* SPROFILE */ -#if CPROFILE - #include # define PROF_GET 2 /* get call profiling tables */ @@ -97,8 +95,6 @@ struct cprof_tbl_s { u64_t cycles; /* execution time of path, in cycles */ } cprof_tbl_inst; -#endif /* CPROFILE */ - _PROTOTYPE( int sprofile, (int action, int size, int freq, void *ctl_ptr, void *mem_ptr) ); diff --git a/include/minix/sysutil.h b/include/minix/sysutil.h index e2f87878a..31a1edb01 100644 --- a/include/minix/sysutil.h +++ b/include/minix/sysutil.h @@ -73,9 +73,10 @@ struct util_timingdata { unsigned long lock_timings[TIMING_POINTS]; unsigned long lock_timings_range[2]; unsigned long binsize, resets, misses, measurements; + unsigned long starttimes[2]; /* nonzero if running */ }; -typedef struct util_timingdata util_timingdata_t[TIMING_CATEGORIES]; +typedef struct util_timingdata util_timingdata_t; #endif /* _MINIX_SYSUTIL_H */