Add Cell support to common header files
perfmon.h, pfmlib.h :add parameter definitions
pfmlib_comp.h, pfmlib_os.h :add include files
pfmlib_priv.h, pfmlib_common.c :add structure definitions
Signed-off-by: Yoshio Funayama <[EMAIL PROTECTED]>
Signed-off-by: Takayuki Uchikawa <[EMAIL PROTECTED]>
Index: libpfm-3.2-070725/include/perfmon/perfmon.h
===================================================================
--- libpfm-3.2-070725_org/include/perfmon/perfmon.h
+++ libpfm-3.2-070725/include/perfmon/perfmon.h
@@ -31,6 +31,10 @@ extern "C" {
#include <perfmon/perfmon_powerpc.h>
#endif
+#ifdef __cell__
+#include <perfmon/perfmon_powerpc.h>
+#endif
+
#ifdef __mips__
#include <perfmon/perfmon_mips64.h>
#endif
@@ -322,6 +326,10 @@ extern int pfm_unload_context(int fd);
#define __NR_pfm_create_context 309
#endif
+#ifdef __cell__
+#define __NR_pfm_create_context 309
+#endif
+
#ifdef __crayx2
#define __NR_pfm_create_context 294
#endif
Index: libpfm-3.2-070725/include/perfmon/pfmlib.h
===================================================================
--- libpfm-3.2-070725_org/include/perfmon/pfmlib.h
+++ libpfm-3.2-070725/include/perfmon/pfmlib.h
@@ -223,6 +223,8 @@ extern int pfm_get_inst_retired_event(pf
#define PFMLIB_CRAYX2_PMU 96 /* Cray X2 */
+#define PFMLIB_CELL_PMU 100 /* CELL */
+
/*
* pfmlib error codes
*/
Index: libpfm-3.2-070725/include/perfmon/pfmlib_comp.h
===================================================================
--- libpfm-3.2-070725_org/include/perfmon/pfmlib_comp.h
+++ libpfm-3.2-070725/include/perfmon/pfmlib_comp.h
@@ -42,6 +42,10 @@
#include <perfmon/pfmlib_comp_powerpc.h>
#endif
+#ifdef __cell__
+#include <perfmon/pfmlib_comp_powerpc.h>
+#endif
+
#ifdef __crayx2
#include <perfmon/pfmlib_comp_crayx2.h>
#endif
Index: libpfm-3.2-070725/include/perfmon/pfmlib_os.h
===================================================================
--- libpfm-3.2-070725_org/include/perfmon/pfmlib_os.h
+++ libpfm-3.2-070725/include/perfmon/pfmlib_os.h
@@ -42,6 +42,10 @@
#include <perfmon/pfmlib_os_powerpc.h>
#endif
+#ifdef __cell__
+#include <perfmon/pfmlib_os_powerpc.h>
+#endif
+
#ifdef __crayx2
#include <perfmon/pfmlib_os_crayx2.h>
#endif
Index: libpfm-3.2-070725/lib/pfmlib_common.c
===================================================================
--- libpfm-3.2-070725_org/lib/pfmlib_common.c
+++ libpfm-3.2-070725/lib/pfmlib_common.c
@@ -72,6 +72,10 @@ static pfm_pmu_support_t *supported_pmus
#ifdef CONFIG_PFMLIB_ARCH_CRAYX2
&crayx2_support,
#endif
+
+#ifdef CONFIG_PFMLIB_CELL
+ &cell_support,
+#endif
NULL
};
Index: libpfm-3.2-070725/lib/pfmlib_priv.h
===================================================================
--- libpfm-3.2-070725_org/lib/pfmlib_priv.h
+++ libpfm-3.2-070725/lib/pfmlib_priv.h
@@ -105,6 +105,7 @@ extern pfm_pmu_support_t pentium4_suppor
extern pfm_pmu_support_t coreduo_support;
extern pfm_pmu_support_t core_support;
extern pfm_pmu_support_t generic_powerpc_support;
+extern pfm_pmu_support_t cell_support;
static inline unsigned int pfm_num_masks(int e)
{
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/