Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile: (31 commits) powerpc/oprofile: fix whitespaces in op_model_cell.c powerpc/oprofile: IBM CELL: add SPU event profiling support powerpc/oprofile: fix cell/pr_util.h powerpc/oprofile: IBM CELL: cleanup and restructuring oprofile: make new cpu buffer functions part of the api oprofile: remove #ifdef CONFIG_OPROFILE_IBS in non-ibs code ring_buffer: fix ring_buffer_event_length() oprofile: use new data sample format for ibs oprofile: add op_cpu_buffer_get_data() oprofile: add op_cpu_buffer_add_data() oprofile: rework implementation of cpu buffer events oprofile: modify op_cpu_buffer_read_entry() oprofile: add op_cpu_buffer_write_reserve() oprofile: rename variables in add_ibs_begin() oprofile: rename add_sample() in cpu_buffer.c oprofile: rename variable ibs_allowed to has_ibs in op_model_amd.c oprofile: making add_sample_entry() inline oprofile: remove backtrace code for ibs oprofile: remove unused ibs macro oprofile: remove unused components in struct oprofile_cpu_buffer ...
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user