Classes | Defines | Enumerations | Enumerator | Functions | Variables

Debugging
[Common modules]

Collaboration diagram for Debugging:

Classes

class  log_Debugger
 Class to control debugging execution. More...

Defines

#define log_DBG_m(_dbgLevel, _text)
 Debugging is a process of capturing execution of a program to a file.
#define log_DBG_INT_m(_dbgLevel, _text)   { }
#define log_DBG_STACK_m
 Dump current stack to debug file.
#define IVD_COUT_LOG_m(_comment)

Enumerations

enum  log_DbgLevel_t {
  dbg_NONE = 0, dbg_LOW = 1,
  dbg_NORM = 2, dbg_EXTAPI = 3,
  dbg_DETAIL = 4, dbg_SENTINEL
}
 

Debugging verbosity levels.

More...
enum  log_DbgFlags_e {
  dbg_INOUT = 1, dbg_NOHEADER = 1 << 1,
  dbg_COMPACT = 1 << 2, dbg_THROW = 1 << 3,
  dbg_ERRORLOG = 1 << 4, dbg_EXTVERBOSE = 1 << 5,
  dbg_ONLYTHIS = 1 << 6, dbg_FLAGSENTINEL = 1 << 30
}
 

Bit flags that can be used with debugging.

More...

Functions

virtual log_Debugger::~log_Debugger ()
 Destructor automatically closes debugging file if debugging is still active at the end of the program execution.
void log_Debugger::CloseF ()
void log_Debugger::SetFileName (const cmn_Path &a_path)
void log_Debugger::On ()
 Turns on debugging and writes a file header.
void log_Debugger::On (log_DbgLevel_t a_level, UInt32_t a_flags, const string &a_filename="")
void log_Debugger::SetArgs (char a_argLevel, const string &a_argFile, const string &a_argFlags)
void log_Debugger::Off ()
void log_Debugger::SetLevel (log_DbgLevel_t a_level)
void log_Debugger::SetFlags (UInt32_t a_flags)
void log_Debugger::SetProcName (const char *a_procName)
log_DbgLevel_t log_Debugger::GetLevel () const
UInt32_t log_Debugger::GetFlags () const
string log_Debugger::GetArgLevel () const
string log_Debugger::GetArgFile () const
string log_Debugger::GetArgFlags () const
void log_Debugger::WriteHeader (ostringstream &a_dbgFormatted, log_DbgLevel_t a_level, const log_FunctionID &a_fcnID, long a_line)
 Write header of the message based on previously set parameters.
void log_Debugger::Write (log_DbgLevel_t a_level, ostringstream &a_dbgFormatted)
 Writes the formatted debug text to output stream.
void log_Debugger::SetExternalDebugger (void(*a_extDbgOn)(log_DbgLevel_t, bool a_verbose), void(*a_extDbgOff)())
void log_Debugger::ChangeParams (log_DbgLevel_t a_level, UInt32_t a_flags, const string &a_filename)
void IVD_CMN_DECL_d dbg_SetProcName (const char *a_procName)
void IVD_CMN_DECL_d dbg_On ()
 Turn debugging on with latest known debugging parameters.
void IVD_CMN_DECL_d dbg_On (log_DbgLevel_t a_level, UInt32_t a_flags, const string &a_filename="")
 Turn debugging on with new parameters.
void IVD_CMN_DECL_d dbg_SetArgs (char a_argLevel, const string &a_argFile, const string &a_argFlags)
 Turn debugging on with new parameters that are read from arguments or environment variable.
void IVD_CMN_DECL_d dbg_Off ()
bool IVD_CMN_DECL_d dbg_IsActive ()
void IVD_CMN_DECL_d dbg_SetLevel (log_DbgLevel_t a_level)
log_DbgLevel_t IVD_CMN_DECL_d dbg_GetLevel ()
void IVD_CMN_DECL_d dbg_SetFlags (UInt32_t a_flags)
UInt32_t IVD_CMN_DECL_d dbg_GetFlags ()
void IVD_CMN_DECL_d dbg_SetExternalDebugger (void(*a_extDbgOn)(log_DbgLevel_t a_level, bool a_verbose), void(*a_extDbgOff)())
 Function is used by external debugging facility to set pointers to functions that are called at each dbg_On() and dbg_Off() to start and stop external debugging.

Variables

 log_Debugger::log_CLASSID_m
static bool log_Debugger::m_created = false
 Flag to guarantee singleton.
cmn_Mutex log_Debugger::m_debugOut_x
cmn_Mutex log_Debugger::m_onOff_x
log_DbgLevel_t log_Debugger::m_level
UInt32_t log_Debugger::m_flags
bool & log_Debugger::m_active
string log_Debugger::m_procName
string log_Debugger::m_argLevel
string log_Debugger::m_argFile
string log_Debugger::m_argFlags
void(* log_Debugger::m_extDbgOn )(log_DbgLevel_t a_level, bool a_verbose)
 Pointer to exteral function to turn on debugging (CORBA).
void(* log_Debugger::m_extDbgOff )()
 Pointer to exteral function to turn off debugging (CORBA).

Detailed Description

See also:
File, class and function identification
Error logging
ivdcmn Error logging and debugging

Define Documentation

#define IVD_COUT_LOG_m (   _comment  ) 
#define log_DBG_INT_m (   _dbgLevel,
  _text 
)    { }
#define log_DBG_m (   _dbgLevel,
  _text 
)
Value:
{ \
        if ( g_cmn.IsDbgActive() && (_dbgLevel <= g_cmn.dbg.GetLevel() )  ) { \
            ostringstream sStr; \
            g_cmn.dbg.WriteHeader(sStr, _dbgLevel, s_fcnID, __LINE__); \
            sStr << _text; \
            g_cmn.dbg.Write(_dbgLevel, sStr); \
        }\
    }

Debugging is a process of capturing execution of a program to a file.

Input of debugging are textual messages, implemented by developers. Debug messages are inserted in the source code using log_DBG_m macro. They are designated to provide a "developer redable" text, when debug files are created.

Each message has level of detail parameter. It is used at run time to filter messages. Developer must decide on the level of each of the messages.

  • dbg_LOW only major points of execution process are logged
  • dbg_NORM normal debugging (default)
  • dbg_DETAIL extensive debugging (loop counters ...)

Note that function entering/exiting and parameters can be logged automatically if specified with log_FUNC_A_m and turned on at starting debug process.

Example:

log_DBG_m(dbg_LOW,
    "Starting migration " << m_migID << " (job ID)" << m_jobID
);
//...
log_DBG_m(dbg_NORM,
    "Migration parameters " << m_migParams << "."
);
//...
log_DBG_m(dbg_DETAIL,
    "Filling vector m_files[" << i << "] with name " << fname << "."
);
//...
log_DBG_m(dbg_LOW,
    "Completed migration. Status " << m_status << "."
);
See also:
log_FUNC_A_m
log_DbgLevel_t
g_cmn

Definition at line 132 of file debug.h.

