Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
pr_util.h File Reference
#include <linux/cpumask.h>
#include <linux/oprofile.h>
#include <asm/cell-pmu.h>
#include <asm/cell-regs.h>
#include <asm/spu.h>

Go to the source code of this file.

Data Structures

struct  spu_overlay_info
 
struct  vma_to_fileoffset_map
 
struct  spu_buffer
 

Macros

#define SKIP_GENERIC_SYNC   0
 
#define SYNC_START_ERROR   -1
 
#define DO_GENERIC_SYNC   1
 
#define SPUS_PER_NODE   8
 
#define DEFAULT_TIMER_EXPIRE   (HZ / 10)
 
#define TRACE_ARRAY_SIZE   1024
 

Functions

struct vma_to_fileoffset_mapcreate_vma_map (const struct spu *spu, unsigned long objectid)
 
unsigned int vma_map_lookup (struct vma_to_fileoffset_map *map, unsigned int vma, const struct spu *aSpu, int *grd_val)
 
void vma_map_free (struct vma_to_fileoffset_map *map)
 
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)
 
int spu_sync_start (void)
 
int spu_sync_stop (void)
 
void spu_sync_buffer (int spu_num, unsigned int *samples, int num_samples)
 
void set_spu_profiling_frequency (unsigned int freq_khz, unsigned int cycles_reset)
 

Variables

struct delayed_work spu_work
 
int spu_prof_running
 
spinlock_t oprof_spu_smpl_arry_lck
 

Macro Definition Documentation

#define DEFAULT_TIMER_EXPIRE   (HZ / 10)

Definition at line 28 of file pr_util.h.

#define DO_GENERIC_SYNC   1

Definition at line 26 of file pr_util.h.

#define SKIP_GENERIC_SYNC   0

Definition at line 24 of file pr_util.h.

#define SPUS_PER_NODE   8

Definition at line 27 of file pr_util.h.

#define SYNC_START_ERROR   -1

Definition at line 25 of file pr_util.h.

#define TRACE_ARRAY_SIZE   1024

Definition at line 33 of file pr_util.h.

Function Documentation

struct vma_to_fileoffset_map* create_vma_map ( const struct spu *  spu,
unsigned long  objectid 
)
read

Definition at line 95 of file vma_map.c.

void set_spu_profiling_frequency ( unsigned int  freq_khz,
unsigned int  cycles_reset 
)

Definition at line 48 of file spu_profiler.c.

void spu_sync_buffer ( int  spu_num,
unsigned int samples,
int  num_samples 
)

Definition at line 554 of file spu_task_sync.c.

int spu_sync_start ( void  )

Definition at line 510 of file spu_task_sync.c.

int spu_sync_stop ( void  )

Definition at line 620 of file spu_task_sync.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.

void vma_map_free ( struct vma_to_fileoffset_map map)

Definition at line 27 of file vma_map.c.

unsigned int vma_map_lookup ( struct vma_to_fileoffset_map map,
unsigned int  vma,
const struct spu *  aSpu,
int grd_val 
)

Definition at line 37 of file vma_map.c.

Variable Documentation

spinlock_t oprof_spu_smpl_arry_lck
int spu_prof_running

Definition at line 37 of file spu_profiler.c.

struct delayed_work spu_work

Definition at line 41 of file spu_task_sync.c.