diff options
Diffstat (limited to 'arch/powerpc/oprofile/cell/pr_util.h')
-rw-r--r-- | arch/powerpc/oprofile/cell/pr_util.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/powerpc/oprofile/cell/pr_util.h b/arch/powerpc/oprofile/cell/pr_util.h index 628009c01958..964b93974d89 100644 --- a/arch/powerpc/oprofile/cell/pr_util.h +++ b/arch/powerpc/oprofile/cell/pr_util.h | |||
@@ -30,6 +30,10 @@ | |||
30 | extern struct delayed_work spu_work; | 30 | extern struct delayed_work spu_work; |
31 | extern int spu_prof_running; | 31 | extern int spu_prof_running; |
32 | 32 | ||
33 | #define TRACE_ARRAY_SIZE 1024 | ||
34 | |||
35 | extern spinlock_t oprof_spu_smpl_arry_lck; | ||
36 | |||
33 | struct spu_overlay_info { /* map of sections within an SPU overlay */ | 37 | struct spu_overlay_info { /* map of sections within an SPU overlay */ |
34 | unsigned int vma; /* SPU virtual memory address from elf */ | 38 | unsigned int vma; /* SPU virtual memory address from elf */ |
35 | unsigned int size; /* size of section from elf */ | 39 | unsigned int size; /* size of section from elf */ |
@@ -79,7 +83,7 @@ struct spu_buffer { | |||
79 | * the vma-to-fileoffset map. | 83 | * the vma-to-fileoffset map. |
80 | */ | 84 | */ |
81 | struct vma_to_fileoffset_map *create_vma_map(const struct spu *spu, | 85 | struct vma_to_fileoffset_map *create_vma_map(const struct spu *spu, |
82 | u64 objectid); | 86 | unsigned long objectid); |
83 | unsigned int vma_map_lookup(struct vma_to_fileoffset_map *map, | 87 | unsigned int vma_map_lookup(struct vma_to_fileoffset_map *map, |
84 | unsigned int vma, const struct spu *aSpu, | 88 | unsigned int vma, const struct spu *aSpu, |
85 | int *grd_val); | 89 | int *grd_val); |
@@ -89,10 +93,11 @@ void vma_map_free(struct vma_to_fileoffset_map *map); | |||
89 | * Entry point for SPU profiling. | 93 | * Entry point for SPU profiling. |
90 | * cycles_reset is the SPU_CYCLES count value specified by the user. | 94 | * cycles_reset is the SPU_CYCLES count value specified by the user. |
91 | */ | 95 | */ |
92 | int start_spu_profiling(unsigned int cycles_reset); | 96 | int start_spu_profiling_cycles(unsigned int cycles_reset); |
93 | 97 | void start_spu_profiling_events(void); | |
94 | void stop_spu_profiling(void); | ||
95 | 98 | ||
99 | void stop_spu_profiling_cycles(void); | ||
100 | void stop_spu_profiling_events(void); | ||
96 | 101 | ||
97 | /* add the necessary profiling hooks */ | 102 | /* add the necessary profiling hooks */ |
98 | int spu_sync_start(void); | 103 | int spu_sync_start(void); |