Referenced by _tmain(), i_HSM_i::Abort(), job_Manager::AbortAllJobs(), pm_FriProcessor::Aborted(), i_MaintFriJob_i::AbortFriProcessor(), job_Manager::AbortJob(), i_PartitionManager_i::AbortJob(), i_ManagementInterface_i::AbortJob(), i_Job_i::AbortJob(), i_FSCCheckJob_i::AbortJob(), i_EfficientRecallJob_i::AbortRecallOnHsm(), fio_Transaction::AbortTransaction(), i_ManagementInterface_i::ActivateFile(), i_HSM_i::ActivateFiles(), hsm_ActiveFH::ActiveToList(), rm_Operator::Add(), i_ResourceManager_i::AddDiskSubsys(), i_ResourceManager_i::AddDrive(), i_ManagementInterface_i::AddDrive(), i_ResourceManager_i::AddDriveHost(), fsc_nsDirEntryFormattedVec::AddEntry(), fsc_nsDirectory::AddEntry(), FileInfoCache::AddFile(), fs_api::AddGenericEvent(), hsm_MigByAPI::AddJob(), job_Manager::AddJobToList(), i_ResourceManager_i::AddLibrary(), i_ManagementInterface_i::AddLibrary(), i_PartitionManager_i::AddMajorCol(), i_ResourceManager_i::AddMediaPool(), i_ResourceManager_i::AddMedium(), i_ManagementInterface_i::AddMedium(), i_ManagementInterface_i::AddMediumToPool(), i_ResourceManager_i::AddMediumVol(), hsm_HL7CacheFile::AddMessageToCache(), mif_PartMgr::AddPart(), i_ManagementInterface_i::AddPartition(), i_ManagementInterface_i::AddPool(), i_ResourceManager_i::AddSlot(), fsc_SplitMgr::AddSplit(), fsc_CopyMgr::AddSplit(), fsc_Copy::AddSplit(), hsm_FileHeader::AddToReleaseCanList(), fio_RelFileTrans::AddVectorToBuffer(), i_MaintFriJob_i::AllBeaFinished(), hsm_MigByAPI::AllFilesInJobs(), rm_Queue::Allocate(), df_BlockProxyWriter::Allocate(), rm_Queue::AllocateAdmin(), rm_Operator::AllocateAdmin(), i_Job_i::AllocateDiskBuffer(), rm_Queue::AllocateMaint(), rm_Queue::AllocateMig(), rm_Operator::AllocateMigCollocation(), rm_Operator::AllocateMigDefault(), df_BlockProxyWriter::AllocateRawBlock(), rm_Queue::AllocateRec(), rm_Operator::AllocateRecall(), rm_Queue::AllocateReorg(), hsm_TimedList::Append(), hsm_HL7MessageProxy::Append(), hsm_FHrelc::Append(), hsm_ReleaseCandRec::Append(), hsm_ActiveFH::Append(), bea_DupWriteThread::AppendVolume(), bea_DiskMedium::AppendVolume(), i_MigrationJob_i::AssignResources(), i_MediumDupl_i::AssignResources(), i_Job_i::AssignResources(), JobListMgr< T1 >::At(), Backup(), bea_DiskVolume::bea_DiskVolume(), bea_FRI::bea_FRI(), bea_FRIThread::bea_FRIThread(), bea_Medium::bea_Medium(), bea_TapeMedium::bea_TapeMedium(), ut_Basic::Begin(), blk_StdIOReader::blk_StdIOReader(), blk_StdIOWriter::blk_StdIOWriter(), df_FRI::BlockWritten(), i_PartitionManager_i::BuildExpirationTree(), rm_Queue::CalcPriority(), pm_FileList::CalcSize(), cdb_LogSelect::cdb_LogSelect(), cdb_ReportDensity::cdb_ReportDensity(), cfg_Cli_fsc::cfg_Cli_fsc(), cfg_Cli_hsm::cfg_Cli_hsm(), cfg_CliBak::cfg_CliBak(), cfg_CliBase::cfg_CliBase(), cfg_CliCheck::cfg_CliCheck(), cfg_CliCreateFile::cfg_CliCreateFile(), cfg_CliDD::cfg_CliDD(), cfg_CliDrive::cfg_CliDrive(), cfg_CliFile::cfg_CliFile(), cfg_CliFsTest::cfg_CliFsTest(), cfg_CliJob::cfg_CliJob(), cfg_CliLibrary::cfg_CliLibrary(), cfg_CliMedium::cfg_CliMedium(), cfg_CliPartition::cfg_CliPartition(), cfg_CliPool::cfg_CliPool(), cfg_CliRecover::cfg_CliRecover(), cfg_CliSystem::cfg_CliSystem(), cfg_DriveVendor::cfg_DriveVendor(), cfg_ivddbg::cfg_ivddbg(), cfg_Library::cfg_Library(), i_HSM_i::ChangeLogLevel(), bea_TapeMedium::ChangeVolume(), rm_DB::Check(), fsc_VolumeCheck::Check(), fio_CirFileTrans::CheckBlockChain(), TreeWalkBackup::CheckDir(), TreeWalk::CheckDir(), MigrateTreewalk::CheckDir(), scsi_LnxSG::CheckDriverStatus(), FileInfoCache::CheckFiles(), rm_Operator::CheckForAnyResourceForMig(), JobListMgr< T1 >::CheckFree(), bea_MigrationThread::CheckFRI(), bea_FRIThread::CheckFRI(), i_HSM_i::CheckFSCvsIVDFS(), i_PartitionManager_i::CheckFSCvsMedia(), fsc_DataCollectorStorage::CheckHeader(), scsi_LnxSG::CheckHostStatus(), rm_MigIdGen::CheckInDB(), CheckIVDHeader(), fsc_nsElement::CheckLastGen(), data_Attribute::CheckMamAttributes(), i_AdminJob_i::CheckMedium(), rm_Operator::CheckMediumFull(), i_AdminJob_i::CheckPartition(), i_AdminJob_i::CheckPool(), Collocation::CheckPreconditions(), i_MaintFriJob_i::CheckReadFri(), CheckRootMembersForEA(), fsc_nsAttrStream::CheckSplitSeq(), scsi_IO::CheckStatusAndSense(), i_MediumDupl_i::CheckTargetMedium(), df_Filter::CheckUnhandledFiles(), fio_permDBinfo_t::CheckValidation(), i_AdminJob_i::CheckVolumesForFormatAndInit(), i_AdminJob_i::CheckVolumesForFriMicJob(), i_AdminJob_i::CheckVolumesForVolumeClose(), i_FSC_i::CheckWithIVDFS(), fsc_nsElement::ChgAttrib(), fsc_nsNameMgr::ChgName(), fsc_nsElement::ChgName(), fsc_nsOwnerMgr::ChgOwner(), i_FSC_i::ChkLastFileID(), hsm_FHrelc::ChoiceOldestList(), stx_CacheVec::CleanUp(), CleanupAfterBeaCrash(), cmn_LockOwn::Clear(), rm_DiskBuffer::Clear(), rm_Operator::ClearRecoveryFlag(), i_ResourceManager_i::ClearReorgScan(), CliConnectToHSM(), CliConnectToMIF(), scsi_LnxSG::Close(), i_UploadAgent_i::Close(), hsm_RecallInfoGrp::Close(), bea_TapeDrive::Close(), df_Filter::CloseCopiedSplit(), i_AdminJob_i::CloseVolume(), bea_FRI::CloseVolume(), bea_FRI::CloseVolumeInRMDB(), cmn_CleanDir(), cmn_DaemonInit(), cmn_DumpDirectoryContent(), cmn_ExecCommand(), cmn_ExecInChildProcess(), cmn_IsMounted(), cmn_IsSpecialName(), cmn_ListDir(), cmn_MoveFile(), cmn_MultiByteToOEMString(), cmn_OEMStringToMultiByte(), cmn_SetCurrentDir(), cmn_TreeWalk::cmn_TreeWalk(), fio_RelFileTransLstMgr::Commit(), i_RecallJob_i::CompleteJob(), i_MigrationJob_i::CompleteJob(), i_MediumCheckJob_i::CompleteJob(), i_MaintFriJob_i::CompleteJob(), i_EfficientRecallJob_i::CompleteJob(), hsm_FileHeader::CompleteMigIsDone(), i_HSM_i::CompleteMigration(), df_FRIDistiller::CompleteStream(), ui_Confirm::Confirm(), i_LibraryAgentSCSI_i::ConfirmMountRequest(), i_LibraryAgentManual_i::ConfirmMountRequest(), rm_DB::Connect(), hl7::Connect(), Continue(), cfg_Base::Convert(), cfg_Base::ConvertFileHeader(), cfg_PMCfg::ConvertGroup(), pm_FileList::ConvertToCorba(), i_ManagementInterface_i::CopyContents(), bea_FRI::CopyFromDiskToMedium(), df_Filter::CopyRecord(), hsm_HL7CacheFile::CountNumberOfMsgs(), fsc_FLSPerVolume::CountVolumeSize(), mif_JobManager::CreateBackupJob(), mif_JobManager::CreateCloseVolumeJob(), bea_Drive::CreateDrive(), mif_JobManager::CreateDuplMedJob(), pm_JobMgr::CreateEfficientRecallJobs(), hsm_IVDFSRecoverer::CreateFile(), hsm_HL7CacheFile::CreateFile(), fsc_DataCollectorStorage::CreateFile(), mif_JobManager::CreateFormatAndInitJob(), bea_FRI::CreateFRI(), pm_JobMgr::CreateFSCRecoveryJob(), api_Partition::CreateMajorCol(), pm_JobMgr::CreateMigrationJob(), bea_DiskVolume::CreateNewFile(), hsm_IVDFSRecoverer::CreateParentDir(), cmn_File::CreatePipe(), mif_JobManager::CreateRecreateFriAndMicJob(), pm_JobMgr::CreateReorgJob(), df_Stream::Cut(), df_LimitedStream::Cut(), fsc_MediaPosition_t::Dbg(), fsc_NextEntity_t::Dbg(), hsm_FileHeader::DecMemberRef(), hsm_InoObj::DecrRef(), hsm_FileHeader::DecrRef(), rm_DB::DefineExtFunctions(), PreMountsMgr::Del(), ivd_Delay::Delay(), cmn_File::DeleteDir(), i_Service_i::DeleteFile(), cmn_File::DeleteFile(), bea_FRI::DeleteFRIOnDisk(), bea_FRI::DeleteFRIOnVolume(), i_AdminJob_i::DeleteMedVolFromRMDB(), hsm_HL7CacheFile::DeleteProcessingFile(), ipc_Corba::Destroy(), bea_MicMemory::Detect(), bea_MamMemory::Detect(), bea_TapeMedium::DetectAITWORM(), bea_TapeMedium::DetectLTOWORM(), i_AdminJob_i::DetectVolumeHeader(), rm_DiskBufAllocator::DetectVolumes(), df_BlockProxy::df_BlockProxy(), df_RecReader::df_RecReader(), fsc_RawScan::DirTreeWalk(), i_ManagementInterface_i::DisableDebug(), i_ManagementInterface_i::DisableLibrary(), mif_PartMgr::DisablePart(), i_ManagementInterface_i::DisablePartition(), rm_DB::Disconnect(), i_ReorgJob_i::DiskBufferCleanup(), i_UIMessageServer_i::DisplayDetail(), ui_MsgWriter::DisplayMessage(), i_UIMessageServer_i::DisplayTable(), i_HSM_i::DoDeletion(), i_AdminJob_i::DoInitialize(), scsi_LnxSG::DoIOCtl(), i_HSM_i::DoMigrationJob(), pf_File::DoParse(), JobListMgr< T1 >::DoReleaseIdx(), cmn_TreeWalk::DoWalk(), fsc_GenerationMgr::Dump(), fio_CirFileHeader_t::Dump(), fsc_FLSPerVolume::DumpFileListVector(), hsm_MigByAPI::DumpInputInode(), hsm_MigByAPI::DumpJobInode(), i_PartitionManager_i::EfficientRecall(), i_HSM_i::EfficientRecall(), pm_JobMgr::EfficientRecallGetLocations(), la_SCSILibrary::EjectMedium(), i_ManagementInterface_i::EnableDebug(), i_ManagementInterface_i::EnableLibrary(), i_ManagementInterface_i::EnablePartition(), i_MaintFriJob_i::EndOfFRIInput(), fio_Transaction::EndTransaction(), api_Partition::EnumMajorCollocationId(), api_Partition::EnumMinorCollocationId(), bea_DiskVolume::Erase(), bea_FRIThread::EraseSysVol(), hsm_FileHeader::Event(), fs_api::EventDataOffline(), fs_api::EventDismounted(), fs_api::EventMounted(), fs_api::EventMove(), hsm_FileHeader::EventOffline(), fs_api::EventPredismount(), i_ResourceManager_i::ExchangeRecallResources(), i_ResourceManager_i::ExchangeResources(), bea_MigrationThread::ExchangeResources(), i_ResourceManager_i::ExecStartLA(), i_ResourceManager_i::ExecStopLA(), i_VvCopyJob_i::Execute(), i_Service_i::Execute(), i_ReorgScanJob_i::Execute(), i_ReorgJob_i::Execute(), i_RedundantCopyJob_i::Execute(), i_RecreatedIVDFSJob_i::Execute(), i_RecallJob_i::Execute(), i_MigrationJob_i::Execute(), i_MediumDupl_i::Execute(), i_MediumCheckJob_i::Execute(), i_MaintFriJob_i::Execute(), i_FSCCheckJob_i::Execute(), i_EfficientRecallJob_i::Execute(), i_BackupJob_i::Execute(), i_AdminJob_i::Execute(), i_Service_i::ExecutePy(), rm_DB::ExistExtFunctions(), df_SplitInfoUnpacker::ExtractCollocationIds(), FB_shutdownCallback(), i_ManagementInterface_i::FileHistory(), FileName2IPCFileList(), FileName2IPCStringList(), hsm_FileHeader::FileToSeqElem(), i_PartitionManager_i::FillClientCfg(), rm_Queue::Find(), data_Attribute::FindAttrID(), scsi_DeviceList::FindBySCSIID(), i_Service_i::FindCmd(), cfg_LibraryFile::FindLibrary(), fsc_VolumeCheck::FindMVD(), hsm_ReleaseCandRec::FindNextRec(), hsm_ActiveFH::FindNextRec(), i_Service_i::FindPy(), cfg_Base::FindRule(), cfg_DriveSettings::FindThreshold(), fio_CirFileTrans::fio_CirFileTrans(), fio_JourFile::fio_JourFile(), fio_JourMgr::fio_JourMgr(), fio_PermDBinfoMgr::fio_PermDBinfoMgr(), fio_RelFile::fio_RelFile(), fio_RelFileTrans::fio_RelFileTrans(), fsc_MedVolWriter::Flush(), fsc_DataCollectorStorage::Flush(), fsc_nsFSrecovery::FlushBlock(), fsc_ColectorExpFile::FlushPackage(), FMSeek(), i_HSM_i::ForceMigration(), i_HSM_i::ForceRelease(), i_BackEndAgent_i::Format(), i_AdminJob_i::Format(), bea_TapeMedium::Format(), bea_DiskMedium::Format(), ivd_BaseException::FormatText(), df_RecReader::FRIEndCheck(), df_RecReader::FRIStartCheck(), bea_MigrationThread::FRIVolumeEnd(), bea_MigrationThread::FRIVolumeStart(), fsc_CollectorRedunCopy::fsc_CollectorRedunCopy(), fsc_CopyMgr::fsc_CopyMgr(), fsc_DataCollectorStorage::fsc_DataCollectorStorage(), fsc_DataL::fsc_DataL(), fsc_FLSPerVolume::fsc_FLSPerVolume(), fsc_Generation::fsc_Generation(), fsc_GenerationMgr::fsc_GenerationMgr(), fsc_MedVolReader::fsc_MedVolReader(), fsc_nsCreateDirectoryObj(), fsc_nsCreateElementObj(), fsc_nsNameMgr::fsc_nsNameMgr(), fsc_nsOwnerMgr::fsc_nsOwnerMgr(), fsc_nsRemoveElementObj(), fsc_RawReorgScanDataCollector::fsc_RawReorgScanDataCollector(), fsc_RedunCopyDataVolStorageWriter::fsc_RedunCopyDataVolStorageWriter(), fsc_SplitMgr::fsc_SplitMgr(), fsc_VolumeCheck::fsc_VolumeCheck(), i_ManagementInterface_i::FSCRecover(), TreeWalk::GenerateDirTree(), rm_MigIdGen::GenerateNew(), rm_JobIdGen::GenerateNew(), rm_Queue::GetAllJobs(), i_ResourceManager_i::GetAllJobs(), i_PartitionManager_i::GetAllMediaWithPools(), mif_PartMgr::GetAllPartFromRM(), rm_DiskBuffer::GetAvailable(), i_Job_i::GetBeaStatus(), rm_Operator::GetBestCopy(), i_ResourceManager_i::GetBestCopy(), GetCapacityInfo(), i_ManagementInterface_i::GetCollocationInfo(), i_FSC_i::GetCopiesPos(), fsc_DataL::GetCopiesPos(), fsc_CopyMgr::GetCopiesPos(), fsc_FLSPerVolume::GetCurrentRecallList(), mif_VolStatus::GetCurrentSourceVol(), fsc_FLSPerVolume::GetCurrentSplitSize(), mif_VolStatus::GetCurrentTargetVol(), bea_TapeDrive::GetDefaultSeekThreshold(), i_Job_i::GetDiskBufferFileName(), fsc_FileExpiration::GetExpirationAgeRecursive(), hsm_FHpVecMgr::GetFH(), GetFHIdentify(), i_FSC_i::GetFileIDs(), hsm_FHmigc::GetFileIDs(), api_Partition::GetFileLocations(), hsm_FileHeader::GetFileSize(), hsm_FileHeader::GetFileSizeForMig(), api_Partition::GetFileStatus(), cmn_File::GetFileSystemSize(), df_BlockManager::GetFree(), i_MaintFriJob_i::GetFRI(), mif_PartMgr::GetFSIDs(), GetFSType(), df_BlockManager::GetFull(), fsc_nsElement::GetFullPath(), hsm_FileHeader::GetGidCidInfo(), i_ManagementInterface_i::GetHl7Info(), rm_Operator::GetHost(), i_PartitionManager_i::GetHSM(), GetIdentify(), i_HSM_i::GetInfo(), GetInodeObj(), rm_Queue::GetJob(), i_ResourceManager_i::GetJob(), hsm_JobListMgr::GetJobElemVecMgr(), i_Job_i::GetJobId(), JobListMgr< T1 >::GetJobList(), i_Job_i::GetJobParams(), i_ResourceManager_i::GetJobResources(), job_Manager::GetJobStatus(), i_PartitionManager_i::GetJobStatus(), rm_DiskBufAllocator::GetMaxDiskBufferSize(), i_ResourceManager_i::GetMaxDiskBufferSize(), rm_Operator::GetMediaInfo(), i_ResourceManager_i::GetMediaInfo(), fsc_SplitMgr::GetMediaPos(), fsc_MedPosMgr::GetMediaPos(), i_ManagementInterface_i::GetMediumBySlot(), i_ManagementInterface_i::GetMediumInfo(), df_BlockReader::GetNextBlock(), fsc_MedVolReader::GetNextBuff(), fsc_FileLocStorage::GetNextFSLMedium(), fsc_FLSPerMedia::GetNextFSLPerVolume(), cmn_DirLst::GetNextName(), fsc_VolumeCheck::GetNextOfsSubBlock(), fsc_FLSPerVolume::GetNextRecallList(), i_EfficientRecallJob_i::GetNextRecallSet(), fsc_DataCollectorStorage::GetNextRecord(), df_Unpacker::GetNextRecord(), df_BlockScanner::GetNextRecord(), df_RecReader::GetNextRecord(), rm_SysState::GetPartitionNr(), i_PartitionManager_i::GetPartitionRecord(), i_ManagementInterface_i::GetPartitionStatus(), data_Mode::GetPartSize(), GetPathList(), GetPos(), ivd_FS_File::GetProperties(), df_BlockReader::GetRawNextBlock(), i_ResourceManager_i::GetRecallResources(), fsc_FLSPerVolume::GetRemainingBytesToCopy(), data_Log::GetRemainingPartCap(), i_PartitionManager_i::GetReplicationPM(), data_ElementStatus::GetReportSize(), i_ResourceManager_i::GetResources(), fio_CirFileTrans::GetRFIdxFromNextBlock(), fio_CirFileTrans::GetRNIdxFromNextBlock(), ivd_FS_Event::GetRootDir(), bea_MicMemory::GetSize(), i_PartitionManager_i::GetStatus(), cfg_DriveVendor::GetThreshold(), data_Log::GetTotalPartCap(), df_BlockScanner::GetVolumeID(), api_Partition::GetVolumeList(), api_Partition::GetVolumeListMajor(), api_Partition::GetVolumeListMinor(), i_BackEndAgent_i::GetVolumeSizes(), la_SCSILibrary::HandleDriveError(), i_BackEndAgent_i::HandleError(), hdb_Tables::hdb_Tables(), hdbReadNameOwnRec(), hsm_FHADPRecall::hsm_FHADPRecall(), hsm_FHcache::hsm_FHcache(), hsm_FHmigc::hsm_FHmigc(), hsm_FHrelc::hsm_FHrelc(), hsm_HL7CacheFile::hsm_HL7CacheFile(), hsm_HL7MessageProxy::hsm_HL7MessageProxy(), hsmGetDirFH(), i_AdminJob_i::i_AdminJob_i(), i_BackEndAgent_i::i_BackEndAgent_i(), i_BackupAgent_i::i_BackupAgent_i(), i_BackupJob_i::i_BackupJob_i(), i_Job_i::i_Job_i(), i_LibraryAgentManual_i::i_LibraryAgentManual_i(), i_LibraryAgentSCSI_i::i_LibraryAgentSCSI_i(), i_MaintFriJob_i::i_MaintFriJob_i(), i_ManagementInterface_i::i_ManagementInterface_i(), i_MediumCheckJob_i::i_MediumCheckJob_i(), i_MediumDupl_i::i_MediumDupl_i(), i_MigrationJob_i::i_MigrationJob_i(), i_PartitionManager_i::i_PartitionManager_i(), i_RecoveryJob_i::i_RecoveryJob_i(), i_RedundantCopyJob_i::i_RedundantCopyJob_i(), i_ReorgJob_i::i_ReorgJob_i(), i_ResourceManager_i::i_ResourceManager_i(), i_RestoreAgent_i::i_RestoreAgent_i(), i_ThreadJob_i::i_ThreadJob_i(), bea_MediumMemory::IncLoadCount(), hsm_FileHeader::IncMemberRef(), hsm_InoObj::IncrRef(), hsm_FileHeader::IncrRef(), ut_Group::Init(), rm_SysState::Init(), rm_Queue::Init(), rm_JobIdGen::Init(), ipc_Corba::Init(), ClientConf_t::Init(), i_BackEndAgent_i::Init(), hsm_FHrelc::Init(), fio_StartTransaction_t::Init(), data_Attribute::Init(), cfg_DirHL7Info::Init(), cfg_DirCollocationInfo::Init(), bea_Volume::Init(), hsm_FileHeader::InitActive(), rm_Operator::InitAllDrive(), rm_Operator::InitAllMedium(), rm_Operator::InitAllMediumVol(), i_Job_i::InitBeaStatus(), fsc_MedVolume::InitBuffer(), fsc_DataCollectorStorage::InitBuffer(), i_AdminJob_i::Initialize(), fs_api::Initialize(), InitializeIPC(), i_ReorgJob_i::InitializeSingleVolume(), i_AdminJob_i::InitializeSingleVolume(), i_ReorgJob_i::InitializeVolumes(), InputFile2IPCFileList(), scsi_LnxSG::InqSCSIID(), scsi_IO::InqSerialNumber(), scsi_IO::InqStandard(), rm_Queue::Insert(), pm_ReorgVolStatus::Insert(), rm_MinorCol::Insert(), rm_MajorCol::Insert(), rm_Medium::Insert(), rm_Slot::Insert(), rm_MediaPool::Insert(), rm_DiskSubsys::Insert(), rm_Drive::Insert(), rm_Library::Insert(), JobListMgr< T1 >::Insert(), fsc_GenerationMgr::Insert(), fsc_Generation::Insert(), fsc_FLSPerMedia::Insert(), fsc_DataL::Insert(), hsm_FHpVecMgr::InsertDirWithTest(), fsc_nsElement::InsertSplit(), i_FSC_i::InsertSplitFromFRIBlock(), i_MaintFriJob_i::InsertToFriProcessor(), la_SCSILibrary::Inventory(), i_LibraryAgentSCSI_i::Inventory(), i_LibraryAgentManual_i::Inventory(), rm_Operator::InventoryUpdate(), scsi_IO::IOCtl(), ipc_ObjectExists(), ipc_ORBLogCallback(), ipc_ReadFromFile(), i_Job_i::IsAborted(), hsm_HL7CacheFile::IsAnyFileToProcess(), hl7::IsConnected(), hsm_Recall::IsFileFromDFforRecall(), IsFileOffline(), hsm_RecallInfoGrp::IsFileRecalled(), pm_VolStatus::IsInit(), cmn_LockOwn::IsItTimeToFlush(), bea_Medium::IsMediumMemDetected(), bea_Medium::IsMediumMemValid(), IsNameSpecial(), ivd_FS_File::IsOfflineProlonged(), cmn_Path::IsPathOnMountPoint(), ivd_FileSystemAPI::IsPathTooLong(), pm_VolStatus::IsRead(), Collocation::IsReplicated(), rm_Operator::IsSomeVolumeUsed(), i_ResourceManager_i::IsSomeVolumeUsed(), hsm_ReleaseCandRec::IsValid(), bea_MediumMemory::IsValid(), pm_VolStatus::IsWrite(), pm_VolStatus::IsWriteStarted(), pm_ReorgVolStatus::IsWriteStarted(), fsc_Split::IsZeroSizeSplit(), ivd_AccessFsAttr(), ivd_BitFlagToText(), ivd_FileSystemAPI::ivd_FileSystemAPI(), ivd_GetFdFsAttr(), ivd_GetMountPoint(), i_HSM_i::IVDFSPrepareRecovery(), i_ManagementInterface_i::IVDFSRecover(), i_FSC_i::IVDFSRecovery(), api_Partition::JobStatus(), hsm_JobElemVecMgr::JobToSequence(), i_PartitionManager_i::LimitedCheckFSCvsMedia(), i_ManagementInterface_i::LimitedCheckFSCvsMedia(), i_ManagementInterface_i::ListDrives(), i_ManagementInterface_i::ListJob(), i_ManagementInterface_i::ListJobs(), i_ManagementInterface_i::ListMediumVolumes(), i_ManagementInterface_i::ListSingleMedium(), la_SCSILibrary::Load(), i_LibraryAgentManual_i::Load(), i_Job_i::LoadUnload(), api_Partition::LocalPath2HSM(), df_RecReader::LocateNextFile(), fio_TransGroupLock< _T, _defTransEl >::LockByIDOwn(), fio_DataBase::LockDB(), cmn_LockOwn::LockOwnInit(), log_Output(), rm_SysState::LogCurrentState(), rm_PartitionStatus::LogCurrentState(), main(), hsm_MigByAPI::MajColExists(), rm_Operator::MajorColIdMatches(), hsm_FileHeader::MakeStat(), Mamcapacity(), Mamdetect(), Mamfree(), Mamisworm(), Mamrmedinfo(), Mamrvolinfo(), Mamserial(), Mamwmedinfo(), Mamwvolinfo(), MediaDataVectorConvert2C(), rm_Operator::MediumLoaded(), i_ThreadJob_i::MediumOperationComplete(), i_ReorgJob_i::MediumOperationComplete(), i_RedundantCopyJob_i::MediumOperationComplete(), i_RecallJob_i::MediumOperationComplete(), i_MigrationJob_i::MediumOperationComplete(), i_MediumDupl_i::MediumOperationComplete(), i_MaintFriJob_i::MediumOperationComplete(), i_EfficientRecallJob_i::MediumOperationComplete(), rm_Operator::MediumUnLoaded(), df_FRI::MediumVolumeEnd(), df_FRI::MediumVolumeStart(), fsc_nsAttrStream::MergeAttributes(), mif_CfgRep::mif_CfgRep(), mif_ResolveHostToFQDN(), hsm_FileHeader::MigCanToPreJob(), pm_JobMgr::Migrate(), i_PartitionManager_i::Migrate(), hsm_FHmigc::Migrate(), bea_MigrationThread::Migrate(), i_HSM_i::MigrateByAPI(), hsm_JobListMgr::MigrateFailedJob(), i_ManagementInterface_i::MigrateFile(), api_Partition::MigrateFile(), i_ReorgJob_i::MigrateFiles(), i_RedundantCopyJob_i::MigrateFiles(), hsm_FHmigc::MigrateParents(), hsm_FileHeader::MigrationIsDone(), rm_Queue::ModifyPriority(), i_ManagementInterface_i::Mount(), bea_FRI::MoveFromWorkToFRI(), bea_Volume::MustDumpFRI(), i_BackEndAgent_i::MustReadPosition(), i_Job_i::NeedsProcess(), hsm_FileHeader::NewName(), hsm_FileHeader::NewOwner(), ui_ResultPacker::NewRow(), fio_CirFileTrans::NewWriteBackBlock(), i_Collection_i::NextBatch(), nsc_ScanForIVDFSRecovery(), scsi_IO::Open(), la_SCSILibrary::Open(), bea_TapeDrive::Open(), scsi_LnxSG::OpenByDeviceName(), scsi_LnxSG::OpenBySCSIID(), scsi_LnxSG::OpenBySerialNumber(), ui_MsgWriter::OpenFile(), hsm_FileHeader::OpenFile(), i_AdminJob_i::OperateLA(), operator>>(), hsm_ActiveFH::OrphanedToMigList(), bea_Volume::OverrideIDs(), fsc_nsElement::Pack(), fsc_nsAttrStream::Pack(), fsc_SplitStream_t::Pack(), i_HSM_i::PackFile(), PackFile(), i_PartitionManager_i::ParseConfig(), ParseDiskMedium(), ParseDiskMediumVolume(), ParseECMAHeader(), data_ElementStatus::ParseElemStatus(), ParseMICMediumNote(), ParseMICVolNote(), i_ResourceManager_i::ParsePMConfig(), ParseTapeMedium(), ParseTapeMediumSysVolume(), ParseTapeMediumVolume(), ParseTapeMediumVolumeData(), ParseTapeMediumVolumeFRI(), ParseTapeMediumVolumeHeader(), mif_CfgRep::ParseToFile(), i_ManagementInterface_i::PartitionReorgStat(), pm_FileList::pm_FileList(), pm_VolStatus::pm_VolStatus(), rm_Operator::PoolInfo(), i_ResourceManager_i::PoolInfo(), stx_XStack::Pop(), hsm_FreeJobIdxStack::Pop(), bea_FRI::PositionToStartOfFRI(), fsc_CollectorRedunCopy::PostCopiesProc(), i_MediumDupl_i::PreFormat(), i_RedundantCopyJob_i::Prepare(), df_RecReader::PrepareDataStreamUnpacker(), i_EfficientRecallJob_i::PrepareFailedRecallListSeq(), i_MaintFriJob_i::PrepareMedium(), i_Collection_i::PrepareNextBatch(), i_RecallJob_i::PrepareResource(), i_EfficientRecallJob_i::PrepareResource(), bea_MigrationThread::PrepareVolume(), i_MaintFriJob_i::PrepareVolumes(), rm_Queue::Print(), df_FRIDistiller::ProcBlock(), df_Filter::ProcBlock(), fsc_ColectorExpFile::ProcDirElement(), df_SplitInfoUnpacker::ProcEndOfInput(), rm_Queue::Process(), rm_DBThread::Process(), dbo_ClearReorgScan::Process(), dbo_ClearPartitionStatus::Process(), dbo_SetPartitionStatus::Process(), dbo_SelectPartition::Process(), dbo_MedVolStatusClear::Process(), dbo_UpdateDataSize::Process(), i_MediumDupl_i::Process(), i_EfficientRecallJob_i::Process(), RecRemove::ProcessEntry(), RecOpen::ProcessEntry(), RecAccess::ProcessEntry(), i_RecoveryJob_i::ProcessFRI(), i_MediumCheckJob_i::ProcessFRI(), bea_FRIThread::ProcessFromDataVol(), fsc_RawReorgScanDataCollector::ProcFileID(), fsc_CollectorDelete::ProcFileID(), hsm_IVDFSRecoverer::ProcRecBSEnd(), df_SplitInfoUnpacker::ProcRecBSEnd(), df_FRIDistiller::ProcRecBSEnd(), hsm_Recall::ProcRecBSStart(), hsm_IVDFSRecoverer::ProcRecBSStart(), df_FRIDistiller::ProcRecBSStart(), df_Filter::ProcRecBSStart(), hsm_IVDFSRecoverer::ProcRecEmbData(), hsm_IVDFSRecoverer::ProcRecFileEnd(), df_SplitInfoUnpacker::ProcRecFileEnd(), df_FRIDistiller::ProcRecFileEnd(), df_Filter::ProcRecFileEnd(), hsm_Recall::ProcRecFileHdr(), hsm_IVDFSRecoverer::ProcRecFileHdr(), df_FRIDistiller::ProcRecFileHdr(), df_Filter::ProcRecFileHdr(), df_SplitInfoUnpacker::ProcRecFRIEnd(), df_SplitInfoUnpacker::ProcRecFRISpInfo(), fsc_RawReorgScanDataCollector::ProcRecMedPosMgr(), fsc_CollectorRedunCopy::ProcRecMedPosMgr(), fsc_CollectorDelete::ProcRecMedPosMgr(), hsm_IVDFSRecoverer::ProcRecRawData(), df_FRIDistiller::ProcRecRawData(), fsc_RawReorgScanDataCollector::ProcVecGeneration(), cmn_TreeWalk::PushDentries(), fio_Transaction::PutVectorToBuffer(), hsm_FileHeader::QueueHL7Message(), Rate(), df_Stream::Read(), df_LimitedStream::Read(), bea_Volume::Read(), bea_MicMemory::Read(), bea_MamMemory::Read(), ClientConf_t::ReadCollocationConfiguration(), fsc_DataCollectorStorage::ReadContent(), cmn_FileTest::ReadContents(), bea_TapeMedium::ReadCurrentVolume(), i_LibraryAgentSCSI_i::ReadDriveInfo(), i_LibraryAgentManual_i::ReadDriveInfo(), la_SCSILibrary::ReadElementAssignment(), df_BlockManager::ReaderFinished(), bea_TapeVolume::ReadEstimSizes(), bea_DiskVolume::ReadEstimSizes(), pf_File::ReadFile(), pm_RecallSetReader::ReadFinished(), bea_FRI::ReadFRI(), bea_FRI::ReadFRIStart(), fsc_nsStream::ReadFromDB(), bea_FRIThread::ReadFromSysVol(), fio_CirFileTrans::ReadFront(), ClientConf_t::ReadHL7Configuration(), i_BackEndAgent_i::ReadIDs(), cmn_File::ReadLink(), fio_RelFile::ReadListOfUnusedVector(), bea_DupReadThread::ReadMedVolume(), fsc_Generation::ReadMembers(), hsm_HL7CacheFile::ReadNextFile(), ReadOneBackupFromMedium(), bea_DiskVolume::ReadRaw(), df_Unpacker::ReadRecFile(), ReadRefFromFile(), fsc_nsAttrStream::ReadSplitsFromDB(), fsc_nsAttrStream::ReadSplitStreamFromDfStream(), fio_Transaction::ReadTransactionFromLog(), fio_uvListMgr::ReadUV(), bea_DiskVolume::ReadVolInfo(), bea_Volume::ReadVolInfoFromHeader(), bea_Volume::ReadVolInfoFromMediumMem(), rm_Queue::Recalc(), i_PartitionManager_i::Recall(), i_HSM_i::Recall(), bea_RecallThread::Recall(), hsm_FileHeader::Recalled(), i_ManagementInterface_i::RecallFile(), hsm_FHADPRecall::RecallFileFromADP(), i_ReorgJob_i::RecallFiles(), i_RedundantCopyJob_i::RecallFiles(), hsm_FHADPRecall::RecallFilesFromList(), i_LibraryAgentSCSI_i::Reconfigure(), i_LibraryAgentManual_i::Reconfigure(), i_HSM_i::Reconfigure(), hsm_FHrelc::Reconfigure(), hsm_FHmigc::Reconfigure(), i_ResourceManager_i::ReconfigureLibrary(), i_PartitionManager_i::RecoveryMode(), i_PartitionManager_i::RecoveryNeeded(), i_MaintFriJob_i::RecreateFRI(), i_AdminJob_i::RecreateFRIandMIC(), i_FSC_i::RedundantCopy(), cfg_Server::Refresh(), cfg_LibraryFile::Refresh(), cfg_HL7Info::Refresh(), cfg_DriveSettings::Refresh(), cfg_CollocationInfo::Refresh(), cfg_CliBase::Refresh(), bea_MediumMemory::Refresh(), bea_DiskMedium::Refresh(), i_PartitionManager_i::RefreshCfg(), bea_TapeMedium::RefreshCompressionState(), bea_TapeMedium::RefreshMemoryInfo(), bea_TapeMedium::RefreshTapeInfo(), ipc_Corba::Register(), i_Job_i::RegisterBEA(), i_PartitionManager_i::RegisterFSID(), i_PartitionManager_i::RegisterHSM(), ipc_Corba::RegisterMajorServant(), fio_DataBase::RegularSuspend(), rm_PartitionStatus::Release(), JobListMgr< T1 >::Release(), hsm_ReleaseCandRec::Release(), hsm_ActiveFH::Release(), rm_DiskBufAllocator::ReleaseDiskBuffer(), i_ResourceManager_i::ReleaseDiskBuffer(), i_Job_i::ReleaseDiskBuffer(), i_ManagementInterface_i::ReleaseFile(), i_ResourceManager_i::ReleaseResource(), i_Job_i::ReleaseResource(), rm_Operator::ReleaseResources(), i_RecallJob_i::ReleaseResources(), i_MaintFriJob_i::ReleaseResources(), i_EfficientRecallJob_i::ReleaseResources(), rm_SysState::ReleaseSys(), fio_JourMgr::ReleaseWaiters(), hsm_RecallInfoGrp::RememberChunkOffset(), rm_Queue::Remove(), rm_MinorCol::Remove(), rm_MajorCol::Remove(), rm_Library::Remove(), i_ManagementInterface_i::Remove(), i_Job_i::Remove(), i_HSM_i::Remove(), i_Component_i::Remove(), hsm_TimedList::Remove(), hsm_FHpVecMgr::Remove(), fsc_MedPosMgr::Remove(), mif_CfgRep::RemoveCfg(), rm_Operator::RemoveColIDs(), i_ResourceManager_i::RemoveColIDs(), rm_Operator::RemoveColMediaVol(), i_ManagementInterface_i::RemoveDrive(), i_ResourceManager_i::RemoveDSS(), fsc_nsDirEntryMgr::RemoveEntry(), fsc_nsDirEntryFormattedVec::RemoveEntry(), fsc_nsDirectory::RemoveEntry(), hsm_FileHeader::RemoveFromActiveList(), job_Manager::RemoveFromList(), hsm_FHpVecMgr::RemoveLastButOne(), fsc_nsStream::RemoveLeftVectors(), i_ManagementInterface_i::RemoveLibrary(), ipc_Corba::RemoveMajorServant(), i_ResourceManager_i::RemoveMediaPool(), i_ResourceManager_i::RemoveMedium(), i_ManagementInterface_i::RemoveMedium(), rm_Operator::RemoveMediumVol(), i_ResourceManager_i::RemoveMediumVol(), hsm_FileHeader::RemoveNameFromHSMDB(), mif_PartMgr::RemovePart(), i_ManagementInterface_i::RemovePartition(), i_ManagementInterface_i::RemovePool(), i_ResourceManager_i::RemoveSlot(), ui_MsgWriter::RemoveUI(), i_ManagementInterface_i::Reorg(), api_Partition::Reorg(), i_PartitionManager_i::ReorgByColId(), api_Partition::ReorgByColId(), i_ManagementInterface_i::ReorgScan(), api_Partition::ReorgScan(), i_ReorgJob_i::ReorgStatusCleanup(), bea_DiskVolume::ReparseFiles(), mif_CfgRep::ReplaceDate(), mif_CfgRep::ReplaceUser(), mif_CfgRep::ReplaceVersion(), fio_JourMgr::Replay(), ivd_FS_Event::ReplySyncEvent(), TreeWalk::Report(), i_ManagementInterface_i::ReportAllPartitions(), rm_DiskBuffer::ReportContent(), hsm_HL7MessageProxy::ReportInvalidHL7Configuration(), ReportStatusToSCM(), i_Job_i::RequestDiskBuffer(), i_BackEndAgent_i::RequestNewResources(), i_MaintFriJob_i::RequestResources(), rm_PartitionStatus::Reserve(), rm_DiskBufAllocator::ReserveDiskBuffer(), i_ResourceManager_i::ReserveDiskBuffer(), rm_SysState::ReserveSys(), ipc_Corba::Resolve(), ipc_Corba::ResolveTargetPM(), Restore(), rm_DBThread::Resume(), RewindMedium(), cmn_TreeWalk::RewindStack(), rm_DiskBuffer::rm_DiskBuffer(), rm_QueueExecutor::rm_QueueExecutor(), i_Job_i::RoundUp2BlockSize(), rm_QueueExecutor::Run(), rm_DBThread::Run(), pm_FriProcessor::Run(), job_Executor::Run(), ivd_FileSystemAPI::Run(), FSEvMgrThrd::Run(), ipc_Corba::Run(), ivd_DD::Run(), hsm_TimedList::Run(), fs_api::Run(), hsm_FHrelc::Run(), hsm_FHmigc::Run(), hsm_FHADPRecall::Run(), blk_NetWriter::Run(), blk_NetReader::Run(), blk_BufferWriter::Run(), blk_BufferReader::Run(), bea_VolumeReader::Run(), bea_RecallThread::Run(), bea_MigrationThread::Run(), bea_DupWriteThread::Run(), bea_DupReadThread::Run(), bea_FRIThread::Run(), RunOmniNames(), ipc_Shutdown::RunUndetached(), hsm_HL7MessageProxy::RunUndetached(), bea_FRI::SaveFRIOnError(), fsc_RawUpdate::ScanAllCopy(), fsc_RawUpdate::ScanAllFileID(), fsc_RawScan::ScanAllFileID(), fsc_RawUpdate::ScanAllGeneration(), fsc_RawScan::ScanAllGeneration(), fsc_RawUpdate::ScanAllSplit(), scsi_GetVndAddSnsTbl(), scsi_IO::scsi_IO(), blk_StdIOWriter::Seek(), blk_DiskBufferWriter::Seek(), bea_TapeVolume::SeekBlock(), bea_DiskVolume::SeekBlock(), bea_TapeVolume::SeekEOD(), bea_DiskVolume::SeekEOD(), bea_TapeVolume::SeekFileMark(), bea_DiskVolume::SeekFileMark(), SeekLastBackupFM(), rm_MinorCol::Select(), rm_MajorCol::Select(), rm_Partition::Select(), rm_DriveHost::Select(), rm_ColMediaVol::SelectAll(), rm_MinorCol::SelectAll(), rm_Drive::SelectAll(), rm_Operator::SelectAllColVolumes(), i_ResourceManager_i::SelectAllColVolumes(), i_ResourceManager_i::SelectAllDriveHosts(), i_ResourceManager_i::SelectAllDrives(), i_ResourceManager_i::SelectAllDSS(), i_ResourceManager_i::SelectAllLibraries(), rm_Operator::SelectAllMajorCol(), i_ResourceManager_i::SelectAllMedia(), rm_Operator::SelectAllMediaByPart(), i_ResourceManager_i::SelectAllMediaByPart(), i_ResourceManager_i::SelectAllMediaPools(), i_ResourceManager_i::SelectAllMediumVol(), i_ResourceManager_i::SelectAllMediumVolByBarcode(), rm_Operator::SelectAllMediumVolByPart(), i_ResourceManager_i::SelectAllMediumVolByPart(), rm_Operator::SelectAllMinColByMajCol(), rm_Operator::SelectAllMinorCol(), i_ResourceManager_i::SelectAllMinorCol(), i_ResourceManager_i::SelectAllMinorColByMajCol(), i_ResourceManager_i::SelectAllPartition(), i_ResourceManager_i::SelectAllSlots(), i_ResourceManager_i::SelectAllUnrecoveredMedVol(), rm_Drive::SelectByAddr(), rm_MinorCol::SelectByMajCol(), rm_MediumVol::SelectByMajColId(), rm_MediumVol::SelectByMedium(), rm_Partition::SelectByName(), rm_Drive::SelectByName(), rm_MediumVol::SelectByPartition(), rm_Medium::SelectByPartition(), rm_Drive::SelectByStatus(), rm_Partition::SelectByUuid(), rm_ColMediaVol::SelectByVolume(), rm_Operator::SelectColAlloc(), i_ResourceManager_i::SelectDrive(), i_ResourceManager_i::SelectDriveByKey(), rm_Operator::SelectDriveForMig(), i_ResourceManager_i::SelectDriveHost(), i_ResourceManager_i::SelectDSS(), rm_MediumVol::SelectEmptyCollocation(), rm_Drive::SelectForOperation(), i_ResourceManager_i::SelectLibrary(), rm_Operator::SelectMajorCol(), i_ResourceManager_i::SelectMediaPool(), i_ResourceManager_i::SelectMediaPoolbyUUID(), i_ResourceManager_i::SelectMedium(), i_ResourceManager_i::SelectMediumByDrive(), i_ResourceManager_i::SelectMediumByKey(), rm_Operator::SelectMediumForMig(), i_ResourceManager_i::SelectMediumVol(), i_ResourceManager_i::SelectMediumVolByKey(), i_ResourceManager_i::SelectMediumVolByUUID(), rm_Operator::SelectMediumVolumeCol(), rm_Operator::SelectMediumVolumeMig(), rm_Operator::SelectMinorCol(), rm_Operator::SelectOpenedVolume(), i_ResourceManager_i::SelectPartition(), i_ResourceManager_i::SelectSlot(), hl7::SendBlock(), mif_PartMgr::SendClientFSIDs(), hsm_HL7MessageProxy::SendMessages(), FSEvMgrThrd::SendReply(), i_FsEvMgr_i::SendReply(), hsm_FHmigc::SendToPM(), ServerLoop(), ServiceLoop(), i_Job_i::SetBeaStatus(), df_BlockScanner::SetBlock(), bea_Volume::SetBlockSize(), hsm_ListPos::SetCircList(), ivd_FS_File::SetCollocationId(), i_ManagementInterface_i::SetCollocationInfo(), ivd_FileSystemAPI::SetConfiguration(), ivd_FS_File::SetDataClean(), ivd_FS_File::SetDataOffline(), ivd_FS_File::SetDataOnline(), df_BlockManager::SetEndOfData(), fsc_FileExpiration::SetExpirationAgeRecursive(), ivd_FS_File::SetFileID(), hsm_FileHeader::SetFileID(), hsm_FileHeader::SetFileSize(), ui_BitFlag::SetFlag(), i_FsEvMgr_i::SetFSList(), SetFSType(), i_HSM_i::SetFullAccess(), cmn_File::SetFullPath(), i_ManagementInterface_i::SetHl7Info(), i_ManagementInterface_i::SetJobPriority(), mif_CfgRep::SetLastRevNum(), fio_PermDBinfoMgr::SetLastSyncPosition(), fio_PermDBinfoMgr::SetLastTransaction(), job_Manager::SetMaxRunningJobs(), df_RecReader::SetNewDataBlock(), i_EfficientRecallJob_i::SetNextVolume(), SetPartitionOptions(), data_Mode::SetPartitions(), rm_Queue::SetPhase(), i_ResourceManager_i::SetPriorityModifier(), ivd_Delay::SetProperties(), df_BlockProxy::SetPtrToDataBlock(), api_Partition::SetReferences(), i_ResourceManager_i::SetReorgScan(), i_ResourceManager_i::SetRMPartStatus(), i_AdminJob_i::SetSysVolIdx(), i_AdminJob_i::SetVolumes(), scsi_LnxSG::SGOpen(), hsm_FHmigc::ShouldMigrate(), i_ManagementInterface_i::ShowDrive(), i_ManagementInterface_i::ShowLibrary(), i_ManagementInterface_i::ShowLibraryInventory(), i_ManagementInterface_i::ShowPartition(), i_ManagementInterface_i::ShowPool(), i_ManagementInterface_i::ShowPoolRevs(), ipc_Corba::Shutdown(), SimulateUVStructureError(), scsi_IO::SkipAttAndDeferred(), fsc_MedVolReader::SortData(), mif_VolStatus::SourceVolRead(), hsm_FHrelc::SpaceCheck(), hsm_TimedList::SpliceToEndNoLock(), fsc_Split::SplitsAreOverlaping(), STapeClose(), STapeOpen(), STapeWriteFileMark(), i_ResourceManager_i::StartAllLA(), mif_PartMgr::StartAllPart(), i_AdminJob_i::StartBEA(), i_FsEvMgr_i::StartDebug(), mif_PartMgr::StartPM(), rm_Slot::StartSelectAll(), rm_Library::StartSelectAll(), fio_DataBase::StartTransaction(), fio_Transaction::StartTransAnyType(), la_SCSILibrary::Status(), hsm_Containers::Stop(), mif_PartMgr::StopAllPart(), i_FsEvMgr_i::StopDebug(), hsm_FileHeader::StoreNameOwnRec(), hsm_FileHeader::StoreOldNameOwnRec(), stx_Cache::stx_Cache(), rm_DBThread::Suspend(), Suspend(), TableExists(), mif_VolStatus::TargetVolWrite(), hsm_FHdirty::TaskTime(), hsm_DirWaitList::TaskTime(), hsm_FileHeader::ToMigCand(), TreeWalk::TreeWalk(), i_HSM_i::TrigEfficientRecall(), ivd_FS_File::TriggerEvent(), i_ManagementInterface_i::TrigMigration(), i_HSM_i::TrigRecall(), hsm_FHrelc::Truncate(), hsm_FileHeader::TruncateFile(), hsm_FHrelc::TruncationCheck(), ui_MsgWriter::TruncFile(), fsc_nsDirEntryFormattedVec::TryToRemoveEntry(), ui_MsgWriter::ui_MsgWriter(), i_ManagementInterface_i::Umount(), la_SCSILibrary::Unload(), i_LibraryAgentSCSI_i::Unload(), i_LibraryAgentManual_i::Unload(), fio_TransGroupLock< _T, _defTransEl >::UnLockAndFlush(), fio_DataBase::UnlockDB(), df_RecReader::Unpack(), UnpackFile(), i_HSM_i::UnPackFile(), i_PartitionManager_i::UnRegisterFSID(), rm_SysState::UnRegisterPM(), rm_Operator::Update(), rm_MinorCol::Update(), rm_MajorCol::Update(), hsm_ActiveFH::Update(), bea_MediumMemory::UpdateAccess(), bea_MediumMemory::UpdateAppend(), UpdateContentData(), i_ResourceManager_i::UpdateDataSize(), i_ResourceManager_i::UpdateDiskSubsys(), i_ResourceManager_i::UpdateDrive(), i_ManagementInterface_i::UpdateDrive(), i_ResourceManager_i::UpdateDriveHost(), i_BackEndAgent_i::UpdateDriveIDs(), hsm_FileHeader::UpdateFileID(), i_LibraryAgentSCSI_i::UpdateIDs(), rm_MigIdGen::UpdateInDB(), i_ResourceManager_i::UpdateLibrary(), i_ManagementInterface_i::UpdateLibrary(), api_Partition::UpdateMajColSize(), i_ResourceManager_i::UpdateMajorCol(), i_PartitionManager_i::UpdateMajorCol(), i_ResourceManager_i::UpdateMediaPool(), i_ResourceManager_i::UpdateMedium(), i_BackEndAgent_i::UpdateMediumIDs(), bea_Volume::UpdateMediumMem(), bea_MediumMemory::UpdateMediumRecord(), i_ReorgJob_i::UpdateMediumStatus(), i_ResourceManager_i::UpdateMediumVol(), bea_MediumMemory::UpdateOverwrite(), mif_PartMgr::UpdatePart(), i_ResourceManager_i::UpdatePartition(), i_ManagementInterface_i::UpdatePartition(), rm_SysState::UpdatePM(), i_ManagementInterface_i::UpdatePool(), UpdateReorgData(), i_ResourceManager_i::UpdateSlot(), i_ManagementInterface_i::UpdateSystemCfg(), i_BackEndAgent_i::UpdateVolumeUsed(), i_BackEndAgent_i::UseResources(), val_Size::Validate(), i_ManagementInterface_i::ValidatePMConfig(), i_ManagementInterface_i::ValidatePoolConfig(), pm_VolStatus::ValidDataSize(), df_BlockProxy::VerifiedBlock(), bea_FRI::VerifyExistenceOfFileMark(), i_BackEndAgent_i::VerifyIDs(), rm_Operator::VolumeFull(), rm_Operator::VolumeListStatusSet(), i_ResourceManager_i::VolumeUsage(), i_Job_i::WaitBea(), i_Job_i::WaitBeasToFinish(), i_ManagementInterface_i::WaitingForResStatus(), df_BlockManager::WaitReadersToComplete(), scsi_IO::WaitToBecomeReady(), df_BlockManager::WaitWriterToComplete(), TreeWalk::Walk(), while(), log_EventLogger::Write(), df_Stream::Write(), df_LimitedStream::Write(), blk_StdIOWriter::Write(), blk_DiskFRIWriter::Write(), blk_DiskBufferWriter::Write(), bea_MamMemory::Write(), fsc_SplitMgr::Write2DB(), fsc_Split::Write2DB(), fsc_nsStream::Write2DB(), fsc_nsElement::Write2DB(), fsc_nsDirEntryVec::Write2DB(), fsc_nsDirEntryMgr::Write2DB(), fsc_nsDirEntryFormattedVec::Write2DB(), fsc_nsDirectory::Write2DB(), fsc_MedPosMgr::Write2DB(), fsc_GenerationMgr::Write2DB(), fsc_CopyMgr::Write2DB(), fsc_Copy::Write2DB(), fsc_nsAttrStream::WriteAllSplitStreamsToDfStream(), bea_MigrationThread::WriteBlock(), hsm_RecallInfoGrp::WriteBufferedF(), cmn_FileTest::WriteContents(), hsm_RecallInfoGrp::WriteF(), bea_TapeVolume::WriteFileMarks(), bea_DiskVolume::WriteFileMarks(), pm_RecallSetReader::WriteFinished(), df_FRIDistiller::WriteFRIEnd(), bea_DupWriteThread::WriteMedVolume(), df_Packer::WriteRecBSEnd(), df_Packer::WriteRecBSStart(), df_Packer::WriteRecFile(), df_Packer::WriteRecFileEnd(), df_Packer::WriteRecFRIEnd(), df_Packer::WriteRecFRISplitInfo(), df_Packer::WriteRecFRIStart(), df_Packer::WriteRecMedVolHdr(), WriteRefToFile(), WriteToMedium(), bea_DiskVolume::WriteVolInfo(), df_Stream::WriteZeroes(), yyerror(), api_Base::~api_Base(), api_Partition::~api_Partition(), bea_DupReadThread::~bea_DupReadThread(), bea_DupWriteThread::~bea_DupWriteThread(), bea_FRIThread::~bea_FRIThread(), bea_MigrationThread::~bea_MigrationThread(), bea_RecallThread::~bea_RecallThread(), cmn_File::~cmn_File(), df_BlockManager::~df_BlockManager(), df_BlockReader::~df_BlockReader(), df_FRI::~df_FRI(), df_MgrReader::~df_MgrReader(), df_MgrWriter::~df_MgrWriter(), df_Packer::~df_Packer(), df_Unpacker::~df_Unpacker(), fio_DataBase::~fio_DataBase(), fsc_nsDirectory::~fsc_nsDirectory(), fsc_nsElement::~fsc_nsElement(), fsc_nsFSrecovery::~fsc_nsFSrecovery(), fsc_nsOwnerMgr::~fsc_nsOwnerMgr(), hsm_ActiveFH::~hsm_ActiveFH(), hsm_FHcache::~hsm_FHcache(), hsm_FileHeader::~hsm_FileHeader(), hsm_HL7MessageProxy::~hsm_HL7MessageProxy(), hsm_JobListMgr::~hsm_JobListMgr(), hsm_Recall::~hsm_Recall(), i_BackEndAgent_i::~i_BackEndAgent_i(), i_FSC_i::~i_FSC_i(), i_HSM_i::~i_HSM_i(), i_Job_i::~i_Job_i(), i_LibraryAgentSCSI_i::~i_LibraryAgentSCSI_i(), i_MaintFriJob_i::~i_MaintFriJob_i(), i_MediumDupl_i::~i_MediumDupl_i(), i_MigrationJob_i::~i_MigrationJob_i(), i_PartitionManager_i::~i_PartitionManager_i(), i_RedundantCopyJob_i::~i_RedundantCopyJob_i(), i_ReorgJob_i::~i_ReorgJob_i(), i_ResourceManager_i::~i_ResourceManager_i(), ivd_FileSystemAPI::~ivd_FileSystemAPI(), job_Executor::~job_Executor(), job_Manager::~job_Manager(), MigrateTreewalk::~MigrateTreewalk(), pf_Value::~pf_Value(), pm_RecallClientThread::~pm_RecallClientThread(), rm_Queue::~rm_Queue(), rm_QueueExecutor::~rm_QueueExecutor(), TreeWalk::~TreeWalk(), and ui_MsgWriter::~ui_MsgWriter().

