X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Ftimeval.h;h=5a7b6e25c62aeabc09b3b1089913446a828a8576;hb=248a2130b0374d046057b2995c645c23172d4b84;hp=cb5191c5ee26fdaa3e3fab513221ee2aa331516f;hpb=361906b1e2c6482d77280f345d3e42048d8c2700;p=openvswitch diff --git a/lib/timeval.h b/lib/timeval.h index cb5191c5..5a7b6e25 100644 --- a/lib/timeval.h +++ b/lib/timeval.h @@ -25,6 +25,7 @@ extern "C" { #endif +struct ds; struct pollfd; struct timespec; struct timeval; @@ -54,11 +55,13 @@ BUILD_ASSERT_DECL(TYPE_IS_SIGNED(time_t)); * * Also false on systems (e.g. ESX) that don't support setting up timers based * on a monotonically increasing clock. */ +#ifndef CACHE_TIME #if defined ESX || (defined __x86_64__ && defined LINUX_DATAPATH) #define CACHE_TIME 0 #else #define CACHE_TIME 1 #endif +#endif /* ifndef CACHE_TIME */ void time_disable_restart(void); void time_enable_restart(void); @@ -81,6 +84,7 @@ long long int timeval_to_msec(const struct timeval *); void xgettimeofday(struct timeval *); int get_cpu_usage(void); +void format_backtraces(struct ds *, size_t min_count); long long int time_boot_msec(void);