diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-19 16:36:05 -0700 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-19 16:36:05 -0700 |
| commit | cf744958ba2c89b5670ac3a0ee1aa92be630cf15 (patch) | |
| tree | 3755842b26b18cffc66c64e75116dc0adafa04a0 /lib/thread.h | |
| parent | c9506a0a6ea4a1729aca9ebdca425b902479e7cd (diff) | |
ospfd-spf-stats.patch
Compute and display SPF execution statistics
Detailed SPF statistics, all around time spent executing various pieces of SPF
such as the SPF algorithm itself, installing routes, pruning unreachable networks
etc.
Reason codes for firing up SPF are:
R - Router LSA, N - Network LSA, S - Summary LSA, ABR - ABR status change,
ASBR - ASBR Status Change, AS - ASBR Summary, M - MaxAge
Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
Reviewed-by: JR Rivers <jrrivers@cumulusnetworks.com>
Reviewed-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Reviewed-by: Ayan Banerjee <ayan@cumulusnetworks.com>
Diffstat (limited to 'lib/thread.h')
| -rw-r--r-- | lib/thread.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/thread.h b/lib/thread.h index dbf5f25b80..bc7eaef447 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -208,6 +208,7 @@ extern struct thread *thread_fetch (struct thread_master *, struct thread *); extern void thread_call (struct thread *); extern unsigned long thread_timer_remain_second (struct thread *); extern int thread_should_yield (struct thread *); +extern unsigned long timeval_elapsed (struct timeval a, struct timeval b); /* Internal libzebra exports */ extern void thread_getrusage (RUSAGE_T *); |
