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

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) |
| FILE * | Get_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 FILE * | TFile_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 BB_COUNT 50 |
| #define CTRL_COUNT 50 |
| #define INDENT 2 |
Definition at line 80 of file tracing.c.
Referenced by dump_bb_end(), dump_bb_header(), dump_generic_bb_buff(), dump_implicit_edges(), dump_phi_nodes(), Nest_Indent(), newline_and_indent(), print_declaration(), and print_struct_decl().
Definition at line 145 of file tracing.c.
Referenced by Get_Trace_Phase_Number(), and List_Phase_Numbers().
Definition at line 144 of file tracing.c.
Referenced by Get_Trace_Phase_Number(), and List_Phase_Numbers().
| #define PU_COUNT 10 |
| #define REGION_COUNT 10 |
Definition at line 483 of file tracing.c.
References BB_Cnt, BOOL, Current_PU_Name, Current_PU_Number, FALSE, i, INT16, PU_Cnt, PU_Enable, PU_NCnt, PU_Num_Enable, strcmp(), TB_Enable, and TRUE.
Referenced by Check_for_Dump(), Get_Trace(), and Trace_IR().
Definition at line 667 of file tracing.c.
Referenced by WOVP::Do_wovp(), dump_INITO_idx(), dump_INITV_idx(), List_Phase_Numbers(), and Print_INITVs().
| INT32 Get_Trace_Phase_Number | ( | char ** | cp, | |
| char * | arg | |||
| ) |
Definition at line 273 of file tracing.c.
Referenced by Process_Command_Line(), and Process_IPA_Options().
Definition at line 414 of file tracing.c.
Referenced by Do_WOPT_and_CG_with_Regions(), and Set_Current_PU_For_Trace().
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 | ) |
Definition at line 632 of file tracing.c.
Referenced by Cleanup_Files(), exec_smake(), Prepare_Source(), Process_Command_Line(), and Process_IPA_Options().
Definition at line 662 of file tracing.c.
Referenced by dp::dump_bb(), dump_bb(), dump_INITO_idx(), dump_INITV_idx(), dp::dump_op(), dump_op(), SCHEDULER::Dump_OP_Verbose_Info(), dump_ops(), dp::dump_scc(), GRA_LIVE_fdump_liveness(), Initialize_Access_Vals(), PDGCS_initialize(), Print_INITVs(), and SCHED_Dump_IR().
| void Set_Trace_Pu | ( | char * | name | ) |
Definition at line 676 of file tracing.c.
References FALSE, fclose(), Non_stdout_TFile, NULL, Set_Error_Trace(), TFile_internal, and TFile_Name.
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 |
BOOL Non_stdout_TFile = FALSE [static] |
| INT32 Progress_Flags = 0 |
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().
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().
UINT REGION_NCnt = 0 [static] |
INT Region_Num_Enable[REGION_COUNT] [static] |
| char* SBar |
| char* Sharps |
char* source_file = __FILE__ [static] |
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 108 of file tracing.c.
Referenced by Get_Trace(), List_Phase_Numbers(), and Set_Trace().
UINT Xstop_Phase = TP_LAST [static] |
1.5.6