Skip to contentSkip to conversation

perfmon2 patch for review: new x86_64 files

PATCH New Stephane Eranian 1 participant 1 message May 12, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 10/11 perfmon2 patch for review: new x86_64 files

This patch contains the new files for x86_64 (AMD and Intel EM64T).

arch/x86_64/perfmon/Kconfig +27 -0
@@ -0,0 +1,27 @@
+config X86_64_PERFMON_AMD
+	tristate "Support AMD X86-64 generic hardware performance counters"
+	depends on PERFMON
+	default m
+	help
+	Enables support for the generic AMD X86-64 hardware performance
+	counters. Does not work with Intel EM64T processors.
+	If unsure, say m.
+
+config X86_64_PERFMON_EM64T
+	tristate "Support Intel EM64T hardware performance counters"
+	depends on PERFMON
+	default m
+	help
+	Enables support for the Intel EM64T hardware performance
+	counters. Does not work with AMD X86-64 processors.
+	If unsure, say m.
+
+config X86_64_PERFMON_EM64T_PEBS
+	tristate "Support for Intel EM64T PEBS sampling format"
+	depends on X86_64_PERFMON_EM64T
+	default m
+	help
+	Enables support for Precise Event-Based Sampling (PEBS) on the Intel
+	EM64T processors which support it.  Does not work with AMD X86-64
+	processors.
+	If unsure, say m.
arch/x86_64/perfmon/Makefile +11 -0
@@ -0,0 +1,11 @@
+#
+# Copyright (c) 2005-2006 Hewlett-Packard Development Company, L.P.
+# Contributed by Stephane Eranian <[email protected]>
+#
+
+obj-$(CONFIG_PERFMON)			+= perfmon.o
+obj-$(CONFIG_X86_64_PERFMON_AMD)	+= perfmon_amd.o
+obj-$(CONFIG_X86_64_PERFMON_EM64T)	+= ../../i386/perfmon/perfmon_p4.o
+obj-$(CONFIG_X86_64_PERFMON_EM64T_PEBS)	+= perfmon_em64t_pebs_smpl.o
+
+perfmon-$(subst m,y,$(CONFIG_PERFMON)) += ../../i386/perfmon/perfmon.o
arch/x86_64/perfmon/perfmon_amd.c +127 -0

127 lines not on this page · raw message

arch/x86_64/perfmon/perfmon_em64t_pebs_smpl.c +218 -0

218 lines not on this page · raw message

include/asm-x86_64/perfmon.h +10 -0
@@ -0,0 +1,10 @@
+/*
+ * Copyright (c) 2005-2006 Hewlett-Packard Development Company, L.P.
+ * Contributed by Stephane Eranian <[email protected]>
+ *
+ * This file contains X86-64 Processor Family specific definitions
+ * for the perfmon interface.
+ *
+ * This file MUST never be included directly. Use linux/perfmon.h.
+ */
+#include <asm-i386/perfmon.h>
include/asm-x86_64/perfmon_em64t_pebs_smpl.h +106 -0

106 lines not on this page · raw message