HPCToolkit
debug-flag.c File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "messages/debug-flag.h"
#include "monitor.h"
#include <utilities/tokenize.h>
#include "messages.flag-defns"
Include dependency graph for debug-flag.c:

Go to the source code of this file.

Classes

struct  flag_list_t
 

Macros

#define E(s)   #s
 
#define E(s)   DBG_PREFIX(s)
 
#define N_DBG_CATEGORIES   sizeof(dbg_tbl)/sizeof(dbg_tbl[0])
 

Typedefs

typedef struct flag_list_t flag_list_t
 

Functions

void unlimit_msgs (void)
 
static void debug_flag_set_all (int v)
 
static void debug_flag_process_string (char *in, int debug_initialization)
 
static void debug_flag_process_env (int debug_initialization)
 
static const char * debug_flag_name_get (int i)
 
void debug_flag_init ()
 
void debug_flag_set (pmsg_category flag, int val)
 
int debug_flag_get (pmsg_category flag)
 
void debug_flag_dump ()
 
static void debug_flag_set_list (flag_list_t *flag_list, int v)
 
static int debug_flag_name_lookup (const char *s)
 

Variables

static char * dbg_tbl []
 
static pmsg_category all_list_entries []
 
static flag_list_t all_list
 
static int dbg_flags [N_DBG_CATEGORIES]
 

Macro Definition Documentation

◆ E [1/2]

#define E (   s)    #s

◆ E [2/2]

#define E (   s)    DBG_PREFIX(s)

◆ N_DBG_CATEGORIES

#define N_DBG_CATEGORIES   sizeof(dbg_tbl)/sizeof(dbg_tbl[0])

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

Typedef Documentation

◆ flag_list_t

typedef struct flag_list_t flag_list_t

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 ( pmsg_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_name_get()

static const char * debug_flag_name_get ( int  i)
static

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

Here is the caller graph for this function:

◆ debug_flag_name_lookup()

static int debug_flag_name_lookup ( const char *  s)
static

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

Here is the caller graph for this function:

◆ debug_flag_process_env()

static void debug_flag_process_env ( int  debug_initialization)
static

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

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

◆ debug_flag_process_string()

static void debug_flag_process_string ( char *  in,
int  debug_initialization 
)
static

Definition at line 283 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 ( pmsg_category  flag,
int  val 
)

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

Here is the caller graph for this function:

◆ debug_flag_set_all()

static void debug_flag_set_all ( int  v)
static

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

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

◆ debug_flag_set_list()

static void debug_flag_set_list ( flag_list_t flag_list,
int  v 
)
static

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

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

◆ unlimit_msgs()

void unlimit_msgs ( void  )

Definition at line 311 of file messages-async.c.

Here is the caller graph for this function:

Variable Documentation

◆ all_list

flag_list_t all_list
static
Initial value:
= {
.n_entries = sizeof(all_list_entries)/sizeof(all_list_entries[0]),
.entries = all_list_entries
}
static pmsg_category all_list_entries[]
Definition: debug-flag.c:99

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

◆ all_list_entries

pmsg_category all_list_entries[]
static

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

◆ dbg_flags

int dbg_flags[N_DBG_CATEGORIES]
static

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

◆ dbg_tbl

char* dbg_tbl[]
static

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