OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agent_cmn.h File Reference
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <boost/intrusive_ptr.hpp>
#include <boost/bind.hpp>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/nil_generator.hpp>
#include <tbb/atomic.h>
#include <tbb/mutex.h>
#include <io/event_manager.h>
#include <db/db.h>
#include <db/db_entry.h>
#include <db/db_table.h>
#include <db/db_table_partition.h>
#include <db/db_table_walker.h>
#include <base/address.h>
#include <base/logging.h>
#include <base/task.h>
#include <base/task_trigger.h>
#include <base/task_annotations.h>
#include <base/dependency.h>
#include <base/lifetime.h>
#include <ifmap/ifmap_agent_parser.h>
#include <ifmap/ifmap_agent_table.h>
#include <sandesh/sandesh_trace.h>
#include <sandesh/common/vns_constants.h>
#include <cmn/agent.h>
#include <cmn/agent_db.h>
#include <cmn/event_notifier.h>
#include <stdio.h>
#include <execinfo.h>
#include <dlfcn.h>
#include <cxxabi.h>
Include dependency graph for agent_cmn.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OPER_IFMAP_TRACE(obj,...)
 
#define IFMAP_ERROR(obj,...)
 

Functions

static bool UnregisterDBTable (DBTable *table, DBTableBase::ListenerId id)
 
static TaskTriggerSafeDBUnregister (DBTable *table, DBTableBase::ListenerId id)
 
static void CfgUuidSet (uint64_t ms_long, uint64_t ls_long, boost::uuids::uuid &u)
 
static void CloseTaskFds (void)
 
bool GetBuildInfo (std::string &build_info_str)
 
std::string AgentBackTrace (int skip)
 

Variables

SandeshTraceBufferPtr OperConfigTraceBuf
 

Macro Definition Documentation

#define IFMAP_ERROR (   obj,
  ... 
)
Value:
do {\
if (LoggingDisabled()) break;\
obj::Send(g_vns_constants.CategoryNames.find(Category::IFMAP_AGENT)->second,\
SandeshLevel::SYS_ERR, __FILE__, __LINE__, ##__VA_ARGS__);\
} while (false)
bool LoggingDisabled()
Definition: logging.cc:24

Definition at line 95 of file agent_cmn.h.

#define OPER_IFMAP_TRACE (   obj,
  ... 
)
Value:
do {\
Oper##obj::TraceMsg(OperConfigTraceBuf, __FILE__, __LINE__, __VA_ARGS__);\
} while (false)
SandeshTraceBufferPtr OperConfigTraceBuf

Definition at line 90 of file agent_cmn.h.

Function Documentation

std::string AgentBackTrace ( int  skip)

Definition at line 1187 of file agent.cc.

Here is the call graph for this function:

static void CfgUuidSet ( uint64_t  ms_long,
uint64_t  ls_long,
boost::uuids::uuid u 
)
inlinestatic

Definition at line 67 of file agent_cmn.h.

static void CloseTaskFds ( void  )
inlinestatic

Definition at line 80 of file agent_cmn.h.

bool GetBuildInfo ( std::string &  build_info_str)

Definition at line 72 of file controller/src/vnsw/agent/contrail/main.cc.

Here is the call graph for this function:

static TaskTrigger* SafeDBUnregister ( DBTable table,
DBTableBase::ListenerId  id 
)
inlinestatic

Definition at line 58 of file agent_cmn.h.

Here is the call graph for this function:

static bool UnregisterDBTable ( DBTable table,
DBTableBase::ListenerId  id 
)
inlinestatic

Definition at line 52 of file agent_cmn.h.

Here is the call graph for this function:

Variable Documentation

SandeshTraceBufferPtr OperConfigTraceBuf