Tor  0.4.7.0-alpha-dev
Macros
events.h File Reference

Header file for Tor tracing instrumentation definition. More...

#include "orconfig.h"

Go to the source code of this file.

Macros

#define TR_SUBSYS(name)   tor_ ## name
 
#define TR_EV(name)   name
 
#define tor_trace(subsystem, name, ...)
 

Detailed Description

Header file for Tor tracing instrumentation definition.

Definition in file events.h.

Macro Definition Documentation

◆ TR_SUBSYS

#define TR_SUBSYS (   name)    tor_ ## name

Helper to disambiguate these identifiers in the code base. They should only be used with tor_trace() like so:

tor_trace(TR_SUBSYS(circuit), TR_EV(opened), ...);

Definition at line 45 of file events.h.