Debug.h File Reference
#include "base/Here.h"
#include "mem/AllocatorProxy.h"
#include <iostream>
#include <sstream>
#include <iomanip>
Include dependency graph for Debug.h:

Go to the source code of this file.

Classes

class  Debug
 
class  Debug::Context
 meta-information for debugs() or a similar debugging call More...
 
class  Raw
 
class  RawPointerT< Pointer >
 debugs objects pointed by possibly nil pointers: label=object More...
 
class  AsHex< Integer >
 std::ostream manipulator to print integers as hex numbers prefixed by 0x More...
 

Macros

#define assert(EX)   ((EX)?((void)0):xassert("EX", __FILE__, __LINE__))
 
#define MAX_DEBUG_SECTIONS   100
 
#define DBG_CRITICAL   0
 
#define DBG_IMPORTANT   1
 
#define DBG_DATA   9
 
#define DBG_PARSE_NOTE(x)   (opt_parse_cfg_only?0:(x))
 
#define debug_log   DebugStream()
 change-avoidance macro; new code should call DebugStream() instead More...
 
#define debugs(SECTION, LEVEL, CONTENT)
 
#define MYNAME   __FUNCTION__ << " "
 

Typedefs

typedef int Ctx
 

Functions

Ctx ctx_enter (const char *descr)
 
void ctx_exit (Ctx ctx)
 
FILE * DebugStream ()
 
void StopUsingDebugLog ()
 start logging to stderr (instead of cache.log, if any) More...
 
void ResyncDebugLog (FILE *newDestination)
 a hack for low-level file descriptor manipulations in ipcCreate() More...
 
std::ostream & ForceAlert (std::ostream &s)
 
std::ostream & HERE (std::ostream &s)
 
std::ostream & operator<< (std::ostream &os, const uint8_t d)
 
void _db_init (const char *logfile, const char *options)
 
void _db_set_syslog (const char *facility)
 
void _db_rotate_log (void)
 
std::ostream & operator<< (std::ostream &os, const Raw &raw)
 
template<class Pointer >
RawPointerT< Pointer > RawPointer (const char *label, const Pointer &ptr)
 convenience wrapper for creating RawPointerT<> objects More...
 
template<class Pointer >
std::ostream & operator<< (std::ostream &os, const RawPointerT< Pointer > &pd)
 prints RawPointerT<>, dereferencing the raw pointer if possible More...
 
template<class Integer >
std::ostream & operator<< (std::ostream &os, const AsHex< Integer > number)
 
template<class Integer >
AsHex< Integer > asHex (const Integer n)
 a helper to ease AsHex object creation More...
 

Macro Definition Documentation

◆ assert

#define assert (   EX)    ((EX)?((void)0):xassert("EX", __FILE__, __LINE__))

Definition at line 33 of file Debug.h.

◆ DBG_CRITICAL

#define DBG_CRITICAL   0

critical messages always shown when they occur

Definition at line 45 of file Debug.h.

◆ DBG_DATA

#define DBG_DATA   9

output is a large data dump only necessary for advanced debugging

Definition at line 48 of file Debug.h.

◆ DBG_IMPORTANT

#define DBG_IMPORTANT   1

important messages always shown when their section is being checked

Definition at line 46 of file Debug.h.

◆ DBG_PARSE_NOTE

#define DBG_PARSE_NOTE (   x)    (opt_parse_cfg_only?0:(x))

output is always to be displayed on '-k parse' but at level-x normally.

Definition at line 50 of file Debug.h.

◆ debug_log

#define debug_log   DebugStream()

Definition at line 114 of file Debug.h.

◆ debugs

#define debugs (   SECTION,
  LEVEL,
  CONTENT 
)
Value:
do { \
const int _dbg_level = (LEVEL); \
if (Debug::Enabled((SECTION), _dbg_level)) { \
std::ostream &_dbo = Debug::Start((SECTION), _dbg_level); \
if (_dbg_level > DBG_IMPORTANT) { \
_dbo << (SECTION) << ',' << _dbg_level << "| " \
<< Here() << ": "; \
} \
_dbo << CONTENT; \
} \
} while (/*CONSTCOND*/ 0)

Definition at line 128 of file Debug.h.

◆ MAX_DEBUG_SECTIONS

