Messages in this thread Patch in this message | | | Date | Sun, 13 Mar 2005 00:22:21 +0100 (MET) | From | Mikael Pettersson <> | Subject | [PATCH][2.6.11-mm3] perfctr API update 6/9: cpu_control access, common |
| |
- 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |