[PATCH][2.6.11-mm3] perfctr API update 6/9: cpu_control access, common

2005-03-12 Thread Mikael Pettersson
- Add declarations of common arch-specific domain numbers and
  corresponding data structures to . This just
  factors out common code, it does not impose any requirements
  on arch-specific code.

Signed-off-by: Mikael Pettersson <[EMAIL PROTECTED]>

/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.0 +0100
+++ linux-2.6.11-mm3.perfctr-cpu_control-access/include/linux/perfctr.h 
2005-03-12 20:01:39.0 +0100
@@ -60,6 +60,17 @@ struct vperfctr_control {
 #define VPERFCTR_CONTROL_RESUME0x03
 #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_REGS130 /* struct 
perfctr_cpu_reg[] */
+
 /* commands for sys_vperfctr_read() */
 #define VPERFCTR_READ_SUM  0x01
 #define VPERFCTR_READ_CONTROL  0x02
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH][2.6.11-mm3] perfctr API update 6/9: cpu_control access, common

2005-03-12 Thread Mikael Pettersson
- 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 [EMAIL PROTECTED]

/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.0 +0100
+++ linux-2.6.11-mm3.perfctr-cpu_control-access/include/linux/perfctr.h 
2005-03-12 20:01:39.0 +0100
@@ -60,6 +60,17 @@ struct vperfctr_control {
 #define VPERFCTR_CONTROL_RESUME0x03
 #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_REGS130 /* struct 
perfctr_cpu_reg[] */
+
 /* commands for sys_vperfctr_read() */
 #define VPERFCTR_READ_SUM  0x01
 #define VPERFCTR_READ_CONTROL  0x02
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/