#define MAX_DEBUG_SECTIONS   100

Definition at line 42 of file Debug.h.

◆ MYNAME

#define MYNAME   __FUNCTION__ << " "

Definition at line 170 of file Debug.h.

Typedef Documentation

◆ Ctx

typedef int Ctx

Definition at line 37 of file Debug.h.

Function Documentation

◆ _db_init()

void _db_init ( const char *  logfile,
const char *  options 
)

◆ _db_rotate_log()

void _db_rotate_log ( void  )

◆ _db_set_syslog()

void _db_set_syslog ( const char *  facility)

Definition at line 55 of file stub_debug.cc.

Referenced by mainHandleCommandLineOption().

◆ asHex()

template<class Integer >
AsHex<Integer> asHex ( const Integer  n)
inline

Definition at line 282 of file Debug.h.

Referenced by Acl::ConnMark::match(), and operator<<().

◆ ctx_enter()

◆ ctx_exit()

void ctx_exit ( Ctx  ctx)

◆ DebugStream()

FILE* DebugStream ( )

cache.log FILE or, as the last resort, stderr stream; may be nil during static initialization and destruction!

Definition at line 78 of file debug.cc.

References DebugFile::file(), and TheLog.

◆ ForceAlert()

std::ostream& ForceAlert ( std::ostream &  s)

Does not change the stream being manipulated. Exists for its side effect: In a debugs() context, forces the message to become a syslog ALERT. Outside of debugs() context, has no effect and should not be used.

Definition at line 877 of file debug.cc.

References Debug::ForceAlert().

Referenced by death(), and fatal_common().

◆ HERE()

std::ostream& HERE ( std::ostream &  s)
inline

stream manipulator which does nothing.

Deprecated:
Do not add to new code, and remove when editing old code

Its purpose is to inactivate calls made following previous debugs() guidelines such as debugs(1,2, HERE << "some message");

His former objective is now absorbed in the debugs call itself

Definition at line 157 of file Debug.h.

