diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2025-01-01 16:21:13 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2025-01-01 19:32:12 -0800 |
commit | 99df2027777cb732918ca8aaaa5efcfd75b615d3 (patch) | |
tree | d07cf6a4d331a72ad2c5e0bbb54b5c053c86f8ac /src/libvmon/vmon.h | |
parent | c2b495ecb3a0c42bd02398e3f70fb8112d8dbc29 (diff) |
libvmon: add vmon_dump_procs() debugging aid
It's handy to see what the libvmon hash table state of the world
is when trying to understand brokenness, but also as a tool for
verifying things aren't out of sync with what the hierarchical
view contains.
Diffstat (limited to 'src/libvmon/vmon.h')
-rw-r--r-- | src/libvmon/vmon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libvmon/vmon.h b/src/libvmon/vmon.h index 325a44a..974d27f 100644 --- a/src/libvmon/vmon.h +++ b/src/libvmon/vmon.h @@ -4,6 +4,7 @@ #include <sys/types.h> #include <dirent.h> #include <stdint.h> +#include <stdio.h> /* just for vmon_dump_procs() */ #include <string.h> /* I use strcmp() in the type comparator definitions */ #include "bitmap.h" @@ -308,5 +309,6 @@ void vmon_destroy(vmon_t *); vmon_proc_t * vmon_proc_monitor(vmon_t *, vmon_proc_t *, int, vmon_proc_wants_t, void (*)(vmon_t *, void *, vmon_proc_t *, void *), void *); void vmon_proc_unmonitor(vmon_t *, vmon_proc_t *, void (*)(vmon_t *, void *, vmon_proc_t *, void *), void *); int vmon_sample(vmon_t *); +void vmon_dump_procs(vmon_t *vmon, FILE *out); #endif |