Kea 2.7.5
|
#include <config.h>
#include <perfmon_log.h>
#include <perfmon_mgr.h>
#include <cc/command_interpreter.h>
#include <dhcpsrv/cfgmgr.h>
#include <hooks/hooks.h>
#include <process/daemon.h>
Go to the source code of this file.
Namespaces | |
namespace | isc |
Defines the logger used by the top-level component of kea-lfc. | |
namespace | isc::perfmon |
Functions | |
int | dhcp4_srv_configured (CalloutHandle &) |
int | dhcp6_srv_configured (CalloutHandle &) |
int | load (LibraryHandle &handle) |
This function is called when the library is loaded. | |
int | multi_threading_compatible () |
This function is called to retrieve the multi-threading compatibility. | |
int | perfmon_control (CalloutHandle &handle) |
This is a command callout for 'perfmon-control' command. | |
int | perfmon_get_all_durations (CalloutHandle &handle) |
This is a command callout for 'perfmon-get-all-durations' command. | |
int | pkt4_send (CalloutHandle &handle) |
This callout is called at the "pkt4_send" hook. | |
int | pkt6_send (CalloutHandle &handle) |
This callout is called at the "pkt6_send" hook. | |
int | unload () |
This function is called when the library is unloaded. | |
Variables | |
PerfMonMgrPtr | isc::perfmon::mgr |
PerfMonMgr singleton. | |
int dhcp4_srv_configured | ( | CalloutHandle & | ) |
Definition at line 38 of file perfmon_callouts.cc.
References isc::log::DBGLVL_TRACE_BASIC, isc::dhcp::IfaceMgr::instance(), LOG_DEBUG, PERFMON_DHCP4_SOCKET_RECEIVED_TIME_SUPPORT, and isc::perfmon::perfmon_logger.
int dhcp6_srv_configured | ( | CalloutHandle & | ) |
Definition at line 46 of file perfmon_callouts.cc.
References isc::log::DBGLVL_TRACE_BASIC, isc::dhcp::IfaceMgr::instance(), LOG_DEBUG, PERFMON_DHCP6_SOCKET_RECEIVED_TIME_SUPPORT, and isc::perfmon::perfmon_logger.
int load | ( | LibraryHandle & | handle | ) |
This function is called when the library is loaded.
handle | library handle |
Register commands.
Definition at line 142 of file perfmon_callouts.cc.
References isc::hooks::LibraryHandle::getParameters(), isc::process::Daemon::getProcName(), isc::dhcp::CfgMgr::instance(), isc_throw, LOG_ERROR, LOG_INFO, isc::perfmon::mgr, perfmon_control(), perfmon_get_all_durations(), PERFMON_INIT_FAILED, PERFMON_INIT_OK, isc::perfmon::perfmon_logger, and isc::hooks::LibraryHandle::registerCommandCallout().
int multi_threading_compatible | ( | ) |
This function is called to retrieve the multi-threading compatibility.
Definition at line 188 of file perfmon_callouts.cc.
int perfmon_control | ( | CalloutHandle & | handle | ) |
This is a command callout for 'perfmon-control' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 124 of file perfmon_callouts.cc.
References isc::perfmon::mgr.
Referenced by load().
int perfmon_get_all_durations | ( | CalloutHandle & | handle | ) |
This is a command callout for 'perfmon-get-all-durations' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 134 of file perfmon_callouts.cc.
References isc::perfmon::mgr.
Referenced by load().
int pkt4_send | ( | CalloutHandle & | handle | ) |
This callout is called at the "pkt4_send" hook.
handle | CalloutHandle which provides access to context. |
Definition at line 59 of file perfmon_callouts.cc.
References isc::log::DBGLVL_TRACE_DETAIL, isc::hooks::CalloutHandle::getArgument(), isc::hooks::CalloutHandle::getStatus(), LOG_DEBUG, isc::perfmon::mgr, isc::hooks::CalloutHandle::NEXT_STEP_DROP, isc::hooks::CalloutHandle::NEXT_STEP_SKIP, PERFMON_DHCP4_PKT_PROCESS_ERROR, and isc::perfmon::perfmon_logger.
int pkt6_send | ( | CalloutHandle & | handle | ) |
This callout is called at the "pkt6_send" hook.
handle | CalloutHandle which provides access to context. |
Definition at line 91 of file perfmon_callouts.cc.
References isc::log::DBGLVL_TRACE_DETAIL, isc::hooks::CalloutHandle::getArgument(), isc::hooks::CalloutHandle::getStatus(), LOG_DEBUG, isc::perfmon::mgr, isc::hooks::CalloutHandle::NEXT_STEP_DROP, isc::hooks::CalloutHandle::NEXT_STEP_SKIP, PERFMON_DHCP6_PKT_PROCESS_ERROR, and isc::perfmon::perfmon_logger.
int unload | ( | ) |
This function is called when the library is unloaded.
Definition at line 180 of file perfmon_callouts.cc.
References LOG_INFO, PERFMON_DEINIT_OK, and isc::perfmon::perfmon_logger.