osprey/instrumentation/libinstr/profile.cxx File Reference

#include <stdio.h>
#include <ext/hash_map>
#include <vector>
#include <algorithm>
#include "profile.h"

Include dependency graph for profile.cxx:

Go to the source code of this file.

Functions/Subroutines

PU_PROFILE_HANDLE Get_PU_Handle (char *file_name, char *pu_name, long current_pc, INT32 pu_size, INT32 checksum)
void Profile_Invoke_Init (PU_PROFILE_HANDLE pu_handle, INT32 num_invokes)
void Profile_Invoke (PU_PROFILE_HANDLE pu_handle, INT32 invoke_id)
void Profile_Branch_Init (PU_PROFILE_HANDLE pu_handle, INT32 num_branches)
void Profile_Branch (PU_PROFILE_HANDLE pu_handle, INT32 branch_id, bool taken)
void Incr_Branch_Taken (PU_PROFILE_HANDLE pu_handle, INT32 id)
void Incr_Branch_Not_Taken (PU_PROFILE_HANDLE pu_handle, INT32 id)
void Profile_Switch_Init (PU_PROFILE_HANDLE pu_handle, INT32 num_switches, INT32 *switch_num_targets, INT32 num_case_values, INT64 *case_values)
void Profile_Switch (PU_PROFILE_HANDLE pu_handle, INT32 switch_id, INT32 case_value, INT32 num_targets)
void Profile_Compgoto_Init (PU_PROFILE_HANDLE pu_handle, INT32 num_compgotos, INT32 *compgoto_num_targets)
void Profile_Compgoto (PU_PROFILE_HANDLE pu_handle, INT32 compgoto_id, INT32 target, INT32 num_targets)
void Profile_Loop_Init (PU_PROFILE_HANDLE pu_handle, INT32 num_loops)
void Profile_Loop (PU_PROFILE_HANDLE pu_handle, INT32 loop_id)
void Profile_Loop_Iter (PU_PROFILE_HANDLE pu_handle, INT32 loop_id)
void Profile_Short_Circuit_Init (PU_PROFILE_HANDLE pu_handle, INT32 num_short_circuit_ops)
void Profile_Short_Circuit (PU_PROFILE_HANDLE pu_handle, INT32 short_circuit_id, bool taken)
void Incr_Right_Taken (PU_PROFILE_HANDLE pu_handle, INT32 id)
void Incr_Neither_Taken (PU_PROFILE_HANDLE pu_handle, INT32 id)
void Profile_Call_Init (PU_PROFILE_HANDLE pu_handle, INT32 num_calls)
void Profile_Icall_Init (PU_PROFILE_HANDLE pu_handle, INT32 num_icalls)
void Profile_Call_Entry (PU_PROFILE_HANDLE pu_handle, INT32 call_id)
void Profile_Call_Exit (PU_PROFILE_HANDLE pu_handle, INT32 call_id)
void Profile_Icall (PU_PROFILE_HANDLE pu_handle, INT32 icall_id, void *called_fun_address)
void Set_Instrumentation_Phase_Num (PROFILE_PHASE phase_num)
PROFILE_PHASE Instrumentation_Phase_Num ()

Variables

HASH_MAP PU_Profile_Handle_Table
static PROFILE_PHASE instrumentation_phase_num = PROFILE_PHASE_NONE


Function Documentation

PU_PROFILE_HANDLE Get_PU_Handle ( char *  file_name,
char *  pu_name,
long  current_pc,
INT32  pu_size,
INT32  checksum 
)

Definition at line 85 of file profile.cxx.

Referenced by __profile_pu_init().

void Incr_Branch_Not_Taken ( PU_PROFILE_HANDLE  pu_handle,
INT32  id 
)

Definition at line 188 of file profile.cxx.

Referenced by Profile_Branch(), and Instr::Profile_Branch().

void Incr_Branch_Taken ( PU_PROFILE_HANDLE  pu_handle,
INT32  id 
)

Definition at line 179 of file profile.cxx.

Referenced by Profile_Branch(), and Instr::Profile_Branch().

void Incr_Neither_Taken ( PU_PROFILE_HANDLE  pu_handle,
INT32  id 
)

Definition at line 433 of file profile.cxx.

Referenced by Instr::Profile_Short_Circuit(), and Profile_Short_Circuit().

void Incr_Right_Taken ( PU_PROFILE_HANDLE  pu_handle,
INT32  id 
)

Definition at line 423 of file profile.cxx.

