aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/oprofile/cell/pr_util.h
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2009-01-08 15:54:04 +0100
committerRobert Richter <robert.richter@amd.com>2009-01-08 15:54:04 +0100
commita076aa4f96f40fc75451ae835a1a665ce1faf951 (patch)
tree348be8bb538f9f47da8ec237f7bbad63088af929 /arch/powerpc/oprofile/cell/pr_util.h
parentd2852b932f0bb5e89177aa27c7bcf07f4167e129 (diff)
parent25006644e6042aab4bb7cdc4bfc5777cd3141df7 (diff)
downloadkernel_samsung_smdk4412-a076aa4f96f40fc75451ae835a1a665ce1faf951.zip
kernel_samsung_smdk4412-a076aa4f96f40fc75451ae835a1a665ce1faf951.tar.gz
kernel_samsung_smdk4412-a076aa4f96f40fc75451ae835a1a665ce1faf951.tar.bz2
Merge branch 'oprofile/cell' into oprofile/oprofile-for-tip
Diffstat (limited to 'arch/powerpc/oprofile/cell/pr_util.h')
-rw-r--r--arch/powerpc/oprofile/cell/pr_util.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/powerpc/oprofile/cell/pr_util.h b/arch/powerpc/oprofile/cell/pr_util.h
index 628009c..a048b0b 100644
--- a/arch/powerpc/oprofile/cell/pr_util.h
+++ b/arch/powerpc/oprofile/cell/pr_util.h
@@ -30,6 +30,10 @@
extern struct delayed_work spu_work;
extern int spu_prof_running;
+#define TRACE_ARRAY_SIZE 1024
+
+extern spinlock_t oprof_spu_smpl_arry_lck;
+
struct spu_overlay_info { /* map of sections within an SPU overlay */
unsigned int vma; /* SPU virtual memory address from elf */
unsigned int size; /* size of section from elf */
@@ -89,10 +93,11 @@ void vma_map_free(struct vma_to_fileoffset_map *map);
* Entry point for SPU profiling.
* cycles_reset is the SPU_CYCLES count value specified by the user.
*/
-int start_spu_profiling(unsigned int cycles_reset);
-
-void stop_spu_profiling(void);
+int start_spu_profiling_cycles(unsigned int cycles_reset);
+void start_spu_profiling_events(void);
+void stop_spu_profiling_cycles(void);
+void stop_spu_profiling_events(void);
/* add the necessary profiling hooks */
int spu_sync_start(void);