Referenced by _comm_close(), StoreEntry::abort(), FwdState::abort(), HttpStateData::abortAll(), ConnStateData::abortChunkedRequestBody(), Client::abortOnBadEntry(), Auth::User::absorb(), Comm::TcpAcceptor::acceptNext(), Comm::TcpAcceptor::acceptOne(), Adaptation::AccessCheck::AccessCheck(), Adaptation::AccessCheck::AccessCheckCallbackWrapper(), aclDomainCompare(), aclGetDenyInfoPage(), aclMatchExternal(), Mgr::ActionWriter::ActionWriter(), Adaptation::Ecap::XactionRep::adaptationDelayed(), HttpRequest::adaptHistory(), Client::adaptOrFinalizeReply(), Client::adaptVirginReplyBody(), Mgr::StoreIoAction::add(), Mgr::IoAction::add(), Mgr::ServiceTimesAction::add(), DiskdAction::add(), Mgr::CountersAction::add(), Mgr::InfoAction::add(), Mgr::IntervalAction::add(), Fs::Ufs::UFSSwapDir::addDiskRestore(), Auth::User::addIp(), Auth::UserRequest::AddReplyAuthHeader(), Ftp::Gateway::appendSuccessHeader(), Mgr::Inquirer::applyQueryParams(), Auth::UserRequest::authenticate(), AuthenticateAcl(), authenticateActiveSchemeCount(), authenticateSchemeCount(), Adaptation::Answer::Block(), Adaptation::Ecap::XactionRep::blockVirgin(), BodyPipe::BodyPipe(), Ipc::Coordinator::broadcastSignal(), ConnStateData::buildSslCertGenerationParams(), Adaptation::Icap::ServiceRep::busyCheckpoint(), Adaptation::Icap::ModXact::bypassFailure(), TunnelStateData::Connection::bytesIn(), ACLChecklist::calcImplicitAnswer(), HttpReply::calcMaxBodySize(), Adaptation::AccessCheck::callBack(), Rock::IoState::callBack(), AsyncJob::callEnd(), Adaptation::Icap::Xaction::callEnd(), Ipc::Inquirer::callException(), Ipc::Forwarder::callException(), Adaptation::Icap::ModXact::callException(), Adaptation::Icap::ServiceRep::callWhenReady(), AsyncJob::canBeCalled(), AsyncCall::cancel(), Adaptation::Icap::Launcher::canRepeat(), Rock::SwapDir::canStore(), Store::Disk::canStore(), IpcIoFile::canWait(), Adaptation::Icap::Options::cfgIntHeader(), Adaptation::Icap::Options::cfgTransferList(), Adaptation::Icap::ServiceRep::changeOptions(), Adaptation::AccessCheck::check(), Adaptation::AccessCheck::checkCandidates(), Adaptation::Icap::ModXact::checkConsuming(), IdentLookup::checkForAsync(), ProxyAuthLookup::checkForAsync(), FwdState::checkRetry(), Ipc::Mem::Segment::checkSupport(), IpcIoFile::CheckTimeouts(), Client::cleanAdaptation(), Comm::ConnOpener::cleanFd(), Adaptation::Config::clear(), BodyPipe::clearConsumer(), HttpRequest::clearError(), IdleConnList::clearHandlers(), BodyPipe::clearProducer(), client_Inst(), ClientRequestContext::clientAccessCheck2(), ConnStateData::clientAfterReadingRequests(), ConnStateData::clientParseRequests(), clientProcessRequestFinished(), ClientRequestContext::clientRedirectDone(), ClientRequestContext::clientRedirectStart(), ClientSocketContextPushDeferredIfNeeded(), MmappedFile::close(), DiskThreadsDiskFile::close(), IcmpSquid::Close(), Fs::Ufs::UFSStoreState::closeCompleted(), Adaptation::Icap::Xaction::closeConnection(), IdleConnList::closeN(), HttpStateData::closeServer(), Mgr::ServiceTimesAction::collect(), Mgr::CountersAction::collect(), comm_connect_addr(), comm_flush_updates(), comm_import_opened(), comm_init_opened(), comm_open_uds(), comm_update_fd(), commHalfClosedCheck(), commHalfClosedReader(), commHandleWriteHelper(), commSetConnTimeout(), commStartHalfClosedMonitor(), commStopHalfClosedMonitor(), commUnsetConnTimeout(), commUnsetFdTimeout(), FwdState::completed(), Client::completeForwarding(), ConnStateData::connFinishedWithConn(), constructHelperQuery(), HttpStateData::continueAfterParsingHeader(), TunnelStateData::copy(), Mgr::CountersAction::CountersAction(), Ipc::Mem::Segment::create(), Fs::Ufs::UFSStrategy::create(), Rock::SwapDir::create(), Auth::SchemeConfig::CreateAuthUser(), Rock::SwapDir::createStoreIO(), Ftp::Gateway::dataChannelConnected(), TunnelStateData::Connection::dataSent(), Adaptation::Icap::ModXact::decideOnParsingBody(), Adaptation::Icap::ModXact::decideOnPreview(), Adaptation::Icap::ModXact::decideWritingAfterPreview(), Ipc::UdsSender::delayedRetry(), Ipc::Forwarder::DequeueRequest(), Ipc::Inquirer::DequeueRequest(), Fs::Ufs::UFSSwapDir::dereference(), Rock::SwapDir::dereference(), destroyStoreEntry(), Adaptation::Icap::ServiceRep::detach(), HttpRequest::detailError(), JobDialer< BodyConsumer >::dial(), Adaptation::Icap::Xaction::dieOnConnectionFailure(), Fs::Ufs::UFSSwapDir::DirClean(), Adaptation::Icap::ModXact::disableBypass(), DiskdAction::DiskdAction(), DiskerClose(), IpcIoFile::DiskerHandleMoreRequests(), IpcIoFile::DiskerHandleRequest(), IpcIoFile::DiskerHandleRequests(), diskerRead(), Comm::TcpAcceptor::doAccept(), ClientHttpRequest::doCallouts(), Comm::ConnOpener::doConnect(), store_client::doCopy(), Ipc::Port::doListen(), IcmpSquid::DomainPing(), Ipc::Forwarder::doneAll(), Client::doneSendingRequestBody(), HttpStateData::doneSendingRequestBody(), Comm::DoSelect(), Fs::Ufs::UFSSwapDir::doubleCheck(), Mgr::IndexAction::dump(), Mgr::FunAction::dump(), Mgr::MenuAction::dump(), Mgr::StoreIoAction::dump(), Mgr::IoAction::dump(), Format::Format::dump(), Mgr::ServiceTimesAction::dump(), DiskdAction::dump(), Mgr::CountersAction::dump(), Mgr::InfoAction::dump(), Mgr::IntervalAction::dump(), Fs::Ufs::UFSSwapDir::dumpEntry(), Comm::ConnOpener::earlyAbort(), Adaptation::Icap::ModXact::echoMore(), BodyPipe::enableAutoConsumption(), ClientHttpRequest::endRequestSatisfaction(), Adaptation::Answer::Error(), TunnelStateData::Connection::error(), errorSendComplete(), esiBufferRecipient(), Adaptation::Icap::ModXact::estimateVirginBody(), HttpReply::expectedBodyTooLarge(), ConnStateData::expectNoForwarding(), externalAclHandleReply(), acl_ip_data::FactoryParse(), FwdState::fail(), Ipc::FdNote(), FileMap::FileMap(), Mgr::Action::fillEntry(), Mgr::Filler::Filler(), Adaptation::AccessRule::finalize(), Adaptation::ServiceGroup::finalize(), Adaptation::Config::finalize(), FinalizeEach(), IdleConnList::findIndexOf(), Ipc::FewToFewBiQueue::findOldest(), Adaptation::ServiceGroup::findService(), ConnStateData::finishDechunkingRequest(), HttpStateData::finishingBrokenPost(), HttpStateData::finishingChunkedRequest(), Adaptation::Ecap::XactionRep::forgetVb(), Adaptation::Answer::Forward(), Snmp::Forwarder::Forwarder(), Mgr::Forwarder::Forwarder(), mem_hdr::freeContent(), ESIContext::freeResources(), ftpListDir(), ftpReadCwd(), ftpReadEPRT(), ftpReadList(), ftpReadMdtm(), ftpReadMkdir(), ftpReadPass(), ftpReadPORT(), ftpReadRest(), ftpReadRetr(), ftpReadSize(), ftpReadTransferDone(), ftpReadType(), ftpReadUser(), ftpReadWelcome(), ftpRestOrList(), ftpSendCwd(), ftpSendList(), ftpSendMkdir(), ftpSendNlst(), ftpSendPORT(), ftpSendReply(), ftpSendRest(), ftpSendRetr(), ftpSendStor(), ftpTraverseDirectory(), ftpTrySlashHack(), ftpWriteTransferDone(), Mgr::FunAction::FunAction(), Ssl::ErrorDetailsManager::getCachedDetails(), Adaptation::Icap::ServiceRep::getConnection(), Ssl::ErrorDetailsManager::getErrorDetail(), Ip::Address::getInAddr(), Fs::Ufs::RebuildState::getNextFile(), getRoundRobinParent(), Ip::Address::getSockAddr(), ConnStateData::getSslContextStart(), gopherReadReply(), gopherSendComplete(), gopherTimeout(), Adaptation::ServiceConfig::grokBool(), Adaptation::ServiceConfig::grokUri(), FileMap::grow(), Ftp::Gateway::hackShortcut(), HttpStateData::handle1xx(), Adaptation::Icap::ModXact::handle206PartialContent(), Client::handleAdaptationAborted(), Adaptation::Iterator::handleAdaptationBlock(), Client::handleAdaptationBlocked(), Client::handleAdaptationCompleted(), Adaptation::Iterator::handleAdaptationError(), ClientHttpRequest::handleAdaptationFailure(), Adaptation::Iterator::handleAdaptedHeader(), Client::handleAdaptedHeader(), ClientHttpRequest::handleAdaptedHeader(), Ipc::Coordinator::handleCacheMgrRequest(), ConnStateData::handleChunkedRequestBody(), Adaptation::Icap::OptXact::handleCommConnected(), Adaptation::Icap::ModXact::handleCommConnected(), Adaptation::Icap::OptXact::handleCommRead(), Adaptation::Icap::Xaction::handleCommTimedout(), Adaptation::Icap::OptXact::handleCommWrote(), Adaptation::Icap::ModXact::handleCommWrote(), Snmp::Forwarder::handleException(), Ipc::Forwarder::handleException(), Ipc::Inquirer::handleException(), Store::Controller::handleIdleEntry(), Client::handleMoreAdaptedBodyAvailable(), Client::handleMoreRequestBodyAvailable(), HttpStateData::handleMoreRequestBodyAvailable(), Adaptation::Icap::ServiceRep::handleNewOptions(), IpcIoFile::HandleNotification(), IpcIoFile::HandleOpenResponse(), Ipc::Forwarder::HandleRemoteAck(), Ipc::Forwarder::handleRemoteAck(), Ipc::Inquirer::handleRemoteAck(), ConnStateData::handleRequestBodyData(), Client::handleRequestBodyProducerAborted(), Ftp::Gateway::handleRequestBodyProducerAborted(), Client::handleRequestBodyProductionEnded(), IpcIoFile::HandleResponses(), Ipc::Coordinator::handleSearchRequest(), Ipc::Coordinator::handleSharedListenRequest(), Ipc::Strand::handleSnmpRequest(), Ipc::Coordinator::handleSnmpRequest(), Ipc::Strand::handleSnmpResponse(), Ipc::Coordinator::handleSnmpResponse(), FwdState::handleUnregisteredServerEnd(), ClientRequestContext::hostHeaderIpVerify(), ClientRequestContext::hostHeaderVerify(), httpHeaderParseQuotedString(), HttpRequest::HttpRequest(), httpsAccept(), HttpStateData::HttpStateData(), HttpRequest::icapHistory(), DelayUser::id(), idnsGrokReply(), idnsInitVCConnected(), idnsReadVC(), idnsSendSlaveAAAAQuery(), Rock::SwapDir::ignoreReferences(), Mgr::IndexAction::IndexAction(), Mgr::InfoAction::InfoAction(), Fs::Ufs::UFSSwapDir::init(), Rock::SwapDir::init(), Adaptation::Icap::InitModule(), Ipc::Inquirer::inquire(), Snmp::Inquirer::Inquirer(), Mgr::Inquirer::Inquirer(), Ipc::Inquirer::Inquirer(), Mgr::IntervalAction::IntervalAction(), Mgr::IoAction::IoAction(), ipcacheStatPrint(), Ip::Intercept::IpfwInterception(), Adaptation::AccessCheck::isCandidate(), TunnelStateData::keepGoingAfterRead(), Adaptation::Icap::Launcher::launchXaction(), Ftp::Gateway::listenForDataChannel(), TemplateFile::loadFor(), Rock::Rebuild::loadingSteps(), Ip::Intercept::Lookup(), Ip::Address::lookupHostIP(), Comm::ConnOpener::lookupLocalAddress(), main(), AsyncCall::make(), Adaptation::Icap::ModXact::makeAdaptedBodyPipe(), Mmapping::map(), ACLChecklist::markFinished(), ACLIdent::match(), StoreEntry::mayStartSwapOut(), mem_hdr::mem_hdr(), MemBlob::MemBlob(), Store::Controller::memoryOut(), Mgr::MenuAction::MenuAction(), MmappedFile::MmappedFile(), Adaptation::Icap::ModXact::ModXact(), Adaptation::Ecap::XactionRep::moveAbContent(), Adaptation::Ecap::XactionRep::noteAbContentDone(), Client::noteAdaptationAclCheckDone(), ClientHttpRequest::noteAdaptationAclCheckDone(), Adaptation::Icap::Launcher::noteAdaptationAnswer(), Adaptation::Icap::ServiceRep::noteAdaptationAnswer(), Adaptation::AccessCheck::noteAnswer(), ClientHttpRequest::noteBodyProducerAborted(), Snmp::Forwarder::noteCommClosed(), Snmp::Inquirer::noteCommClosed(), Mgr::Inquirer::noteCommClosed(), Mgr::Forwarder::noteCommClosed(), Mgr::StoreToCommWriter::noteCommClosed(), Adaptation::Icap::Xaction::noteCommWrote(), Mgr::StoreToCommWriter::noteCommWrote(), Adaptation::Icap::ServiceRep::noteConnectionFailed(), Adaptation::Icap::ServiceRep::noteFailure(), Adaptation::Icap::Xaction::noteInitiatorAborted(), Ipc::Port::noteRead(), Mgr::StoreToCommWriter::noteStoreCopied(), Adaptation::Icap::ServiceRep::noteTimeToNotify(), Adaptation::Icap::ServiceRep::noteTimeToUpdate(), Mgr::Inquirer::noteWroteHeader(), Adaptation::Icap::Launcher::noteXactAbort(), IpcIoFile::Notify(), Ipc::Coordinator::notifySearcher(), Mgr::OfflineToggleAction::OfflineToggleAction(), IcmpSquid::Open(), Ipc::Mem::Segment::open(), Fs::Ufs::UFSStrategy::open(), Fs::Ufs::UFSStoreState::openDone(), Ipc::Coordinator::openListenSocket(), Fs::Ufs::UFSSwapDir::openLog(), Rock::SwapDir::openStoreIO(), Snmp::Var::operator+=(), Snmp::Var::operator/=(), Snmp::Var::operator<(), Snmp::Var::operator>(), Adaptation::Icap::ServiceRep::optionsFetchTime(), Ssl::ErrorDetailFile::parse(), ACLIdent::parse(), Format::Token::parse(), Format::Format::parse(), Adaptation::Icap::ModXact::parseBody(), parseConfigFileOrThrow(), Adaptation::Icap::ModXact::parseHeaders(), Adaptation::Icap::ModXact::parseIcapHead(), Ftp::Gateway::parseListing(), CacheManager::ParseUrl(), Store::Controller::peek(), HttpStateData::persistentConnStatus(), Ip::Intercept::PfInterception(), ConnStateData::pinConnection(), Ipc::BaseMultiQueue::pop(), PconnPool::popStored(), BodyPipe::postAppend(), BodyPipe::postConsume(), ACLChecklist::preCheck(), Adaptation::Icap::ModXact::prepEchoing(), Adaptation::Icap::ModXact::prepPartialBodyEchoing(), Adaptation::Ecap::XactionRep::preserveVb(), Ftp::Gateway::processHeadResponse(), Adaptation::Icap::History::processingTime(), HttpStateData::processReply(), HttpStateData::processReplyBody(), Ftp::Gateway::processReplyBody(), IdleConnList::push(), IpcIoFile::push(), PconnPool::push(), Ipc::BaseMultiQueue::push(), Adaptation::Icap::ServiceRep::putConnection(), Ipc::QueueReader::QueueReader(), ConnStateData::quitAfterError(), ClientInfo::quota(), MmappedFile::read(), BlockingFile::read(), IpcIoFile::read(), TunnelStateData::readClient(), IpcIoFile::readCompleted(), Adaptation::Icap::ModXact::readMore(), ConnStateData::readNextRequest(), WhoisState::readReply(), TunnelStateData::ReadServer(), TunnelStateData::readServer(), Fs::Ufs::RebuildState::rebuildFromDirectory(), Fs::Ufs::RebuildState::rebuildFromSwapLog(), Fs::Ufs::RebuildState::rebuildStep(), Ipc::Strand::receive(), Ipc::Coordinator::receive(), HttpReply::receivedBodyTooLarge(), Mgr::ReconfigureAction::ReconfigureAction(), IcmpPinger::Recv(), IcmpSquid::Recv(), Icmp6::Recv(), Icmp4::Recv(), redirectHandleReply(), Fs::Ufs::UFSSwapDir::reference(), Rock::SwapDir::reference(), FwdState::reforward(), CacheManager::registerProfile(), Ipc::Strand::registerSelf(), Ipc::Coordinator::registerStrand(), Fs::Ufs::UFSSwapDir::replacementAdd(), Fs::Ufs::UFSSwapDir::replacementRemove(), Ipc::Forwarder::RequestTimedOut(), Ipc::Forwarder::requestTimedOut(), Ipc::Inquirer::RequestTimedOut(), Ipc::Inquirer::requestTimedOut(), helper_server::requestTimeout(), Mgr::FunAction::respond(), Mgr::Action::respond(), Mgr::InfoAction::respond(), FwdState::retryOrBail(), HttpStateData::reusableReply(), Mgr::RotateAction::RotateAction(), Mgr::Action::run(), HttpRequest::sanityCheckStartLine(), Format::Token::scanForToken(), EventScheduler::schedule(), Mgr::StoreToCommWriter::scheduleCommWrite(), Adaptation::Icap::ServiceRep::scheduleNotification(), Mgr::StoreToCommWriter::scheduleStoreCopy(), Adaptation::Icap::ServiceRep::scheduleUpdate(), ConnStateData::sendControlMsg(), IcmpSquid::SendEcho(), Icmp6::SendEcho(), Icmp4::SendEcho(), Snmp::Forwarder::sendError(), Mgr::Forwarder::sendError(), Client::sendMoreRequestBody(), HttpStateData::sendRequest(), Snmp::Inquirer::sendResponse(), Snmp::SendResponse(), IcmpPinger::SendResult(), Client::sentRequestBody(), Client::serverComplete(), Client::serverComplete2(), Adaptation::Service::Service(), Mgr::ServiceTimesAction::ServiceTimesAction(), BodyPipe::setBodySize(), BodyPipe::setConsumerIfNotLate(), Client::setFinalReply(), Adaptation::History::setFutureServices(), Adaptation::Icap::Xaction::setOutcome(), Comm::SetSelect(), Rock::StoreFileSystem::setup(), Client::setVirginReply(), MemStore::shouldCache(), Mgr::ShutdownAction::ShutdownAction(), Adaptation::Ecap::XactionRep::sinkVb(), snmp_meshCtblFn(), snmpAggrType(), snmpDecodePacket(), ClientRequestContext::sslBumpAccessCheck(), ClientHttpRequest::sslBumpEstablish(), SslBumpEstablish(), ClientHttpRequest::sslBumpNeed(), ClientHttpRequest::sslBumpStart(), ConnStateData::sslCrtdHandleReply(), Mgr::Filler::start(), Mgr::ActionWriter::start(), Adaptation::Icap::History::start(), Snmp::Inquirer::start(), Mgr::Inquirer::start(), Adaptation::AccessCheck::Start(), Mgr::StoreToCommWriter::start(), Ipc::Forwarder::start(), Comm::TcpAcceptor::start(), FwdState::Start(), Client::startAdaptation(), ClientHttpRequest::startAdaptation(), BodyPipe::startAutoConsumptionIfNeeded(), MemStore::startCaching(), ConnStateData::startDechunkingRequest(), Adaptation::Icap::ServiceRep::startGettingOptions(), Ipc::StartListening(), Client::startRequestBodyFlow(), Adaptation::Iterator::step(), Adaptation::Icap::History::stop(), Adaptation::Icap::ModXact::stopBackup(), ConnStateData::stopReceiving(), ConnStateData::stopSending(), Adaptation::Icap::ModXact::stopSending(), Adaptation::Icap::ModXact::stopWriting(), StoreEntry::storeClientType(), storeClose(), Mgr::StoreIoAction::StoreIoAction(), clientReplyContext::storeNotOKTransferDone(), clientReplyContext::storeOKTransferDone(), storeRebuildParseEntry(), storeSwapInStart(), storeSwapOutFileClosed(), Mgr::StoreToCommWriter::StoreToCommWriter(), Comm::TcpAcceptor::subscribe(), Adaptation::Icap::ServiceRep::suspend(), Mgr::Filler::swanSong(), Mgr::StoreToCommWriter::swanSong(), Rock::Rebuild::swanSong(), Ipc::Inquirer::swanSong(), Ipc::Forwarder::swanSong(), Adaptation::Initiate::swanSong(), Comm::TcpAcceptor::swanSong(), Adaptation::Icap::Xaction::swanSong(), ConnStateData::swanSong(), Adaptation::Icap::ModXact::swanSong(), Adaptation::Icap::ModXactLauncher::swanSong(), StoreEntry::swapOut(), CommConnectCbParams::syncWithComm(), CommIoCbParams::syncWithComm(), Ipc::Strand::timedout(), Ipc::UdsSender::timedout(), Comm::ConnOpener::timeout(), Adaptation::AccessCheck::topGroup(), Ip::Intercept::TproxyTransparent(), Rock::SwapDir::trackReferences(), Fs::Ufs::UFSStoreState::tryClosing(), Adaptation::Ecap::ServiceRep::tryConfigureAndStart(), TemplateFile::tryLoadTemplate(), tunnelClientClosed(), tunnelConnectedWriteDone(), tunnelErrorComplete(), tunnelServerClosed(), tunnelStart(), tunnelTimeout(), Ipc::UdsOp::UdsOp(), uniqueHostname(), Fs::Ufs::UFSSwapDir::unlinkFile(), Mmapping::unmap(), ConnStateData::unpinConnection(), FwdState::unregister(), Comm::TcpAcceptor::unsubscribe(), Adaptation::History::updateNextServices(), Adaptation::Iterator::updatePlan(), Adaptation::Ecap::XactionRep::useAdapted(), Adaptation::AccessCheck::usedDynamicRules(), FwdState::useDestinations(), Auth::User::User(), Auth::UserRequest::UserRequest(), Adaptation::Ecap::XactionRep::useVirgin(), Auth::UserRequest::valid(), Adaptation::Icap::ModXact::virginConsume(), IpcIoFile::WaitBeforePop(), Adaptation::Icap::ModXact::waitForService(), ConnStateData::whenClientIpKnown(), whoisTimeout(), Comm::Write(), MmappedFile::write(), BlockingFile::write(), Fs::Ufs::UFSStoreState::write(), IpcIoFile::write(), Ipc::UdsSender::write(), mem_hdr::writeAvailable(), Fs::Ufs::UFSSwapDir::writeCleanStart(), TunnelStateData::writeClientDone(), Fs::Ufs::UFSStoreState::writeCompleted(), IpcIoFile::writeCompleted(), BlockingFile::writeDone(), Adaptation::Icap::ModXact::writeMore(), Adaptation::Icap::ModXact::writePreviewBody(), Adaptation::Icap::ModXact::writePrimeBody(), TunnelStateData::writeServerDone(), Adaptation::Icap::ModXact::writeSomeBody(), Rock::IoState::writeToDisk(), Ipc::UdsSender::wrote(), HttpStateData::wroteLast(), ACLFilledChecklist::~ACLFilledChecklist(), BodyPipe::~BodyPipe(), BodyPipeCheckout::~BodyPipeCheckout(), ConnStateData::~ConnStateData(), HttpRequest::~HttpRequest(), HttpStateData::~HttpStateData(), Ipc::Inquirer::~Inquirer(), MemBlob::~MemBlob(), Ipc::Mem::Segment::~Segment(), Ssl::ServerBump::~ServerBump(), Mgr::StoreToCommWriter::~StoreToCommWriter(), Ipc::UdsOp::~UdsOp(), Auth::User::~User(), and Auth::UserRequest::~UserRequest().