Referenced by Instr::Profile_Short_Circuit(), and Profile_Short_Circuit().

PROFILE_PHASE Instrumentation_Phase_Num ( void   ) 

Definition at line 637 of file profile.cxx.

void Profile_Branch ( PU_PROFILE_HANDLE  pu_handle,
INT32  branch_id,
bool  taken 
)

Definition at line 168 of file profile.cxx.

Referenced by __profile_branch().

void Profile_Branch_Init ( PU_PROFILE_HANDLE  pu_handle,
INT32  num_branches 
)

Definition at line 156 of file profile.cxx.

Referenced by __profile_branch_init().

void Profile_Call_Entry ( PU_PROFILE_HANDLE  pu_handle,
INT32  call_id 
)

Definition at line 476 of file profile.cxx.

Referenced by __profile_call_entry().

void Profile_Call_Exit ( PU_PROFILE_HANDLE  pu_handle,
INT32  call_id 
)

Definition at line 486 of file profile.cxx.

Referenced by __profile_call_exit().

void Profile_Call_Init ( PU_PROFILE_HANDLE  pu_handle,
INT32  num_calls 
)

Definition at line 450 of file profile.cxx.

Referenced by __profile_call_init().

void Profile_Compgoto ( PU_PROFILE_HANDLE  pu_handle,
INT32  compgoto_id,
INT32  target,
INT32  num_targets 
)

Definition at line 312 of file profile.cxx.

Referenced by __profile_compgoto().

void Profile_Compgoto_Init ( PU_PROFILE_HANDLE  pu_handle,
INT32  num_compgotos,
INT32 compgoto_num_targets 
)

Definition at line 283 of file profile.cxx.

Referenced by __profile_compgoto_init().

void Profile_Icall ( PU_PROFILE_HANDLE  pu_handle,
INT32  icall_id,
void called_fun_address 
)

Definition at line 494 of file profile.cxx.

Referenced by __profile_icall().

void Profile_Icall_Init ( PU_PROFILE_HANDLE  pu_handle,
INT32  num_icalls 
)

Definition at line 460 of file profile.cxx.

Referenced by __profile_icall_init().

void Profile_Invoke ( PU_PROFILE_HANDLE  pu_handle,
INT32  invoke_id 
)

Definition at line 138 of file profile.cxx.

Referenced by __profile_invoke().

void Profile_Invoke_Init ( PU_PROFILE_HANDLE  pu_handle,
INT32  num_invokes 
)

Definition at line 126 of file profile.cxx.

Referenced by __profile_invoke_init().

void Profile_Loop ( PU_PROFILE_HANDLE  pu_handle,
INT32  loop_id 
)

Definition at line 348 of file profile.cxx.

Referenced by __profile_loop().

void Profile_Loop_Init ( PU_PROFILE_HANDLE  pu_handle,
INT32  num_loops 
)

Definition at line 335 of file profile.cxx.

Referenced by __profile_loop_init().

void Profile_Loop_Iter ( PU_PROFILE_HANDLE  pu_handle,
INT32  loop_id 
)

Definition at line 378 of file profile.cxx.

Referenced by __profile_loop_iter().

void Profile_Short_Circuit ( PU_PROFILE_HANDLE  pu_handle,
INT32  short_circuit_id,
bool  taken 
)

Definition at line 411 of file profile.cxx.

Referenced by __profile_short_circuit().

void Profile_Short_Circuit_Init ( PU_PROFILE_HANDLE  pu_handle,
INT32  num_short_circuit_ops 
)

Definition at line 397 of file profile.cxx.

Referenced by __profile_short_circuit_init().

void Profile_Switch ( PU_PROFILE_HANDLE  pu_handle,
INT32  switch_id,
INT32  case_value,
INT32  num_targets 
)

Definition at line 248 of file profile.cxx.

Referenced by __profile_switch().

void Profile_Switch_Init ( PU_PROFILE_HANDLE  pu_handle,
INT32  num_switches,
INT32 switch_num_targets,
INT32  num_case_values,
INT64 case_values 
)

void Set_Instrumentation_Phase_Num ( PROFILE_PHASE  phase_num  ) 

Definition at line 629 of file profile.cxx.

Referenced by __profile_init().


Variable Documentation

PROFILE_PHASE instrumentation_phase_num = PROFILE_PHASE_NONE [static]

Definition at line 74 of file profile.cxx.

Referenced by __profile_finish(), Dump_all(), and Get_PU_Handle().


Generated on Wed Apr 8 15:09:14 2009 for Open64 by  doxygen 1.5.6