CLEANUP: debug: always report harmless/want_rdv even without threads

This way we have a more consistent output and we can remove annoying
ifdefs.
This commit is contained in:
Willy Tarreau 2019-05-22 08:52:58 +02:00
parent 441259c561
commit 8b35ba54bc

View File

@ -55,12 +55,10 @@ void ha_thread_dump(struct buffer *buf, int thr, int calling_tid)
!!(fd_cache_mask & thr_bit), !!(fd_cache_mask & thr_bit),
!!(task_profiling_mask & thr_bit)); !!(task_profiling_mask & thr_bit));
#ifdef USE_THREAD
chunk_appendf(buf, chunk_appendf(buf,
" harmless=%d wantrdv=%d", " harmless=%d wantrdv=%d",
!!(threads_harmless_mask & thr_bit), !!(threads_harmless_mask & thr_bit),
!!(threads_want_rdv_mask & thr_bit)); !!(threads_want_rdv_mask & thr_bit));
#endif
chunk_appendf(buf, "\n"); chunk_appendf(buf, "\n");
chunk_appendf(buf, " cpu_ns: poll=%llu now=%llu diff=%llu\n", p, n, n-p); chunk_appendf(buf, " cpu_ns: poll=%llu now=%llu diff=%llu\n", p, n, n-p);