◆ operator<<() [1/4]

template<class Integer >
std::ostream& operator<< ( std::ostream &  os,
const AsHex< Integer >  number 
)
inline

Definition at line 272 of file Debug.h.

◆ operator<<() [2/4]

std::ostream& operator<< ( std::ostream &  os,
const Raw raw 
)
inline

Definition at line 226 of file Debug.h.

References Raw::print().

◆ operator<<() [3/4]

template<class Pointer >
std::ostream& operator<< ( std::ostream &  os,
const RawPointerT< Pointer > &  pd 
)
inline

Definition at line 252 of file Debug.h.

References RawPointerT< Pointer >::label, and RawPointerT< Pointer >::ptr.

◆ operator<<() [4/4]

std::ostream& operator<< ( std::ostream &  os,
const uint8_t  d 
)
inline

Definition at line 174 of file Debug.h.

◆ RawPointer()

template<class Pointer >
RawPointerT<Pointer> RawPointer ( const char *  label,
const Pointer &  ptr 
)
inline

Definition at line 244 of file Debug.h.

Referenced by Security::PeerConnector::sslCrtvdHandleReply().

◆ ResyncDebugLog()

void ResyncDebugLog ( FILE *  newDestination)

Definition at line 89 of file debug.cc.

References DebugFile::file_, and TheLog.

Referenced by ipcCreate().

◆ StopUsingDebugLog()

void StopUsingDebugLog ( )

Definition at line 83 of file debug.cc.

References DebugFile::clear(), and TheLog.

Referenced by sendSignal().

#define Here()
source code location of the caller
Definition: Here.h:15
static std::ostringstream & Start(const int section, const int level)
opens debugging context and returns output buffer
Definition: debug.cc:829
#define DBG_IMPORTANT
Definition: Debug.h:46
static bool Enabled(const int section, const int level)
whether debugging the given section and the given level produces output
Definition: Debug.h:75
static void Finish()
logs output buffer created in Start() and closes debugging context
Definition: debug.cc:850

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors