diff options
author | Bob Nelson <rrnelson@linux.vnet.ibm.com> | 2007-07-20 15:39:53 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@klappe.arndb.de> | 2007-07-20 15:42:24 -0400 |
commit | 1474855d0878cced6f39f51f3c2bd7428b44cb1e (patch) | |
tree | cbad42404bfc0f7222d0a88e4ed9b0e9e0d0cb50 /drivers/oprofile/buffer_sync.c | |
parent | 36aaccc1e96481e8310b1d13600096da0f24ff43 (diff) |
[CELL] oprofile: add support to OProfile for profiling CELL BE SPUs
From: Maynard Johnson <mpjohn@us.ibm.com>
This patch updates the existing arch/powerpc/oprofile/op_model_cell.c
to add in the SPU profiling capabilities. In addition, a 'cell' subdirectory
was added to arch/powerpc/oprofile to hold Cell-specific SPU profiling code.
Exports spu_set_profile_private_kref and spu_get_profile_private_kref which
are used by OProfile to store private profile information in spufs data
structures.
Also incorporated several fixes from other patches (rrn). Check pointer
returned from kzalloc. Eliminated unnecessary cast. Better error
handling and cleanup in the related area. 64-bit unsigned long parameter
was being demoted to 32-bit unsigned int and eventually promoted back to
unsigned long.
Signed-off-by: Carl Love <carll@us.ibm.com>
Signed-off-by: Maynard Johnson <mpjohn@us.ibm.com>
Signed-off-by: Bob Nelson <rrnelson@us.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/oprofile/buffer_sync.c')
-rw-r--r-- | drivers/oprofile/buffer_sync.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/oprofile/buffer_sync.c b/drivers/oprofile/buffer_sync.c index edd6de995726..8134c7e198a5 100644 --- a/drivers/oprofile/buffer_sync.c +++ b/drivers/oprofile/buffer_sync.c | |||
@@ -26,8 +26,9 @@ | |||
26 | #include <linux/profile.h> | 26 | #include <linux/profile.h> |
27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
28 | #include <linux/fs.h> | 28 | #include <linux/fs.h> |
29 | #include <linux/oprofile.h> | ||
29 | #include <linux/sched.h> | 30 | #include <linux/sched.h> |
30 | 31 | ||
31 | #include "oprofile_stats.h" | 32 | #include "oprofile_stats.h" |
32 | #include "event_buffer.h" | 33 | #include "event_buffer.h" |
33 | #include "cpu_buffer.h" | 34 | #include "cpu_buffer.h" |