osprey/common/util/tracing.c File Reference

#include <string.h>
#include "defs.h"
#include "tracing.h"
#include "erglob.h"
#include "flags.h"
#include "util.h"

Include dependency graph for tracing.c:

Go to the source code of this file.

Data Types

type  PDESC

Defines

#define INDENT   2
#define BB_COUNT   50
#define PU_COUNT   10
#define REGION_COUNT   10
#define CTRL_COUNT   50
#define PD_num(p)   (p->num)
#define PD_id(p)   (p->id)
#define PD_name(p)   (p->name)
#define RID_CREATE_NEW_ID   -1

Functions/Subroutines

int trace_stack (int, int)
INT32 Get_Trace_Phase_Number (char **cp, char *arg)
void List_Phase_Numbers (void)
void Set_Trace (INT func, INT arg)
void Set_Current_PU_For_Trace (char *name, INT number)
void Set_Current_Region_For_Trace (INT number)
void Set_Trace_Pu (char *name)
void Set_Trace_Pu_Number (INT number)
void Set_Trace_Region_Number (INT number)
BOOL Get_BB_Trace (INT32 bb_id)
BOOL Get_Trace (INT func, INT arg)
BOOL Stop_Execution (INT phase)
void Set_Trace_File (char *filename)
void Set_Trace_File_internal (FILE *f)
FILEGet_Trace_File (void)
void Trace_To_Stderr (void)
void Nest_Indent (FILE *fp)

Variables

static char * source_file = __FILE__
static char * rcs_id = "$Source: /depot/CVSROOT/javi/src/sw/cmplr/common/util/tracing.c,v $ $Revision: 1.1 $"
char * SBar
char * DBar
char * Sharps
static FILETFile_internal = NULL
INT32 Progress_Flags = 0
static BOOL Non_stdout_TFile = FALSE
static char * TFile_Name = "stdout"
static UINT TI_Mask
static UINT TD_Mask
static UINT TI_Phase [TP_COUNT]
static UINT TS_Phase [TP_COUNT]
static UINT TN_Phase [TP_COUNT]
static UINT TA_Phase [TP_COUNT]
static UINT TP_Mask [TP_COUNT]
static UINT TB_Enable [BB_COUNT]
static UINT BB_Cnt = 0
static UINT Xstop_Phase = TP_LAST
static UINT TC_Enable [CTRL_COUNT]
static char * PU_Enable [PU_COUNT]
static INT PU_Num_Enable [PU_COUNT]
static UINT PU_Cnt = 0
static UINT PU_NCnt = 0
static INT Region_Num_Enable [REGION_COUNT]
static UINT REGION_NCnt = 0
static char * Current_PU_Name = NULL
static INT Current_PU_Number = 0
static INT Current_Region_Number = 0
static PDESC Phases []


Define Documentation

#define BB_COUNT   50

Definition at line 98 of file tracing.c.

Referenced by Set_Trace().

#define CTRL_COUNT   50

Definition at line 101 of file tracing.c.

Referenced by Set_Trace().

#define INDENT   2

#define PD_id ( p   )     (p->id)

Definition at line 145 of file tracing.c.

Referenced by Get_Trace_Phase_Number(), and List_Phase_Numbers().

#define PD_name ( p   )     (p->name)

Definition at line 146 of file tracing.c.

Referenced by List_Phase_Numbers().

#define PD_num ( p   )     (p->num)

Definition at line 144 of file tracing.c.

Referenced by Get_Trace_Phase_Number(), and List_Phase_Numbers().

#define PU_COUNT   10

Definition at line 99 of file tracing.c.

Referenced by Set_Trace_Pu(), and Set_Trace_Pu_Number().

#define REGION_COUNT   10

Definition at line 100 of file tracing.c.

Referenced by Set_Trace_Region_Number().

#define RID_CREATE_NEW_ID   -1

Definition at line 403 of file tracing.c.


Function Documentation

BOOL Get_BB_Trace ( INT32  bb_id  ) 

BOOL Get_Trace ( INT  func,
INT  arg 
)

Definition at line 522 of file tracing.c.

FILE* Get_Trace_File ( void   ) 

INT32 Get_Trace_Phase_Number ( char **  cp,
char *  arg 
)

Definition at line 239 of file tracing.c.

Referenced by Process_Trace_Option().

void List_Phase_Numbers ( void   ) 

Definition at line 273 of file tracing.c.

Referenced by Process_Command_Line(), and Process_IPA_Options().

void Nest_Indent ( FILE fp  ) 

Definition at line 704 of file tracing.c.

void Set_Current_PU_For_Trace ( char *  name,
INT  number 
)

Definition at line 405 of file tracing.c.

Referenced by Preprocess_PU().

void Set_Current_Region_For_Trace ( INT  number  ) 

Definition at line 414 of file tracing.c.

Referenced by Do_WOPT_and_CG_with_Regions(), and Set_Current_PU_For_Trace().

void Set_Trace ( INT  func,
INT  arg 
)

Definition at line 308 of file tracing.c.

Referenced by main(), Process_Command_Line(), Process_IPA_Options(), and Process_Trace_Option().

void Set_Trace_File ( char *  filename  ) 

void Set_Trace_File_internal ( FILE f  ) 

void Set_Trace_Pu ( char *  name  ) 

Definition at line 429 of file tracing.c.

Referenced by Process_Trace_Option().

