diff options
author | Ben Pfaff <blp@nicira.com> | 2012-07-18 10:59:52 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-07-18 10:59:52 -0700 |
commit | 35a22d8c10ae5ab8d0720864f552a21168b08375 (patch) | |
tree | c5a8fe6419d7ce7183defc9cf925f2fc70974c97 /vswitchd/system-stats.h | |
parent | 57c8677b511908b3120df3cbf44244423cfefc34 (diff) | |
download | openvswitch-35a22d8c10ae5ab8d0720864f552a21168b08375.tar.gz |
system-stats: Run as part of worker process.
The stats gathering can be time-consuming in some cases, so it's better to
do it in the worker process.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'vswitchd/system-stats.h')
-rw-r--r-- | vswitchd/system-stats.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vswitchd/system-stats.h b/vswitchd/system-stats.h index 9f965c632..83b4bcbcf 100644 --- a/vswitchd/system-stats.h +++ b/vswitchd/system-stats.h @@ -16,8 +16,10 @@ #ifndef VSWITCHD_SYSTEM_STATS #define VSWITCHD_SYSTEM_STATS 1 -struct smap; +#include <stdbool.h> -void get_system_stats(struct smap *); +void system_stats_enable(bool enable); +struct smap *system_stats_run(void); +void system_stats_wait(void); #endif /* vswitchd/system-stats.h */ |