opd_spu.c File Reference

#include "opd_interface.h"
#include "opd_printf.h"
#include "opd_sfile.h"
#include "opd_stats.h"
#include "opd_trans.h"
#include "op_libiberty.h"
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for opd_spu.c:

Go to the source code of this file.

Data Structures

struct  spu_context_info

Defines

#define SPU_NUM_MASK   0xFFFFFFFF00000000ULL
#define SPU_CYCLES_COUNTER   0

Functions

static void process_spu_samples (struct transient *trans)
void code_spu_profiling (struct transient *trans)
void code_spu_ctx_switch (struct transient *trans)
static void cache_spu_context_info (struct transient *trans)
static void update_trans_for_spu (struct transient *trans)
static void opd_put_spu_sample (struct transient *trans, unsigned long long pc)

Variables

static struct spu_context_infospu_context_cache
void(* special_processor )(struct transient *)

Detailed Description

Processing the sample buffer for Cell BE SPU profile

Remarks:
Copyright 2007 OProfile authors
Read the file COPYING
Author:
Maynard Johnson (C) Copyright IBM Corporation 2007

Definition in file opd_spu.c.


Define Documentation

#define SPU_CYCLES_COUNTER   0

Definition at line 111 of file opd_spu.c.

Referenced by opd_put_spu_sample().

#define SPU_NUM_MASK   0xFFFFFFFF00000000ULL

Definition at line 110 of file opd_spu.c.

Referenced by opd_put_spu_sample().


Function Documentation

static void cache_spu_context_info ( struct transient trans  )  [static]
void code_spu_ctx_switch ( struct transient trans  ) 

Definition at line 55 of file opd_spu.c.

References clear_trans_current(), operf_transient::cpu, enough_remaining(), find_cookie(), pop_buffer_value(), operf_transient::tgid, operf_transient::tid, trans, and vmisc.

Here is the call graph for this function:

void code_spu_profiling ( struct transient trans  ) 

Definition at line 44 of file opd_spu.c.

References pop_buffer_value(), process_spu_samples(), special_processor, and trans.

Here is the call graph for this function:

static void opd_put_spu_sample ( struct transient trans,
unsigned long long  pc 
) [static]
static void process_spu_samples ( struct transient trans  )  [static]

Definition at line 147 of file opd_spu.c.

References cache_spu_context_info(), handlers, operf_transient::in_kernel, is_escape_code(), LAST_CODE, OPD_DANGLING_CODE, opd_put_spu_sample(), opd_stats, pop_buffer_value(), trans, verbprintf, and vmisc.

Referenced by code_spu_profiling().

Here is the call graph for this function:

Here is the caller graph for this function:

static void update_trans_for_spu ( struct transient trans  )  [static]

Variable Documentation

void(* special_processor)(struct transient *)

Definition at line 30 of file opd_spu.c.


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1