#define log_DBG_STACK_m
Value:
if (g_cmn.IsDbgActive()) { \
        ostringstream sstr; \
        log_FunctionTracer::DumpStack(sstr); \
        log_DBG_m(dbg_NORM, sstr.str()); \
    }

Dump current stack to debug file.

Definition at line 150 of file debug.h.


Enumeration Type Documentation

Bit flags that can be used with debugging.

Enumerator:
dbg_INOUT 

Write function entries and exits to debug file.

dbg_NOHEADER 

Do not write header lines.

dbg_COMPACT 

Write compact header for each debug line.

dbg_THROW 

Write an entry on each throw if IVD exceptions with stack dump.

dbg_ERRORLOG 

Make a copy of error log messages in the debug file.

dbg_EXTVERBOSE 

Use verbose debugging of external modules (CORBA, ...).

dbg_ONLYTHIS 

Show only specified level (and not lower).

dbg_FLAGSENTINEL 

Definition at line 160 of file debug.h.

                    {
    dbg_INOUT       = 1,
    dbg_NOHEADER    = 1 << 1,
    dbg_COMPACT     = 1 << 2,
    dbg_THROW       = 1 << 3,
    dbg_ERRORLOG    = 1 << 4,
    dbg_EXTVERBOSE  = 1 << 5,
    dbg_ONLYTHIS    = 1 << 6,
    
    dbg_FLAGSENTINEL= 1 << 30
};

