diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2013-11-18 23:52:02 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2014-09-15 18:38:56 +0200 |
commit | 615f9f18fc025757a255f936748fc1e86e922783 (patch) | |
tree | b9cd79ef71984932f4eb5f73437f9593ad2a2604 /lib/thread.h | |
parent | 3493b7731b750cbc62f00be94b624a08ccccf0b2 (diff) | |
download | quagga-615f9f18fc025757a255f936748fc1e86e922783.tar.bz2 quagga-615f9f18fc025757a255f936748fc1e86e922783.tar.xz |
lib: include thread information in backtraces
now that we know what thread we're currently executing, let's add that
information to SEGV / assert backtraces.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/thread.h')
-rw-r--r-- | lib/thread.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/thread.h b/lib/thread.h index a088b472..9743a22d 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -234,4 +234,8 @@ extern unsigned long thread_consumed_time(RUSAGE_T *after, RUSAGE_T *before, extern struct timeval recent_time; /* Similar to recent_time, but a monotonically increasing time value */ extern struct timeval recent_relative_time (void); + +/* only for use in logging functions! */ +extern struct thread *thread_current; + #endif /* _ZEBRA_THREAD_H */ |