All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][2.6.11-mm3] perfctr API update 6/9: cpu_control access, common
@ 2005-03-12 23:22 Mikael Pettersson
  0 siblings, 0 replies; only message in thread
From: Mikael Pettersson @ 2005-03-12 23:22 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

- Add declarations of common arch-specific domain numbers and
  corresponding data structures to <linux/perfctr.h>. This just
  factors out common code, it does not impose any requirements
  on arch-specific code.

Signed-off-by: Mikael Pettersson <mikpe@csd.uu.se>

/Mikael

 include/linux/perfctr.h |   11 +++++++++++
 1 files changed, 11 insertions(+)

diff -rupN linux-2.6.11-mm3.perfctr-cpu_control_header/include/linux/perfctr.h linux-2.6.11-mm3.perfctr-cpu_control-access/include/linux/perfctr.h
--- linux-2.6.11-mm3.perfctr-cpu_control_header/include/linux/perfctr.h	2005-03-12 19:26:26.000000000 +0100
+++ linux-2.6.11-mm3.perfctr-cpu_control-access/include/linux/perfctr.h	2005-03-12 20:01:39.000000000 +0100
@@ -60,6 +60,17 @@ struct vperfctr_control {
 #define VPERFCTR_CONTROL_RESUME		0x03
 #define VPERFCTR_CONTROL_CLEAR		0x04
 
+/* common description of an arch-specific 32-bit control register */
+struct perfctr_cpu_reg {
+	unsigned int nr;
+	unsigned int value;
+};
+
+/* domain numbers for common arch-specific control data */
+#define PERFCTR_DOMAIN_CPU_CONTROL	128	/* struct perfctr_cpu_control_header */
+#define PERFCTR_DOMAIN_CPU_MAP		129	/* unsigned int[] */
+#define PERFCTR_DOMAIN_CPU_REGS		130	/* struct perfctr_cpu_reg[] */
+
 /* commands for sys_vperfctr_read() */
 #define VPERFCTR_READ_SUM	0x01
 #define VPERFCTR_READ_CONTROL	0x02

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-12 23:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-12 23:22 [PATCH][2.6.11-mm3] perfctr API update 6/9: cpu_control access, common Mikael Pettersson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.