Commit 9efd7fca authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Include the current time of the panic in the panic output

Show both the real and the monotonic time in the panic output when the
panic is created. This is useful to have something to compare other
panic timestamps against.

The existing timestamp in the panic output is recorded by the
management process at the time of receiving the panic from the child
process. Due to processing and possible core dump creation, this time
isn't very useful for comparison purposes.
parent 4ec789af
......@@ -39,6 +39,8 @@
#include <stdlib.h>
#include <signal.h>
#include "vtim.h"
#include "cache.h"
#include "cache_transport.h"
......@@ -629,6 +631,8 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
VSB_printf(pan_vsb, "version = %s\n", VCS_version);
VSB_printf(pan_vsb, "ident = %s,%s\n",
VSB_data(vident) + 1, Waiter_GetName());
VSB_printf(pan_vsb, "now = %f (mono), %f (real)\n",
VTIM_mono(), VTIM_real());
pan_backtrace(pan_vsb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment