summaryrefslogtreecommitdiff
path: root/include/glibtop/sysdeps.h
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2008-05-24 09:50:04 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2008-05-24 09:50:04 +0000
commit90fc3ca780060c8c1b4a20fdc0c75789e485f28a (patch)
treefcd7faca41348d371ba7c5e02071531b0ace78fc /include/glibtop/sysdeps.h
parent99e9437b37fac98a71c2133da529f9d54af99871 (diff)
downloadlibgtop-90fc3ca780060c8c1b4a20fdc0c75789e485f28a.tar.gz
New API to retrieve process CPU affinity.
Linux implementation. svn path=/trunk/; revision=2748
Diffstat (limited to 'include/glibtop/sysdeps.h')
-rw-r--r--include/glibtop/sysdeps.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/glibtop/sysdeps.h b/include/glibtop/sysdeps.h
index 40f0b6b2..1060d1c9 100644
--- a/include/glibtop/sysdeps.h
+++ b/include/glibtop/sysdeps.h
@@ -52,8 +52,9 @@ G_BEGIN_DECLS
#define GLIBTOP_SYSDEPS_NETLIST 23
#define GLIBTOP_SYSDEPS_PROC_OPEN_FILES 24
#define GLIBTOP_SYSDEPS_PROC_WD 25
+#define GLIBTOP_SYSDEPS_PROC_AFFINITY 26
-#define GLIBTOP_MAX_SYSDEPS 26
+#define GLIBTOP_MAX_SYSDEPS 27
#define GLIBTOP_SYSDEPS_ALL ((1 << GLIBTOP_MAX_SYSDEPS) - 1)
@@ -88,6 +89,7 @@ struct _glibtop_sysdeps
guint64 netload; /* glibtop_netload */
guint64 ppp; /* glibtop_ppp */
guint64 proc_wd; /* glibtop_proc_wd */
+ guint64 proc_affinity; /* glibtop_proc_affinity */
};
void glibtop_get_sysdeps (glibtop_sysdeps *buf);