void Set_Trace_Pu_Number ( INT  number  ) 

Definition at line 441 of file tracing.c.

Referenced by Process_Trace_Option().

void Set_Trace_Region_Number ( INT  number  ) 

Definition at line 461 of file tracing.c.

Referenced by Process_Trace_Option().

BOOL Stop_Execution ( INT  phase  ) 

Definition at line 613 of file tracing.c.

int trace_stack ( int  ,
int   
)

Definition at line 263 of file mstack.c.

void Trace_To_Stderr ( void   ) 

Definition at line 676 of file tracing.c.

References FALSE, fclose(), Non_stdout_TFile, NULL, Set_Error_Trace(), TFile_internal, and TFile_Name.


Variable Documentation

UINT BB_Cnt = 0 [static]

Definition at line 110 of file tracing.c.

Referenced by Get_BB_Trace(), and Set_Trace().

char* Current_PU_Name = NULL [static]

Definition at line 120 of file tracing.c.

Referenced by Get_BB_Trace(), Get_Trace(), and Set_Current_PU_For_Trace().

INT Current_PU_Number = 0 [static]

Definition at line 121 of file tracing.c.

Referenced by Get_BB_Trace(), Get_Trace(), and Set_Current_PU_For_Trace().

INT Current_Region_Number = 0 [static]

Definition at line 122 of file tracing.c.

Referenced by Get_Trace(), and Set_Current_Region_For_Trace().

char* DBar

Initial value:

"=======================================================================\n"

Definition at line 75 of file tracing.c.

BOOL Non_stdout_TFile = FALSE [static]

Definition at line 94 of file tracing.c.

Referenced by Set_Trace_File(), and Trace_To_Stderr().

PDESC Phases[] [static]

Definition at line 155 of file tracing.c.

Definition at line 91 of file tracing.c.

UINT PU_Cnt = 0 [static]

Definition at line 115 of file tracing.c.

Referenced by Get_BB_Trace(), Get_Trace(), and Set_Trace_Pu().

char* PU_Enable[PU_COUNT] [static]

Definition at line 113 of file tracing.c.

Referenced by Get_BB_Trace(), Get_Trace(), and Set_Trace_Pu().

UINT PU_NCnt = 0 [static]

Definition at line 116 of file tracing.c.

Referenced by Get_BB_Trace(), Get_Trace(), and Set_Trace_Pu_Number().

INT PU_Num_Enable[PU_COUNT] [static]

Definition at line 114 of file tracing.c.

Referenced by Get_BB_Trace(), Get_Trace(), and Set_Trace_Pu_Number().

char* rcs_id = "$Source: /depot/CVSROOT/javi/src/sw/cmplr/common/util/tracing.c,v $ $Revision: 1.1 $" [static]

Definition at line 63 of file tracing.c.

UINT REGION_NCnt = 0 [static]

Definition at line 118 of file tracing.c.

Referenced by Get_Trace(), and Set_Trace_Region_Number().

INT Region_Num_Enable[REGION_COUNT] [static]

Definition at line 117 of file tracing.c.

Referenced by Get_Trace(), and Set_Trace_Region_Number().

char* SBar

Initial value:

"-----------------------------------------------------------------------\n"

Definition at line 73 of file tracing.c.

char* Sharps

Initial value:

"#######################################################################\n"

Definition at line 77 of file tracing.c.

char* source_file = __FILE__ [static]

Definition at line 62 of file tracing.c.

UINT TA_Phase[TP_COUNT] [static]

Definition at line 107 of file tracing.c.

Referenced by Get_Trace(), and Set_Trace().

UINT TB_Enable[BB_COUNT] [static]

Definition at line 109 of file tracing.c.

Referenced by Get_BB_Trace(), and Set_Trace().

UINT TC_Enable[CTRL_COUNT] [static]

Definition at line 112 of file tracing.c.

Referenced by Get_Trace(), and Set_Trace().

UINT TD_Mask [static]

Definition at line 103 of file tracing.c.

Referenced by Get_Trace(), and Set_Trace().

FILE* TFile_internal = NULL [static]

Definition at line 83 of file tracing.c.

Referenced by Get_Trace_File(), Set_Trace_File(), Set_Trace_File_internal(), and Trace_To_Stderr().

char* TFile_Name = "stdout" [static]

Definition at line 95 of file tracing.c.

Referenced by Set_Trace_File(), and Trace_To_Stderr().

UINT TI_Mask [static]

Definition at line 102 of file tracing.c.

Referenced by Get_Trace(), and Set_Trace().

UINT TI_Phase[TP_COUNT] [static]

Definition at line 104 of file tracing.c.

Referenced by Get_Trace(), and Set_Trace().

UINT TN_Phase[TP_COUNT] [static]

Definition at line 106 of file tracing.c.

Referenced by Get_Trace(), and Set_Trace().

UINT TP_Mask[TP_COUNT] [static]

Definition at line 108 of file tracing.c.

Referenced by Get_Trace(), List_Phase_Numbers(), and Set_Trace().

UINT TS_Phase[TP_COUNT] [static]

Definition at line 105 of file tracing.c.

Referenced by Get_Trace(), and Set_Trace().

UINT Xstop_Phase = TP_LAST [static]

Definition at line 111 of file tracing.c.

Referenced by Set_Trace(), and Stop_Execution().


Generated on Wed Apr 8 14:43:40 2009 for Open64 by  doxygen 1.5.6