Debugging verbosity levels.

See also:
log_DBG_m
Enumerator:
dbg_NONE 

No logging.

dbg_LOW 

Low verbosity of debug output.

Use this level for messages that you always want to see in a debug output file.

dbg_NORM 

Normal verbosity of debug output.

Use this level for messages that you want to see in a debug output file in default (normal). Debug messages with dbg_LOW level will also be in the output.

dbg_EXTAPI 

This level is used to trace calls of external API calls.

Use this level before/after making API calls to external functions (Interbase, CORBA, etc).

dbg_DETAIL 

Detailed verbosity of debug output.

Use this level for messages that you want to see in a debug output file in detailed (verbose) debugging mode. Debug messages with dbg_NORMAL and dbg_LOW level will also be in the output.

dbg_SENTINEL 

Definition at line 54 of file debug.h.

             {
    dbg_NONE    = 0,

    dbg_LOW     = 1,
    dbg_NORM    = 2,
    dbg_EXTAPI  = 3,
    dbg_DETAIL  = 4,

    // dbg_SENTINEL must be last 
    dbg_SENTINEL
} log_DbgLevel_t;


Function Documentation

void log_Debugger::ChangeParams ( log_DbgLevel_t  a_level,
UInt32_t  a_flags,
const string &  a_filename 
) [private, inherited]

