diff options
Diffstat (limited to 'lib/libmemstat/memstat.c')
-rw-r--r-- | lib/libmemstat/memstat.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libmemstat/memstat.c b/lib/libmemstat/memstat.c index f2764ff..cbab40a 100644 --- a/lib/libmemstat/memstat.c +++ b/lib/libmemstat/memstat.c @@ -143,6 +143,7 @@ memstat_mt_reset_stats(struct memory_type *mtp) mtp->mt_failures = 0; mtp->mt_zonefree = 0; + mtp->mt_kegfree = 0; for (i = 0; i < MEMSTAT_MAXCPU; i++) { mtp->mt_percpu_alloc[i].mtp_memalloced = 0; @@ -292,6 +293,13 @@ memstat_get_zonefree(const struct memory_type *mtp) } uint64_t +memstat_get_kegfree(const struct memory_type *mtp) +{ + + return (mtp->mt_kegfree); +} + +uint64_t memstat_get_percpu_memalloced(const struct memory_type *mtp, int cpu) { |