ia64/xen-unstable

changeset 10596:a67c1bcb5522

Add Xenoprof passive domain support (missing file).
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Jun 29 14:30:41 2006 +0100 (2006-06-29)
parents 40e1a7749208
children a0a93337f9ab 18f8dde91fbd
files patches/linux-2.6.16.13/xenoprof-generic.patch
line diff
     1.1 --- a/patches/linux-2.6.16.13/xenoprof-generic.patch	Thu Jun 29 14:25:35 2006 +0100
     1.2 +++ b/patches/linux-2.6.16.13/xenoprof-generic.patch	Thu Jun 29 14:30:41 2006 +0100
     1.3 @@ -123,6 +123,21 @@ diff -pru ../pristine-linux-2.6.16.13/dr
     1.4   				}
     1.5   			}
     1.6   		}
     1.7 +diff -pru ../pristine-linux-2.6.16.13/drivers/oprofile/buffer_sync.h ./drivers/oprofile/buffer_sync.h
     1.8 +--- ../pristine-linux-2.6.16.13/drivers/oprofile/buffer_sync.h	2006-05-03 05:38:44.000000000 +0800
     1.9 ++++ ./drivers/oprofile/buffer_sync.h	2006-06-27 12:12:09.000000000 +0800
    1.10 +@@ -9,6 +9,11 @@
    1.11 + 
    1.12 + #ifndef OPROFILE_BUFFER_SYNC_H
    1.13 + #define OPROFILE_BUFFER_SYNC_H
    1.14 ++
    1.15 ++#define NO_DOMAIN_SWITCH		-1
    1.16 ++#define DOMAIN_SWITCH_START_EVENT1	0
    1.17 ++#define DOMAIN_SWITCH_START_EVENT2	1
    1.18 ++#define DOMAIN_SWITCH_STOP_EVENT1	2
    1.19 +  
    1.20 + /* add the necessary profiling hooks */
    1.21 + int sync_start(void);
    1.22  diff -pru ../pristine-linux-2.6.16.13/drivers/oprofile/cpu_buffer.c ./drivers/oprofile/cpu_buffer.c
    1.23  --- ../pristine-linux-2.6.16.13/drivers/oprofile/cpu_buffer.c	2006-05-03 05:38:44.000000000 +0800
    1.24  +++ ./drivers/oprofile/cpu_buffer.c	2006-06-19 22:43:53.000000000 +0800