Tor 0.4.9.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

◆ tor_trace

#define tor_trace (   subsystem,
  name,
  ... 
)

Definition at line 73 of file events.h.

◆ TR_EV

#define TR_EV (   name)    name

Definition at line 46 of file events.h.

◆ 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.