GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
instr.h File Reference

Macros used for code instrumentation. More...

#include "config.h"
#include <ghost/log.h>
#include <ghost/error.h>
#include <pthread.h>
Include dependency graph for instr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GHOST_INSTR_START(tag)
 Instrumentation will be ignored. More...
 
#define GHOST_INSTR_STOP(tag)
 Instrumentation will be ignored. More...
 

Functions

void ghost_instr_prefix_set (const char *prefix)
 Set the instrumentation prefix. More...
 
char * ghost_instr_prefix_get ()
 
void ghost_instr_suffix_set (const char *suffix)
 Set the instrumentation suffix. More...
 
char * ghost_instr_suffix_get ()
 
ghost_error ghost_instr_create ()
 
ghost_error ghost_instr_destroy ()
 

Variables

pthread_key_t ghost_instr_enable_key
 

Detailed Description

Macros used for code instrumentation.

Author
Moritz Kreutzer morit.nosp@m.z.kr.nosp@m.eutze.nosp@m.r@fa.nosp@m.u.de

Macro Definition Documentation

#define GHOST_INSTR_START (   tag)
Value:
if (GHOST_VERBOSITY > 1) {\
GHOST_DEBUG_LOG(1,"Enter instrumented region %s",tag);\
}\
#define GHOST_DEBUG_LOG(level,...)
Definition: log.h:114

Instrumentation will be ignored.

#define GHOST_INSTR_STOP (   tag)
Value:
if (GHOST_VERBOSITY > 1) {\
GHOST_DEBUG_LOG(1,"Exit instrumented region %s",tag);\
}\
#define GHOST_DEBUG_LOG(level,...)
Definition: log.h:114

Instrumentation will be ignored.

Function Documentation

ghost_error ghost_instr_create ( )
ghost_error ghost_instr_destroy ( )
char* ghost_instr_prefix_get ( )
void ghost_instr_prefix_set ( const char *  prefix)

Set the instrumentation prefix.

Parameters
prefixThe prefix.

The prefix will be prepended to the instrumentation tag.

char* ghost_instr_suffix_get ( )
void ghost_instr_suffix_set ( const char *  suffix)

Set the instrumentation suffix.

Parameters
suffixThe suffix.

The suffix will be appended to the instrumentation tag.

Variable Documentation

pthread_key_t ghost_instr_enable_key