diff options
author | Anita Zhang <the.anitazha@gmail.com> | 2020-09-08 23:46:27 -0700 |
---|---|---|
committer | Anita Zhang <the.anitazha@gmail.com> | 2020-10-07 17:12:24 -0700 |
commit | 5c616ecfcde86105e72c11ad0916e4f3e157a382 (patch) | |
tree | ff71270f17765ad400f93c8b9eb60cf7357fdf4a /src/oom/oomd-util.h | |
parent | fe8d22fb09ae6e5c4f27970bf29bf317d3c9d86a (diff) | |
download | systemd-5c616ecfcde86105e72c11ad0916e4f3e157a382.tar.gz |
systemd-oomd: dbus hook ups and oomctl CLI
Diffstat (limited to 'src/oom/oomd-util.h')
-rw-r--r-- | src/oom/oomd-util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/oom/oomd-util.h b/src/oom/oomd-util.h index 6d34d91cc2..cfd717a018 100644 --- a/src/oom/oomd-util.h +++ b/src/oom/oomd-util.h @@ -106,3 +106,7 @@ int oomd_system_context_acquire(const char *proc_swaps_path, OomdSystemContext * * `old_h` is used to get data used to calculate prior interval information. `old_h` can be NULL in which case there * was no prior data to reference. */ int oomd_insert_cgroup_context(Hashmap *old_h, Hashmap *new_h, const char *path); + +void oomd_dump_swap_cgroup_context(const OomdCGroupContext *ctx, FILE *f, const char *prefix); +void oomd_dump_memory_pressure_cgroup_context(const OomdCGroupContext *ctx, FILE *f, const char *prefix); +void oomd_dump_system_context(const OomdSystemContext *ctx, FILE *f, const char *prefix); |