HPCToolkit
debug-flag.h File Reference
#include "messages.flag-defns"
Include dependency graph for debug-flag.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DBG_PREFIX(s)   DBG_##s
 
#define CTL_PREFIX(s)   CTL_##s
 
#define DBG(f)   debug_flag_get(DBG_PREFIX(f))
 
#define SET(f, v)   debug_flag_set(DBG_PREFIX(f), v)
 
#define ENABLE(f)   SET(f,1)
 
#define DISABLE(f)   SET(f,0)
 
#define ENABLED(f)   DBG(f)
 
#define DISABLED(f)   (! DBG(f))
 
#define IF_ENABLED(f)   if ( ENABLED(f) )
 
#define IF_DISABLED(f)   if ( ! ENABLED(f) )
 
#define E(s)   DBG_PREFIX(s)
 

Typedefs

typedef pmsg_category dbg_category
 

Enumerations

enum  pmsg_category {
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT), E =(INIT), E =(INIT), E =(INIT),
  E =(INIT)
}
 

Functions

void debug_flag_init ()
 
int debug_flag_get (dbg_category flag)
 
void debug_flag_set (dbg_category flag, int v)
 
void debug_flag_dump ()
 

Macro Definition Documentation

◆ CTL_PREFIX

#define CTL_PREFIX (   s)    CTL_##s

Definition at line 68 of file debug-flag.h.

◆ DBG

#define DBG (   f)    debug_flag_get(DBG_PREFIX(f))

Definition at line 70 of file debug-flag.h.

◆ DBG_PREFIX

#define DBG_PREFIX (   s)    DBG_##s

Definition at line 67 of file debug-flag.h.

◆ DISABLE

#define DISABLE (   f)    SET(f,0)

Definition at line 74 of file debug-flag.h.

◆ DISABLED

#define DISABLED (   f)    (! DBG(f))

Definition at line 77 of file debug-flag.h.

◆ E

#define E (   s)    DBG_PREFIX(s)

Definition at line 92 of file debug-flag.h.

◆ ENABLE

#define ENABLE (   f)    SET(f,1)

Definition at line 73 of file debug-flag.h.

◆ ENABLED

#define ENABLED (   f)    DBG(f)

Definition at line 76 of file debug-flag.h.

◆ IF_DISABLED

#define IF_DISABLED (   f)    if ( ! ENABLED(f) )

Definition at line 80 of file debug-flag.h.

◆ IF_ENABLED

#define IF_ENABLED (   f)    if ( ENABLED(f) )

Definition at line 79 of file debug-flag.h.

◆ SET

#define SET (   f,
 
)    debug_flag_set(DBG_PREFIX(f), v)

Definition at line 71 of file debug-flag.h.

Typedef Documentation

◆ dbg_category

Definition at line 100 of file debug-flag.h.

Enumeration Type Documentation

◆ pmsg_category

Enumerator

Definition at line 89 of file debug-flag.h.

Function Documentation

◆ debug_flag_dump()

void debug_flag_dump ( )

Definition at line 223 of file debug-flag.c.

Here is the call graph for this function:

◆ debug_flag_get()

int debug_flag_get ( dbg_category  flag)

Definition at line 216 of file debug-flag.c.

Here is the caller graph for this function:

◆ debug_flag_init()

void debug_flag_init ( )

Definition at line 194 of file debug-flag.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ debug_flag_set()

void debug_flag_set ( dbg_category  flag,
int  v 
)

Definition at line 209 of file debug-flag.c.

Here is the caller graph for this function: