MINOR: stats/debug: maintain a counter of debug commands issued
Debug commands will usually mark the fate of the process. We'd rather
have them counted and visible in a core or in stats output than trying
to guess how a flag combination could happen. The counter is only
incremented when the command is about to be issued however, so that
failed attempts are ignored.
diff --git a/include/common/debug.h b/include/common/debug.h
index f43258e..df85522 100644
--- a/include/common/debug.h
+++ b/include/common/debug.h
@@ -71,6 +71,7 @@
struct task;
struct buffer;
extern volatile unsigned long threads_to_dump;
+extern unsigned int debug_commands_issued;
void ha_task_dump(struct buffer *buf, const struct task *task, const char *pfx);
void ha_thread_dump(struct buffer *buf, int thr, int calling_tid);
void ha_thread_dump_all_to_trash();
diff --git a/include/types/stats.h b/include/types/stats.h
index 8817746..52ea18d 100644
--- a/include/types/stats.h
+++ b/include/types/stats.h
@@ -327,6 +327,7 @@
INF_FAILED_RESOLUTIONS,
INF_TOTAL_BYTES_OUT,
INF_BYTES_OUT_RATE,
+ INF_DEBUG_COMMANDS_ISSUED,
/* must always be the last one */
INF_TOTAL_FIELDS