diff options
| author | Justin Pettit <jpettit@nicira.com> | 2009-07-10 15:09:41 -0700 |
|---|---|---|
| committer | Justin Pettit <jpettit@nicira.com> | 2009-07-10 15:09:41 -0700 |
| commit | f5c6854a73cb6242297e3aac02ccf2d6a22876b0 (patch) | |
| tree | a559a6884d57b88d32d2fa3bb04d08db12668a25 /lib/timeval.c | |
| parent | 10bf9f637b0c98438772ae01366a8da8e91d8c1c (diff) | |
| download | openvswitch-f5c6854a73cb6242297e3aac02ccf2d6a22876b0.tar.gz | |
Provide ability to retrieve coverage information
Previously, there was no way to induce coverage information to be
displayed; it would only print when the system noticed unusual delays
between polling intervals. Now, production of coverage logs can be
forced with "coverage/log" command in ovs-appctl. Coverage counters may
be reset with "coverage/clear".
Diffstat (limited to 'lib/timeval.c')
| -rw-r--r-- | lib/timeval.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/timeval.c b/lib/timeval.c index 61f2227f0..4c34a1731 100644 --- a/lib/timeval.c +++ b/lib/timeval.c @@ -63,6 +63,8 @@ time_init(void) return; } + coverage_init(); + inited = true; gettimeofday(&now, NULL); tick = false; @@ -292,7 +294,7 @@ log_poll_interval(long long int last_wakeup, const struct rusage *last_rusage) rusage.ru_nvcsw - last_rusage->ru_nvcsw, rusage.ru_nivcsw - last_rusage->ru_nivcsw); } - coverage_log(VLL_WARN); + coverage_log(VLL_WARN, true); } /* Update exponentially weighted moving average. With these parameters, a |
