2.6.18 perfmon2 : new x86_64 files
PATCH 20/21 2.6.18 perfmon2 : new x86_64 files
This patch contains the new x86_64 files.
The files are as follows:
arch/x86_64/perfmon/Kconfig:
- add menuconfig options
arch/x86_64/perfmon/Makefile:
- makefile for arch specific files
arch/x86_64/perfmon/perfmon_amd64.c:
- PMU description for AMD64 PMU for both 32 and 64-bit modes
include/asm-x86_64/perfmon.h:
- architecture specific header definitions
arch/x86_64/perfmon/Kconfig +39 -0
@@ -0,0 +1,39 @@ +menu "Hardware Performance Monitoring support" +config PERFMON + bool "Perfmon2 performance monitoring interface" + default n + help + Enables the perfmon2 interface to access the hardware + performance counters. See <http://perfmon2.sf.net/> for + more details. + +config X86_64_PERFMON_K8 + tristate "Support 64-bit mode AMD Athlon64 and Opteron64 hardware performance counters" + depends on PERFMON + default n + help + Enables support for 64-bit mode AMD Athlon64 and Opteron64 processors + hardware performance counters. + +config X86_64_PERFMON_P4 + tristate "Support for Intel 64-bit Pentium 4/Xeon hardware performance counters" + depends on PERFMON + default n + help + Enables support for Intel 64-bit mode Pentium 4/Xeon hardware performance + counters. + +config X86_64_PERFMON_GEN_IA32 + tristate "Support for Intel architectural performance counters" + depends on PERFMON + default n + help + Enables 64-bit support for Intel architectural performance counters. + +config X86_64_PERFMON_P4_PEBS + tristate "Support for Intel Precise Event-Based Sampling (PEBS)" + default n + help + Enables support for 64-bit Precise Event-Based Sampling (PEBS) on the Intel + Pentium 4 and Xeon processors which supports it. +endmenu
arch/x86_64/perfmon/Makefile +15 -0
@@ -0,0 +1,15 @@ +# +# 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_K8) += perfmon_k8.o +obj-$(CONFIG_X86_64_PERFMON_P4) += perfmon_p4.o +obj-$(CONFIG_X86_64_PERFMON_GEN_IA32) += perfmon_gen_ia32.o +obj-$(CONFIG_X86_64_PERFMON_P4_PEBS) += perfmon_p4_pebs_smpl.o + +perfmon-$(subst m,y,$(CONFIG_PERFMON)) += ../../i386/perfmon/perfmon.o +perfmon_p4-$(subst m,y,$(CONFIG_X86_64_PERFMON_P4)) += ../../i386/perfmon/perfmon_p4.o +perfmon_gen_ia32-$(subst m,y,$(CONFIG_X86_64_PERFMON_GEN_IA32)) += ../../i386/perfmon/perfmon_gen_ia32.o +perfmon_p4_pebs_smpl-$(subst m,y,$(CONFIG_X86_64_PERFMON_P4_PEBS)) += ../../i386/perfmon/perfmon_p4_pebs_smpl.o
arch/x86_64/perfmon/perfmon_k8.c +134 -0
134 lines not on this page · raw message
include/asm-x86_64/perfmon.h +24 -0
@@ -0,0 +1,24 @@ +/* +* 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. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of version 2 of the GNU General Public +* License as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +* 02111-1307 USA +*/ +#include <asm-i386/perfmon.h>
include/asm-x86_64/perfmon_p4_pebs_smpl.h +19 -0
@@ -0,0 +1,19 @@ +/* +* Copyright (c) 2005-2006 Hewlett-Packard Development Company, L.P. +* Contributed by Stephane Eranian <[email protected]> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of version 2 of the GNU General Public +* License as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +* 02111-1307 USA +*/ +#include <asm-i386/perfmon_p4_pebs_smpl.h>