diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-06-29 14:30:41 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-06-29 14:30:41 +0100 |
commit | 5a47f1f3a5168ee21267c7b63959134e5fd27a2a (patch) | |
tree | 936cb9744a457e2d68df3f9fe1ea01ffef2c007e /patches | |
parent | b4e4e56cb1e5cda8ef6ecb0ec010fc1d7cf74850 (diff) | |
download | xen-5a47f1f3a5168ee21267c7b63959134e5fd27a2a.tar.gz xen-5a47f1f3a5168ee21267c7b63959134e5fd27a2a.tar.bz2 xen-5a47f1f3a5168ee21267c7b63959134e5fd27a2a.zip |
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>
Diffstat (limited to 'patches')
-rw-r--r-- | patches/linux-2.6.16.13/xenoprof-generic.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/patches/linux-2.6.16.13/xenoprof-generic.patch b/patches/linux-2.6.16.13/xenoprof-generic.patch index 6c9235db23..799794dd3a 100644 --- a/patches/linux-2.6.16.13/xenoprof-generic.patch +++ b/patches/linux-2.6.16.13/xenoprof-generic.patch @@ -123,6 +123,21 @@ diff -pru ../pristine-linux-2.6.16.13/drivers/oprofile/buffer_sync.c ./drivers/o } } } +diff -pru ../pristine-linux-2.6.16.13/drivers/oprofile/buffer_sync.h ./drivers/oprofile/buffer_sync.h +--- ../pristine-linux-2.6.16.13/drivers/oprofile/buffer_sync.h 2006-05-03 05:38:44.000000000 +0800 ++++ ./drivers/oprofile/buffer_sync.h 2006-06-27 12:12:09.000000000 +0800 +@@ -9,6 +9,11 @@ + + #ifndef OPROFILE_BUFFER_SYNC_H + #define OPROFILE_BUFFER_SYNC_H ++ ++#define NO_DOMAIN_SWITCH -1 ++#define DOMAIN_SWITCH_START_EVENT1 0 ++#define DOMAIN_SWITCH_START_EVENT2 1 ++#define DOMAIN_SWITCH_STOP_EVENT1 2 + + /* add the necessary profiling hooks */ + int sync_start(void); diff -pru ../pristine-linux-2.6.16.13/drivers/oprofile/cpu_buffer.c ./drivers/oprofile/cpu_buffer.c --- ../pristine-linux-2.6.16.13/drivers/oprofile/cpu_buffer.c 2006-05-03 05:38:44.000000000 +0800 +++ ./drivers/oprofile/cpu_buffer.c 2006-06-19 22:43:53.000000000 +0800 |