Definition at line 397 of file log_debugger.cpp.

References dbg_EXTVERBOSE, DbgFlags2Str(), g_cmn, log_Debugger::m_active, log_Debugger::m_extDbgOn, log_Debugger::m_flags, log_Debugger::m_level, log_Debugger::m_onOff_x, cmn_SysInfo::m_pid, NULL, log_Debugger::SetFileName(), log_Debugger::SetFlags(), log_Debugger::SetLevel(), cmn_Global::si, cmn_Time::Time2YMDhmsm(), and log_Debugger::Write().

Referenced by log_Debugger::On(), and log_Debugger::SetArgs().

                             {

    cmn_MutexLock l(m_onOff_x);
    //cout << "ChangeParams: IN" << endl;
    //cout << "a_filename:" << a_filename << endl;

    if (m_active) {
        //cout << "m_active == tru" << endl;
    
        // Debugging is already running. Update parameters.
        SetLevel(a_level);
        SetFlags(a_flags);

        if (m_extDbgOn != NULL) {
            // Turn on external debugging (CORBA).
            if (m_flags & dbg_EXTVERBOSE) {
                (*m_extDbgOn)(m_level, true);
            }
            else {
                (*m_extDbgOn)(m_level, false);
            }
        }

        ostringstream dbgStream;
        cmn_Time time;
        dbgStream
            << "***************************************************************" << endl
            << " Changed debug parameters : " << time.Time2YMDhmsm() << endl
            << " PID                      : " << g_cmn.si.m_pid << endl
            << " Debug params             : level: " << m_level
            << " flags: " << DbgFlags2Str(m_flags) << endl
            << "***************************************************************" << endl;
        Write(m_level, dbgStream);
    }
    else {
        SetLevel(a_level);
        SetFlags(a_flags);
        SetFileName(a_path);
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void log_Debugger::CloseF (  )  [inline, virtual, inherited]

Reimplemented from log_File.

Definition at line 191 of file debug.h.

Referenced by log_Debugger::Off().

                  {
        Off();
    };

Here is the caller graph for this function:

UInt32_t IVD_CMN_DECL_d dbg_GetFlags (  ) 

Definition at line 570 of file log_debugger.cpp.

References cmn_Global::dbg, g_cmn, and log_Debugger::GetFlags().

                        {
    return g_cmn.dbg.GetFlags();
}

Here is the call graph for this function:

log_DbgLevel_t IVD_CMN_DECL_d dbg_GetLevel (  ) 

Definition at line 562 of file log_debugger.cpp.

References cmn_Global::dbg, g_cmn, and log_Debugger::GetLevel().

Referenced by scsi_IO::IOCtl(), fio_RelFile::ReadListOfUnusedVector(), and hsm_HL7MessageProxy::SendMessages().

                              {
    return g_cmn.dbg.GetLevel();
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool IVD_CMN_DECL_d dbg_IsActive (  ) 

Definition at line 553 of file log_debugger.cpp.

References g_cmn, IVD_COUT_LOG_m, and cmn_Global::m_dbgReady.

Referenced by i_PartitionManager_i::GetAllMediaWithPools(), scsi_IO::IOCtl(), ipc_ORBLogCallback(), i_RedundantCopyJob_i::Prepare(), and fio_RelFile::ReadListOfUnusedVector().

                    {
    IVD_COUT_LOG_m(" log_Debugger::IsActive() ")
    return (g_cmn.m_dbgReady);
}

Here is the caller graph for this function:

void IVD_CMN_DECL_d dbg_Off (  ) 

Definition at line 549 of file log_debugger.cpp.

References cmn_Global::dbg, g_cmn, and log_Debugger::Off().

Referenced by HsmApiDisableDebug(), and i_Component_i::StopDebug().

               {
    g_cmn.dbg.Off();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void IVD_CMN_DECL_d dbg_On (  ) 

Turn debugging on with latest known debugging parameters.

Definition at line 522 of file log_debugger.cpp.

References cmn_Global::dbg, g_cmn, and log_Debugger::On().

Referenced by HsmApiEnableDebug(), main(), Parse(), cfg_CliBase::Refresh(), and i_Component_i::StartDebug().

              {
    g_cmn.dbg.On();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void IVD_CMN_DECL_d dbg_On ( log_DbgLevel_t  a_level,
UInt32_t  a_flags,
const string &  a_filename 
)

Turn debugging on with new parameters.

Parameters:
a_level Filter for level of verbosity of debug output.
a_flags Debugging flags
a_filename Output file name. (Can be omitted. cout will be used in that case).

Definition at line 533 of file log_debugger.cpp.

References cmn_Global::dbg, g_cmn, and log_Debugger::On().

                                 {

    g_cmn.dbg.On(a_level, a_flags, a_filename);
}

Here is the call graph for this function:

void IVD_CMN_DECL_d dbg_SetArgs ( char  a_argLevel,
const string &  a_argFile,
const string &  a_argFlags 
)

Turn debugging on with new parameters that are read from arguments or environment variable.

Definition at line 545 of file log_debugger.cpp.

References cmn_Global::dbg, g_cmn, and log_Debugger::SetArgs().

Referenced by HsmApiEnableDebug(), ivd_ParseCmnArgs(), cfg_CliBase::Refresh(), i_Component_i::StartDebug(), and i_Component_i::StopDebug().

                                                                                     {
    g_cmn.dbg.SetArgs(a_argLevel, a_argFile, a_argFlags);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void IVD_CMN_DECL_d dbg_SetExternalDebugger ( void(*)(log_DbgLevel_t a_level, bool a_verbose)  a_extDbgOn,
void(*)()  a_extDbgOff 
)

Function is used by external debugging facility to set pointers to functions that are called at each dbg_On() and dbg_Off() to start and stop external debugging.

Used for debugging ORB.

Definition at line 583 of file log_debugger.cpp.

References cmn_Global::dbg, g_cmn, IVD_COUT_LOG_m, and log_Debugger::SetExternalDebugger().

Referenced by ipc_Corba::InitDebug().

                            {

    IVD_COUT_LOG_m(" log_Debugger::SetExternalDebugger() ")
    g_cmn.dbg.SetExternalDebugger(a_extDbgOn, a_extDbgOff);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void IVD_CMN_DECL_d dbg_SetFlags ( UInt32_t  a_flags  ) 

Definition at line 566 of file log_debugger.cpp.

References cmn_Global::dbg, g_cmn, and log_Debugger::SetFlags().

                                    {
    g_cmn.dbg.SetFlags(a_flags);
}

Here is the call graph for this function:

void IVD_CMN_DECL_d dbg_SetLevel ( log_DbgLevel_t  a_level  ) 

Definition at line 558 of file log_debugger.cpp.

References cmn_Global::dbg, g_cmn, and log_Debugger::SetLevel().

                                          {
    g_cmn.dbg.SetLevel(a_level);
}

Here is the call graph for this function:

void IVD_CMN_DECL_d dbg_SetProcName ( const char *  a_procName  ) 

Definition at line 517 of file log_debugger.cpp.

References cmn_Global::dbg, g_cmn, and log_Debugger::SetProcName().

Referenced by HsmApiEnableDebug(), ivd_ParseCmnArgs(), and cfg_CliBase::Refresh().

                                                            {
    g_cmn.dbg.SetProcName(a_procName);
}

Here is the call graph for this function:

Here is the caller graph for this function:

string log_Debugger::GetArgFile (  )  const [inline, inherited]

Definition at line 217 of file debug.h.

Referenced by i_Service_i::Execute(), and ivd_DD::Run().

{ return m_argFile; };

Here is the caller graph for this function:

string log_Debugger::GetArgFlags (  )  const [inline, inherited]

Definition at line 218 of file debug.h.

Referenced by i_Service_i::Execute(), and ivd_DD::Run().

{ return m_argFlags; };

Here is the caller graph for this function:

string log_Debugger::GetArgLevel (  )  const [inline, inherited]

Definition at line 216 of file debug.h.

Referenced by i_Service_i::Execute(), and ivd_DD::Run().

{ return m_argLevel; };

Here is the caller graph for this function:

UInt32_t log_Debugger::GetFlags (  )  const [inline, inherited]

Definition at line 215 of file debug.h.

Referenced by dbg_GetFlags(), ivd_BaseException::FormatText(), log_FunctionTracer::log_FunctionTracer(), log_Output(), and log_FunctionTracer::~log_FunctionTracer().

{ return m_flags; };

Here is the caller graph for this function:

log_DbgLevel_t log_Debugger::GetLevel (  )  const [inline, inherited]
void log_Debugger::Off (  )  [inherited]

Definition at line 333 of file log_debugger.cpp.

References log_Debugger::CloseF(), g_cmn, IVD_COUT_LOG_m, log_Debugger::m_active, log_Debugger::m_extDbgOff, log_Debugger::m_level, ivd_Product::m_nameShort, log_Debugger::m_onOff_x, NULL, cmn_Global::prod, cmn_Time::Time2YMDhmsm(), and log_Debugger::Write().

Referenced by dbg_Off(), and log_Debugger::~log_Debugger().

                       {
    IVD_COUT_LOG_m(" log_Debugger::Off() " << boolalpha << m_active)
    if (!m_active) {
        return;
    };
    cmn_MutexLock l(m_onOff_x);

    cmn_Time        time;
    ostringstream   dbgStream;
    dbgStream
        << endl << endl
        << "***************************************************************" << endl
        << " " << g_cmn.prod.m_nameShort << " System debug file completed at "
        << time.Time2YMDhmsm() << endl
        << "***************************************************************" << endl;

    Write(m_level, dbgStream);

    log_File::CloseF();

    // Turn off external debugging (CORBA).
    if (m_extDbgOff != NULL) {
        (*m_extDbgOff)();
    }

    m_active = false;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void log_Debugger::On (  )  [inherited]

Turns on debugging and writes a file header.

Definition at line 204 of file log_debugger.cpp.

References cmn_CreatePathNoException(), dbg_EXTVERBOSE, dbg_NONE, DbgFlags2Str(), errno, g_cmn, log_File::GetFileName(), ivd_Versions::GetVersionStringDetail(), IVD_COUT_LOG_m, log_Debugger::m_active, cmn_SysInfo::m_codeset, cmn_SysInfo::m_effUserName, log_Debugger::m_extDbgOn, log_File::m_fileName, log_Debugger::m_flags, cmn_SysInfo::m_hostName, cmn_SysInfo::m_ip, log_Debugger::m_level, cmn_SysInfo::m_machine, cmn_SysInfo::m_masterHost, ivd_Product::m_nameShort, cmn_SysInfo::m_officialHostName, cmn_SysInfo::m_officialIP, log_Debugger::m_onOff_x, cmn_SysInfo::m_osName, cmn_SysInfo::m_osRelease, cmn_SysInfo::m_osVersion, cmn_SysInfo::m_pid, cmn_SysInfo::m_serverHost, cmn_SysInfo::m_userName, NULL, log_File::OpenF(), cmn_Global::prod, cmn_Global::si, cmn_Time::Time2YMDhmsm(), cmn_Path::UpPath(), and log_Debugger::Write().

Referenced by dbg_On(), and log_Debugger::On().

                      {
    IVD_COUT_LOG_m(" log_Debugger::On() ACTIVE " << boolalpha << m_active)

    if (m_active || m_level == dbg_NONE) {
        // Debugging is already running or not enabled. Just exit.
        return;
    }
    cmn_MutexLock l(m_onOff_x);

    ostringstream  dbgStream;

    {
        //cout << "m_fileName: " << m_fileName << endl;
        //cout << ".UpPath()(): " << m_fileName.UpPath() << endl;
        // Open specified file name.
        int result = cmn_CreatePathNoException(m_fileName.UpPath());
        if (result != 0) {
            cout
                << "** CRITICAL: can't create debug file path: "
                << GetFileName() << endl
                << "Debugging can't be started." << endl
                << "Error code: " << result;
        }
        if (!OpenF()) {
            cout << "** CRITICAL: can't open debug file"
                << GetFileName() << endl
                << "Debugging can't be started." << endl
                << "Error" << errno;
        }
    }

    cmn_Time time;
    dbgStream
        << "***************************************************************" << endl
        << " "                << g_cmn.prod.m_nameShort
        << " debug file"      << endl << endl
        << " Created      : " << time.Time2YMDhmsm() << endl
        << " User         : " << g_cmn.si.m_userName
                              << " (effective: " << g_cmn.si.m_effUserName << ")" << endl
        << " Code set     : " << g_cmn.si.m_codeset << endl
        << " Hostname (IP): " << g_cmn.si.m_hostName << " ("
                              << g_cmn.si.m_ip << "), official: "
                              << g_cmn.si.m_officialHostName << " ("
                              << g_cmn.si.m_officialIP << ")" << endl
        << " "                << g_cmn.prod.m_nameShort
        << " server   : "     << g_cmn.si.m_serverHost << endl
        << " "                << g_cmn.prod.m_nameShort
        << " master   : "     << g_cmn.si.m_masterHost << endl
        << " OS           : " << g_cmn.si.m_osName << " ("
                              << g_cmn.si.m_osRelease << ","
                              << g_cmn.si.m_osVersion << ") on "
                              << g_cmn.si.m_machine << endl
        << " PID          : " << g_cmn.si.m_pid << endl
        << " Debug params : level: " << m_level
        << " flags: " << DbgFlags2Str(m_flags) << endl;

    dbgStream
        << " Version info : " << endl
        << ivd_Versions::GetVersionStringDetail();
    dbgStream
        << "***************************************************************" << endl;

    // Turn on external debugging (CORBA).
    if (m_extDbgOn != NULL) {
        if (m_flags & dbg_EXTVERBOSE) {
            (*m_extDbgOn)(m_level, true);
        }
        else {
            (*m_extDbgOn)(m_level, false);
        }
    }

    Write(m_level, dbgStream);

    //cout << dbgStream; 
    m_active = true;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void log_Debugger::On ( log_DbgLevel_t  a_level,
UInt32_t  a_flags,
const string &  a_filename = "" 
) [inherited]

Definition at line 282 of file log_debugger.cpp.

References log_Debugger::ChangeParams(), and log_Debugger::On().

                                 {

    ChangeParams(a_level, a_flags, a_filename);
    On();
}

Here is the call graph for this function:

void log_Debugger::SetArgs ( char  a_argLevel,
const string &  a_argFile,
const string &  a_argFlags 
) [inherited]

Definition at line 291 of file log_debugger.cpp.

References c_compact_f(), c_detail_l(), c_err_f(), c_extapi_l(), c_extverbose_f(), c_io_f(), c_low_l(), c_nohdr_f(), c_norm_l(), c_onlythis_f(), c_throw_f(), log_Debugger::ChangeParams(), dbg_NONE, log_Debugger::m_argFile, log_Debugger::m_argFlags, and log_Debugger::m_argLevel.

Referenced by dbg_SetArgs().

                                {

//cout << "a_argFile:" << a_argFile << endl; 

    if (a_argLevel != '\0') {
       m_argLevel = string(1, a_argLevel);
    } else {
       m_argLevel = "";
    }
    m_argFile  = a_argFile;
    m_argFlags = a_argFlags;

    // level
    log_DbgLevel_t level(dbg_NONE);
    char lev = toupper(a_argLevel);
    switch (lev) {
        case c_low_l   : level = dbg_LOW; break;
        case c_norm_l  : level = dbg_NORM; break;
        case c_extapi_l: level = dbg_EXTAPI; break;
        case c_detail_l: level = dbg_DETAIL; break;
    }

    // flags
    UInt32_t flags(0);
    for (int i = 0; a_argFlags[i] != '\0'; i++) {
        char fl = toupper(a_argFlags[i]);
        switch (fl) {
            case c_io_f         : flags |= dbg_INOUT; break;
            case c_nohdr_f      : flags |= dbg_NOHEADER; break;
            case c_compact_f    : flags |= dbg_COMPACT; break;
            case c_throw_f      : flags |= dbg_THROW; break;
            case c_err_f        : flags |= dbg_ERRORLOG; break;
            case c_extverbose_f : flags |= dbg_EXTVERBOSE; break;
            case c_onlythis_f   : flags |= dbg_ONLYTHIS; break;
        }
    }
    ChangeParams(level, flags, a_argFile);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void log_Debugger::SetExternalDebugger ( void(*)(log_DbgLevel_t, bool a_verbose)  a_extDbgOn,
void(*)()  a_extDbgOff 
) [inherited]

Referenced by dbg_SetExternalDebugger().

Here is the caller graph for this function:

void log_Debugger::SetFileName ( const cmn_Path a_path  )  [inherited]

Reimplemented from log_File.

Definition at line 172 of file log_debugger.cpp.

References ivd_Directories::debug, cmn_Global::dirs, g_cmn, cmn_Path::IsAbsolute(), log_File::m_fileName, log_Debugger::m_procName, cmn_SysInfo::m_strpid, path, and cmn_Global::si.

Referenced by log_Debugger::ChangeParams().

                                                     {
    //cout << "SetFileName:" << a_fileName << endl;
    
    if (a_path.empty()) {
        //cout << "Empty!!" << endl;
        // debug goes to cout
        return;
    }
    
    cmn_Path path;
    if (a_path.compare(".") == 0) {
        //use default path
        path = g_cmn.dirs.debug;
    } else {
        //use user defined path
        if (a_path.IsAbsolute()){
            path = a_path;
        } else {
            path = g_cmn.dirs.debug + a_path;
        }
    };

    m_fileName = path + cmn_Path (m_procName + string("_") +
                                  g_cmn.si.m_strpid + string(".log"));

}

Here is the call graph for this function:

Here is the caller graph for this function:

void log_Debugger::SetFlags ( UInt32_t  a_flags  )  [inherited]

Definition at line 365 of file log_debugger.cpp.

References log_Debugger::m_flags.

Referenced by log_Debugger::ChangeParams(), and dbg_SetFlags().

                                            {
    m_flags = a_flags;
}

Here is the caller graph for this function:

void log_Debugger::SetLevel ( log_DbgLevel_t  a_level  )  [inherited]

Definition at line 361 of file log_debugger.cpp.

References log_Debugger::m_level.

Referenced by i_HSM_i::ChangeLogLevel(), log_Debugger::ChangeParams(), and dbg_SetLevel().

                                                  {
    m_level = a_level;
}

Here is the caller graph for this function:

void log_Debugger::SetProcName ( const char *  a_procName  )  [inherited]

Definition at line 369 of file log_debugger.cpp.

References log_Debugger::m_procName, and PATH_SEPARATOR.

Referenced by dbg_SetProcName().

                                                     {
    string name(a_procName);
    string::size_type p = name.find_last_of(PATH_SEPARATOR);
    if (p != string::npos) {
        name = name.substr(p+1);
    }
    m_procName = name;
}

Here is the caller graph for this function:

void log_Debugger::Write ( log_DbgLevel_t  a_level,
ostringstream &  a_dbgFormatted 
) [inherited]

Writes the formatted debug text to output stream.

Definition at line 500 of file log_debugger.cpp.

References dbg_ONLYTHIS, IVD_COUT_LOG_m, log_Debugger::m_active, log_Debugger::m_debugOut_x, log_Debugger::m_flags, log_Debugger::m_level, str, and log_File::WriteF().

Referenced by log_Debugger::ChangeParams(), log_FunctionTracer::log_FunctionTracer(), log_Stack::log_Stack(), log_Debugger::Off(), log_Debugger::On(), log_Debugger::~log_Debugger(), log_FunctionTracer::~log_FunctionTracer(), and log_Stack::~log_Stack().

                                                                              {
    IVD_COUT_LOG_m(" log_Debugger::Write() " << boolalpha << m_active)


    if ( (m_flags & dbg_ONLYTHIS) != 0 && a_level != m_level) {
        return;
    }


    // Dump the whole debug entry to a debugging stream (whatever it is).
    a_dbgFormatted << endl;
    const string &str = a_dbgFormatted.str();
    //cout << "log_Debugger::Write: " << str << endl;
    cmn_MutexLock l(m_debugOut_x);
    WriteF(str.data(), (ivd_FileBufSize_t)str.length());
}

Here is the call graph for this function:

Here is the caller graph for this function:

void log_Debugger::WriteHeader ( ostringstream &  a_dbgFormatted,
log_DbgLevel_t  a_level,
const log_FunctionID a_fcnID,
long  a_line 
) [inherited]

Write header of the message based on previously set parameters.

Definition at line 444 of file log_debugger.cpp.

References cmn_Time::c_Time2hmsm(), cmn_Time::c_Time2YMDhmsm(), dbg_COMPACT, dbg_NOHEADER, dbg_ONLYTHIS, g_cmn, IVD_COUT_LOG_m, ivd_GETTID, log_Debugger::m_active, log_FunctionID::m_className, log_FileID::m_file, log_FunctionID::m_fileID, log_Debugger::m_flags, log_FunctionID::m_funcName, log_Debugger::m_level, log_FunctionID::m_line, log_FileID::m_revision, cmn_SysInfo::m_strpid, s_levels, log_FunctionID::SetLine(), and cmn_Global::si.

Referenced by log_FunctionTracer::log_FunctionTracer(), log_Stack::log_Stack(), log_FunctionTracer::~log_FunctionTracer(), and log_Stack::~log_Stack().

                                            {
    IVD_COUT_LOG_m(" log_Debugger::WriteHeader() " << boolalpha << m_active)

    a_fcnID.SetLine(a_line);

    if ( (m_flags & dbg_ONLYTHIS) != 0 && a_level != m_level) {
        return;
    }

    // Plain debug message (without header)
    if ( !(m_flags & dbg_COMPACT) && (m_flags & dbg_NOHEADER) ) {
        return;
    }

    cmn_Time time;

    char front[] = "[? ";
    front[1] = s_levels[a_level];

    char strtid[12];
    sprintf(strtid, "%10u ", UInt32_t(ivd_GETTID()) );

    if ((m_flags & dbg_COMPACT) != 0) {
        // Omit process id in compact display
        a_dbgFormatted
            << front
            << strtid
            << time.c_Time2hmsm()
            << "] ";
    }
    else {
        char detail[512];
        sprintf(detail,"; %s::%s:%d, %s,%s]\n",
            a_fcnID.m_className,
            a_fcnID.m_funcName,
            a_fcnID.m_line,
            a_fcnID.m_fileID.m_file.c_str(),
            a_fcnID.m_fileID.m_revision.c_str());

        // Verbose debug message (with header)
        a_dbgFormatted
            << front
            << g_cmn.si.m_strpid << "."
            << strtid
            << time.c_Time2YMDhmsm()
            << detail;
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

log_Debugger::~log_Debugger (  )  [virtual, inherited]

Destructor automatically closes debugging file if debugging is still active at the end of the program execution.

Definition at line 157 of file log_debugger.cpp.

References IVD_COUT_LOG_m, log_Debugger::m_active, log_Debugger::m_level, log_Debugger::Off(), and log_Debugger::Write().

                            {
    IVD_COUT_LOG_m(" log_Debugger::~log_Debugger() " << boolalpha << m_active)
    if (m_active) {
        ostringstream  dbgStream;
        dbgStream
            << endl << endl
            << "***************************************************************" << endl
            << " Debugging completed automatically by destructor. ";

        Write(m_level, dbgStream);
        Off();
    }
}

Here is the call graph for this function:


Variable Documentation

log_Debugger::log_CLASSID_m [private, inherited]

Definition at line 234 of file debug.h.

bool& log_Debugger::m_active [private, inherited]
string log_Debugger::m_argFile [private, inherited]

Definition at line 253 of file debug.h.

Referenced by log_Debugger::SetArgs().

string log_Debugger::m_argFlags [private, inherited]

Definition at line 254 of file debug.h.

Referenced by log_Debugger::SetArgs().

string log_Debugger::m_argLevel [private, inherited]

Definition at line 252 of file debug.h.

Referenced by log_Debugger::SetArgs().

bool log_Debugger::m_created = false [static, private, inherited]

Flag to guarantee singleton.

Definition at line 237 of file debug.h.

Referenced by log_Debugger::log_Debugger().

cmn_Mutex log_Debugger::m_debugOut_x [private, inherited]

Definition at line 239 of file debug.h.

Referenced by log_Debugger::Write().

void(* log_Debugger::m_extDbgOff)() [private, inherited]

Pointer to exteral function to turn off debugging (CORBA).

Definition at line 259 of file debug.h.

Referenced by log_Debugger::Off().

void(* log_Debugger::m_extDbgOn)(log_DbgLevel_t a_level, bool a_verbose) [private, inherited]

Pointer to exteral function to turn on debugging (CORBA).

Definition at line 257 of file debug.h.

Referenced by log_Debugger::ChangeParams(), and log_Debugger::On().

UInt32_t log_Debugger::m_flags [private, inherited]
log_DbgLevel_t log_Debugger::m_level [private, inherited]
cmn_Mutex log_Debugger::m_onOff_x [private, inherited]

Definition at line 240 of file debug.h.

Referenced by log_Debugger::ChangeParams(), log_Debugger::Off(), and log_Debugger::On().

string log_Debugger::m_procName [private, inherited]

Definition at line 248 of file debug.h.

Referenced by log_Debugger::SetFileName(), and log_Debugger::SetProcName().