summaryrefslogtreecommitdiffstats
path: root/pcp/Platform.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-03-17 09:54:15 +1100
committerNathan Scott <nathans@redhat.com>2021-06-09 17:09:29 +1000
commitb424a5b137797ef1b921b7ed1e6ee6521b7b65b0 (patch)
treeb49def5a70ffa17fddafcc9faa715bdbee1ece23 /pcp/Platform.h
parentd3af4e670d65a4d7b4a0509efd53473578afb96c (diff)
Implement shared memory support on the PCP platform
Uses the mem.util.shared metric (Shmem from meminfo).
Diffstat (limited to 'pcp/Platform.h')
-rw-r--r--pcp/Platform.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pcp/Platform.h b/pcp/Platform.h
index 4d66d888..1661be77 100644
--- a/pcp/Platform.h
+++ b/pcp/Platform.h
@@ -3,7 +3,7 @@
/*
htop - pcp/Platform.h
(C) 2014 Hisham H. Muhammad
-(C) 2020 htop dev team
+(C) 2020-2021 htop dev team
(C) 2020-2021 Red Hat, Inc. All Rights Reserved.
Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
@@ -125,6 +125,7 @@ typedef enum Metric_ {
PCP_MEM_FREE, /* mem.util.free */
PCP_MEM_BUFFERS, /* mem.util.bufmem */
PCP_MEM_CACHED, /* mem.util.cached */
+ PCP_MEM_SHARED, /* mem.util.shared */
PCP_MEM_AVAILABLE, /* mem.util.available */
PCP_MEM_SRECLAIM, /* mem.util.slabReclaimable */
PCP_MEM_SWAPCACHED, /* mem.util.swapCached */

© 2014-2024 Faster IT GmbH | imprint | privacy policy