X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fstatev.c;h=44bfa27117e4e32dd301f1815425ee6f7ea47696;hb=541e9f7783a1d0c28748eac4779d42d08f2062f9;hp=8ca9a0f02887daa4c3d6ef4ea87cf5c635bf9df1;hpb=e736ec171f5a02484ec01a2cebc93cf5b84aeec4;p=libfirm diff --git a/ir/stat/statev.c b/ir/stat/statev.c index 8ca9a0f02..44bfa2711 100644 --- a/ir/stat/statev.c +++ b/ir/stat/statev.c @@ -24,9 +24,7 @@ * @date 17.06.2007 * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include #include @@ -39,9 +37,7 @@ #include "irprintf.h" #include "statev.h" -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #ifdef HAVE_REGEX_H #define FIRM_HAVE_REGEX @@ -67,18 +63,16 @@ static FILE* stat_ev_file = NULL; #endif /* FIRM_HAVE_LIBZ */ -int stat_ev_enabled = 0; -int stat_ev_timer_sp = 0; -timing_ticks_t stat_ev_timer_elapsed[MAX_TIMER]; -timing_ticks_t stat_ev_timer_start[MAX_TIMER]; -timing_sched_env_t stat_ev_sched_rt; -timing_sched_env_t stat_ev_sched_normal; +int stat_ev_enabled = 0; +int stat_ev_timer_sp = 0; +timing_ticks_t stat_ev_timer_elapsed[MAX_TIMER]; +timing_ticks_t stat_ev_timer_start[MAX_TIMER]; #ifdef FIRM_HAVE_REGEX #include static regex_t regex; static regex_t *filter = NULL; -static INLINE int key_matches(const char *key) +static inline int key_matches(const char *key) { if (!filter) return 1; @@ -88,7 +82,7 @@ static INLINE int key_matches(const char *key) #else static char filter[128] = { '\0' }; -static INLINE int key_matches(const char *key) +static inline int key_matches(const char *key) { int i = 0; @@ -143,8 +137,6 @@ void stat_ev_begin(const char *prefix, const char *filt) } stat_ev_enabled = stat_ev_file != NULL; - timing_sched_get(&stat_ev_sched_normal); - timing_sched_prepare_max_prio(&stat_ev_sched_rt); } void stat_ev_end(void)