Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
spu_profiler.c File Reference
#include <linux/hrtimer.h>
#include <linux/smp.h>
#include <linux/slab.h>
#include <asm/cell-pmu.h>
#include <asm/time.h>
#include "pr_util.h"

Go to the source code of this file.

Macros

#define SCALE_SHIFT   14
 
#define NUM_SPU_BITS_TRBUF   16
 
#define SPUS_PER_TB_ENTRY   4
 
#define SPU_PC_MASK   0xFFFF
 

Functions

 DEFINE_SPINLOCK (oprof_spu_smpl_arry_lck)
 
void set_spu_profiling_frequency (unsigned int freq_khz, unsigned int cycles_reset)
 
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)
 

Variables

int spu_prof_running
 
unsigned long oprof_spu_smpl_arry_lck_flags
 

Macro Definition Documentation

#define NUM_SPU_BITS_TRBUF   16

Definition at line 40 of file spu_profiler.c.

#define SCALE_SHIFT   14

Definition at line 22 of file spu_profiler.c.

#define SPU_PC_MASK   0xFFFF

Definition at line 43 of file spu_profiler.c.

#define SPUS_PER_TB_ENTRY   4

Definition at line 41 of file spu_profiler.c.

Function Documentation

DEFINE_SPINLOCK ( oprof_spu_smpl_arry_lck  )
void set_spu_profiling_frequency ( unsigned int  freq_khz,
unsigned int  cycles_reset 
)

Definition at line 48 of file spu_profiler.c.

int start_spu_profiling_cycles ( unsigned int  cycles_reset)

Definition at line 202 of file spu_profiler.c.

void start_spu_profiling_events ( void  )

Definition at line 233 of file spu_profiler.c.

void stop_spu_profiling_cycles ( void  )

Definition at line 241 of file spu_profiler.c.

void stop_spu_profiling_events ( void  )

Definition at line 249 of file spu_profiler.c.

Variable Documentation

unsigned long oprof_spu_smpl_arry_lck_flags

Definition at line 46 of file spu_profiler.c.

int spu_prof_running

Definition at line 37 of file spu_profiler.c.