OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gmpr_trace.h
Go to the documentation of this file.
1 /* $Id: gmpr_trace.h 514187 2012-05-06 12:25:25Z ib-builder $
2  *
3  * gmpr_trace.h - GMP router-side trace support
4  *
5  * Dave Katz, March 2008
6  *
7  * Copyright (c) 2008, Juniper Networks, Inc.
8  * All rights reserved.
9  */
10 
11 /*
12  * Conditional tracing
13  */
14 #define gmpr_trace(instance, flag, ...) \
15  if (instance->rinst_traceflags & (flag)) \
16  gmpx_trace(instance->rinst_context, __VA_ARGS__)
17 
18 /*
19  * Unconditional tracing
20  */
21 #define gmpr_trace_uncond(instance, ...) \
22  gmpx_trace(instance->rinst_context, __VA_ARGS__)
23 
24 /*
25  * Tracing in Contrail Agent
26  */
27 #define gmpr_trace_agent(...) \
28  gmpx_trace(NULL, __VA_ARGS__)
29 
30 /*
31  * Error event
32  */
33 #define gmpr_post_event(instance, ev, ...) \
34  gmpx_post_event(instance->rinst_context, ev, __VA_ARGS__)
35 
36 
37 /*
38  * Event tracing flags.
39  *
40  * Beware that the low order bits are defined in gmp_trace.h!
41  */
42 
43 #define GMPR_TRACE_GROUP 0x00000100 /* Group activity */
44 #define GMPR_TRACE_HOST_NOTIFY 0x00000200 /* Host notification */
45 #define GMPR_TRACE_CLIENT_NOTIFY 0x00000400 /* Client notification */
46 
47 extern const char *
49 extern const char *
gmpr_client_host_notification_type
Definition: gmp_router.h:261
const char * gmpr_host_notif_string(gmpr_client_host_notification_type type)
gmpr_client_notification_type
Definition: gmp_router.h:231
uint8_t type
Definition: load_balance.h:109
const char * gmpr_client_notif_string(gmpr_client_notification_type type)