Commit 795aceb8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make it possible (at great performance loss) to force straight

time sequencing of shmlog records for debugging purposes.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3570 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 375ef12c
...@@ -745,6 +745,7 @@ static const struct parspec input_parspec[] = { ...@@ -745,6 +745,7 @@ static const struct parspec input_parspec[] = {
#ifdef HAVE_ABORT2 #ifdef HAVE_ABORT2
" 0x00008000 - panic to abort2().\n" " 0x00008000 - panic to abort2().\n"
#endif #endif
" 0x00010000 - synchronize shmlog.\n"
"Use 0x notation and do the bitor in your head :-)\n", "Use 0x notation and do the bitor in your head :-)\n",
0, 0,
"0", "bitmap" }, "0", "bitmap" },
......
...@@ -231,6 +231,8 @@ WSLR(struct worker *w, enum shmlogtag tag, int id, txt t) ...@@ -231,6 +231,8 @@ WSLR(struct worker *w, enum shmlogtag tag, int id, txt t)
memcpy(p + SHMLOG_DATA, t.b, l); memcpy(p + SHMLOG_DATA, t.b, l);
vsl_hdr(tag, p, l, id); vsl_hdr(tag, p, l, id);
w->wlr++; w->wlr++;
if (params->diag_bitmap & 0x10000)
WSL_Flush(w, 0);
} }
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
...@@ -269,6 +271,8 @@ WSL(struct worker *w, enum shmlogtag tag, int id, const char *fmt, ...) ...@@ -269,6 +271,8 @@ WSL(struct worker *w, enum shmlogtag tag, int id, const char *fmt, ...)
w->wlr++; w->wlr++;
} }
va_end(ap); va_end(ap);
if (params->diag_bitmap & 0x10000)
WSL_Flush(w, 0);
} }
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
......
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