From 5edfb77dd3a164bb9d2d40c6604faa6c9f3dce15 Mon Sep 17 00:00:00 2001 From: fabient Date: Wed, 28 Mar 2012 20:58:30 +0000 Subject: Add software PMC support. New kernel events can be added at various location for sampling or counting. This will for example allow easy system profiling whatever the processor is with known tools like pmcstat(8). Simultaneous usage of software PMC and hardware PMC is possible, for example looking at the lock acquire failure, page fault while sampling on instructions. Sponsored by: NETASQ MFC after: 1 month --- sys/powerpc/include/pmc_mdep.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/powerpc/include') diff --git a/sys/powerpc/include/pmc_mdep.h b/sys/powerpc/include/pmc_mdep.h index 37531f2..3456368 100644 --- a/sys/powerpc/include/pmc_mdep.h +++ b/sys/powerpc/include/pmc_mdep.h @@ -7,7 +7,8 @@ #ifndef _MACHINE_PMC_MDEP_H_ #define _MACHINE_PMC_MDEP_H_ -#define PMC_MDEP_CLASS_INDEX_PPC7450 0 +#define PMC_MDEP_CLASS_INDEX_PPC7450 1 + union pmc_md_op_pmcallocate { uint64_t __pad[4]; }; -- cgit v1.1