summaryrefslogtreecommitdiff
path: root/overlay/cpu-top.h
diff options
context:
space:
mode:
Diffstat (limited to 'overlay/cpu-top.h')
-rw-r--r--overlay/cpu-top.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/overlay/cpu-top.h b/overlay/cpu-top.h
new file mode 100644
index 00000000..4687f902
--- /dev/null
+++ b/overlay/cpu-top.h
@@ -0,0 +1,13 @@
+#include <stdint.h>
+
+struct cpu_top {
+ uint8_t busy;
+
+ int count;
+ struct cpu_stat {
+ uint64_t user, nice, sys, idle;
+ uint64_t total;
+ } stat[2];
+};
+
+int cpu_top_update(struct cpu_top *cpu);