Introduce a new header (pcpu.h) which defines the interfaces
for physical CPU statistics collection. This provides the
basic infrastructure needed to track per-CPU usage and will
be used in subsequent patches.
Signed-off-by: Jahan Murudi <jahan.murudi.zg@renesas.com>
---
tools/xentop/pcpu.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 tools/xentop/pcpu.h
diff --git a/tools/xentop/pcpu.h b/tools/xentop/pcpu.h
new file mode 100644
index 0000000000..a528177476
--- /dev/null
+++ b/tools/xentop/pcpu.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (C) 2025 Renesas Electronics Corporation
+ */
+
+#ifndef __XENTOP_PCPU_H__
+#define __XENTOP_PCPU_H__
+
+#include <sys/time.h>
+
+int update_pcpu_stats(const struct timeval *now, unsigned int delay);
+int get_pcpu_count(void);
+float get_pcpu_usage(int cpu_index);
+int has_pcpu_data(void);
+void free_pcpu_stats(void);
+
+#endif /* __XENTOP_PCPU_H__ */
--
2.34.1