Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753810AbYKZIo0 (ORCPT ); Wed, 26 Nov 2008 03:44:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753917AbYKZImS (ORCPT ); Wed, 26 Nov 2008 03:42:18 -0500 Received: from ug-out-1314.google.com ([66.249.92.173]:43331 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753879AbYKZImO (ORCPT ); Wed, 26 Nov 2008 03:42:14 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=to:cc:subject:from:date:message-id; b=GGaYRfGnxGQ+Rug27h+fHxMbJ6spwd+nB7iyMo4m+hASsoe5W+X8qhdoitqckzuFtR gquYKYBaPJlwmo2arqSbNd2zRp8q8n7mlAbrmbvVWH4h8wOcCMr9is+4SbrUZkJ6BnMo VS1mDkAK9uWcdG5yNSOvdDlTbKd4DD2BfMU6c= To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, mingo@elte.hu, x86@kernel.org, andi@firstfloor.org, eranian@gmail.com, sfr@canb.auug.org.au Subject: [patch 06/24] perfmon: generic x86 definitions (x86) From: eranian@googlemail.com Date: Wed, 26 Nov 2008 00:42:12 -0800 (PST) Message-ID: <492d0be4.09b6660a.1678.ffffa78b@mx.google.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2958 Lines: 74 This patch adds definitions for the perfmon interrupt vector and thread info flags. It is common to i386 and x86_64 code. Signed-off-by: Stephane Eranian -- Index: o3/arch/x86/include/asm/irq_vectors.h =================================================================== --- o3.orig/arch/x86/include/asm/irq_vectors.h 2008-11-03 10:55:26.000000000 +0100 +++ o3/arch/x86/include/asm/irq_vectors.h 2008-11-03 10:56:12.000000000 +0100 @@ -87,6 +87,11 @@ #define LOCAL_TIMER_VECTOR 0xef /* + * Perfmon PMU interrupt vector + */ +#define LOCAL_PERFMON_VECTOR 0xee + +/* * First APIC vector available to drivers: (vectors 0x30-0xee) we * start at 0x31(0x41) to spread out vectors evenly between priority * levels. (0x80 is the syscall vector) Index: o3/arch/x86/include/asm/thread_info.h =================================================================== --- o3.orig/arch/x86/include/asm/thread_info.h 2008-11-03 10:55:14.000000000 +0100 +++ o3/arch/x86/include/asm/thread_info.h 2008-11-03 10:58:10.000000000 +0100 @@ -79,6 +79,7 @@ #define TIF_SYSCALL_EMU 6 /* syscall emulation active */ #define TIF_SYSCALL_AUDIT 7 /* syscall auditing active */ #define TIF_SECCOMP 8 /* secure computing */ +#define TIF_PERFMON_WORK 9 /* work for pfm_handle_work() */ #define TIF_MCE_NOTIFY 10 /* notify userspace of an MCE */ #define TIF_NOTSC 16 /* TSC is not accessible in userland */ #define TIF_IA32 17 /* 32bit process */ @@ -92,6 +93,7 @@ #define TIF_DEBUGCTLMSR 25 /* uses thread_struct.debugctlmsr */ #define TIF_DS_AREA_MSR 26 /* uses thread_struct.ds_area_msr */ #define TIF_BTS_TRACE_TS 27 /* record scheduling event timestamps */ +#define TIF_PERFMON_CTXSW 28 /* perfmon needs ctxsw calls */ #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME) @@ -114,6 +116,8 @@ #define _TIF_DEBUGCTLMSR (1 << TIF_DEBUGCTLMSR) #define _TIF_DS_AREA_MSR (1 << TIF_DS_AREA_MSR) #define _TIF_BTS_TRACE_TS (1 << TIF_BTS_TRACE_TS) +#define _TIF_PERFMON_WORK (1<