Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

veo922.cpp File Reference


Detailed Description

description ...

Author:
JoergM area internal sysmon / console
See also:
example.html ...

Definition in file veo922.cpp.

#include "gsp100.h"
#include "heo922.h"
#include "geo00_0.h"
#include "geo50_0.h"
#include "geo57.h"
#include "geo002.h"
#include "heo92.h"
#include "heo47.h"
#include "heo00x.h"
#include "gen45.h"
#include "gen003.h"
#include "RunTime/MemoryManagement/RTEMem_AllocatorRegister.hpp"
#include "RunTime/Synchronisation/RTESync_NamedSpinlock.hpp"
#include "RunTime/RTE_ConsoleStandardOutput.h"
#include "RunTime/Diagnose/RTEDiag_SymbolResolutionLock.h"

Go to the source code of this file.

Classes

struct  StorageInfo

Defines

#define CONSOLE_TID   kgs->console.tid
#define COORD_TID   kgs->coord.tid
#define DEV0_TID   kgs->dev0.tid
#define DEVI_IN_USE(_pDeviCtrl)   (_pDeviCtrl->state != KT_INITIALIZED )
#define DEVI_PER_VOLUME   (KGS->devpsets)
#define DEVSP_NAME(_DevNo)   (KGS->dev0.dev[_DevNo].devspace)
#define DYN_DATA_FREE   (tsp00_Int4 )(KGS-> dyndata_top - KGS-> dyndata_ptr)
#define DYN_DATA_USED   (tsp00_Int4) (KGS-> dyndata_ptr - KGS-> dyndata_bot)
#define DYN_POOL_FREE   (tsp00_Int4 )(KGS-> dynpool_top - KGS-> dynpool_ptr)
#define DYN_POOL_USED   (tsp00_Int4 )(KGS-> dynpool_ptr - KGS-> dynpool_bot)
#define FIRST_DEV   (KGS->first_dev)
#define FIRST_REGION   (KGS->semaphore)
#define FIRST_UKT   (KGS->first_kp)
#define IS_DEVSP_IN_USE(_DevNo)   (DEVSP_NAME(_DevNo)[0] != '\0')
#define IS_SEMA_IN_USE(_SemId)   (kgs->semaphore [ _SemId].semaname[ 0 ] != '\0')
#define KGS_SIZE   (tsp00_Int4 )(KGS-> seg_size )
#define LAST_DEV   (FIRST_DEV + (XPARAM(lMaxDevspaces) * DEVI_PER_VOLUME - 1) )
#define LAST_UKT   (KGS->last_kp)
#define MAX_SPEC_THREAD_INFOS_EO922   5
#define MAX_STORAGE_INFOS_EO922   8
#define PTR_TO_DB_NODE   (KGS->servernode.asCharp() )
#define PTR_TO_PEER_NODE(_ActTask)   ( sql45_peer_node(_ActTask) )
#define REGION_ACCESS(_pSemCtrl)   (_pSemCtrl->get_count)
#define REGION_BEGEXCL_TAS_COLL(_pSemCtrl)   (_pSemCtrl->begexcl_tas_count)
#define REGION_COLLISION(_pSemCtrl)   (_pSemCtrl->collision_count)
#define REGION_ENDEXCL_TAS_COLL(_pSemCtrl)   (_pSemCtrl->endexcl_tas_count)
#define REGION_WAITS(_pSemCtrl)   (_pSemCtrl->wait_count)
#define REQU_TID   kgs->requestor.tid
#define RTE_DESC_DEVI_EO922   "I/O"
#define RTE_DESC_UKT_EO922   "UKT"
#define RTE_REGISTER_FIRST_INDEX   (-1)
#define SEMA_NAME(_SemId)   (KGS->semaphore [ _SemId].semaname)
#define TASK_AT_INDEX(_IDX)   (KGS->pFirstTaskCtrl + _IDX - 1)
#define TASK_CONNECTION_RECORD(tsk_)   ((tsk_)->connection)
#define TASK_DISP_CNT(_pTaskCtrl)   ZERO_IF_RESET_PENDING((_pTaskCtrl),(_pTaskCtrl)->disp_counter)
#define TASK_INDEX(_pTaskCtrl)   (_pTaskCtrl)->index
#define TASK_QUQUE_LOCATION(_pTaskCtrl)   (_pTaskCtrl)->is_in_queue
#define TASK_REGION_ACCESS(_pTaskCtrl)   ZERO_IF_RESET_PENDING((_pTaskCtrl),(_pTaskCtrl)->ulBegExclCalls)
#define TASK_SELF_SUSP_CNT(_pTaskCtrl)   ZERO_IF_RESET_PENDING((_pTaskCtrl),(_pTaskCtrl)->self_susp_cnt)
#define TASK_STATE_REASON(_pTaskCtrl)   (_pTaskCtrl)->state_reason
#define TASK_UKT_INDEX(tsk_)   UKT_INDEX((tsk_)->ukt)
#define THREAD_TID(_Thread)   ( _Thread->tid )
#define TIMER_TID   kgs->timer.tid
#define UKT_INDEX(_Ukt)   (_Ukt->index)
#define ZERO_IF_RESET_PENDING(pTaskCtrl_, value_)   ( ( EO52_RESET_TASK_FULL_PENDING == (pTaskCtrl_)->TaskStatRecResetPending ) ? 0 : (value_) )

Typedefs

typedef struct DEV_PCB * PASYNCI_CTRL_REC
typedef struct DEV_PCB * PDEVI_CTRL_REC
typedef struct DDB4_SEMA * PSEM_CTRL_REC
typedef ten50_UKT_Control * PUKT_CTRL_REC

Functions

static void eo922_FillSystemInfo (tsp92_RteAllocatorInfo &RteAllocatorInfo)
static teo52_TaskQueueStatistic * eo922_GetTaskQueueStatistic (TASK_CTRL ActTask)
static
teo52_TaskStateStatisticRec * 
eo922_GetTaskStateStatistic (TASK_CTRL ActTask)
static void eo922_TrimTimeInfo (char *ptr, int length)
static void eo922BuildThreadName (char *ThreadName, const char *ThreadDesc, tsp00_Int4 ThreadIndex, tsp00_Int4 MaxThreadNameLen)
static void eo922FillStorageArray (tsp00_Int4 ArrayIndex, const char *StorageName, tsp00_Int4 StorageVal, const char *StorageUnit)
static void eo922FillTaskInfo (TASK_CTRL pTaskCtrl, tsp92_RteTaskInfo *RteTaskInfo)
static bool eo922GetRteInfoIO (tsp00_Int4 DevNo, tsp00_8ByteCounter *ReadCnt, tsp00_8ByteCounter *ReadPageCnt, tsp00_8ByteCounter *WriteCnt, tsp00_8ByteCounter *WritePageCnt)
static bool eo922GetRteInfoRegion (tsp92_RteRegionInfo *RteRegionInfo)
static void eo922GetRteInfoRegionWaiter (tsp92_RteRegionInfo *RteRegionInfo)
static void eo922GetRteOsSpecificInfoRegion (tsp92_RteRegionInfo *RteRegionInfo)
static void eo922GetRteOsSpecificUKTIO (PUKT_CTRL_REC pTmpUKTCtrl, tsp00_Int4 DevNo, tsp00_Longuint *UKTReadCnt, tsp00_Longuint *UKTReadPages, tsp00_Longuint *UKTWriteCnt, tsp00_Longuint *UKTWritePages)
static void eo922GetTaskDetails (TASK_CTRL ActTask, tsp92_RteTaskDetailsInfo *RteTaskDetailsInfo)
static bool eo922RteInfoIOSearchNextDev (const tsp00_Int4 StartDev, tsp00_Int4 *NextDev)
static bool eo922RteInfoRegionSearchNextSem (const tsp00_Int4 StartSem, tsp00_Int4 *NextSem)
void eo922SetDevIOStatistic (tsp92_RteTaskDEVIOInfo *DevIOStatistic, teo52_TaskDevIOStatistic *StateStat)
void eo922SetSelfIOStatistic (tsp92_RteTaskSelfIOInfo *SelfIOStatistic, teo52_IOStatisticRec *StateStat)
void eo922SetStateStatistic (tsp92_RteTaskStateInfo *StateStatistic, teo52_RelativeAndAbsoluteTime *StateStat)
void eo922SetTime (tsp00_Longreal *AvgTimeToSetInSec, tsp00_Longreal *TotTimeToSetInMicroSec, tsp00_Longuint Cnt, tsp00_Uint8 MicroSeconds)
static SAPDB_Char const * GetUKTStateName (SAPDB_ULong const ulState)
externC tsp00_Bool vGetRteInfoAllocatorFirst (tsp92_RteAllocatorInfo *RteAllocatorInfo)
externC tsp00_Bool vGetRteInfoAllocatorNext (tsp92_RteAllocatorInfo *RteAllocatorInfo)
externC tsp00_Bool vGetRteInfoBackupFirst (tsp92_RteBackupInfo *RteBackupInfo)
externC tsp00_Bool vGetRteInfoBackupNext (tsp92_RteBackupInfo *RteBackupInfo)
externC tsp00_Bool vGetRteInfoConnectionFirst (tsp92_RteConnectionInfo *RteConnectionInfo)
externC tsp00_Bool vGetRteInfoConnectionNext (tsp92_RteConnectionInfo *RteConnectionInfo)
externC tsp00_Bool vGetRteInfoIODetailsFirst (tsp92_RteIODetailsInfo *RteIODetailsInfo)
externC tsp00_Bool vGetRteInfoIODetailsNext (tsp92_RteIODetailsInfo *RteIODetailsInfo)
externC tsp00_Bool vGetRteInfoIOFirst (tsp92_RteIOInfo *RteIOInfo)
externC tsp00_Bool vGetRteInfoIONext (tsp92_RteIOInfo *RteIOInfo)
externC tsp00_Bool vGetRteInfoRegionFirst (tsp92_RteRegionInfo *RteRegionInfo)
externC tsp00_Bool vGetRteInfoRegionNext (tsp92_RteRegionInfo *RteRegionInfo)
externC tsp00_Bool vGetRteInfoSpecThreadsFirst (tsp92_RteSpecThreadsInfo *RteSpecThreadsInfo)
externC tsp00_Bool vGetRteInfoSpecThreadsNext (tsp92_RteSpecThreadsInfo *RteSpecThreadsInfo)
externC tsp00_Bool vGetRteInfoSpinlockFirst (tsp92_RteSpinlockInfo *RteSpinlockInfo)
externC tsp00_Bool vGetRteInfoSpinlockNext (tsp92_RteSpinlockInfo *RteSpinlockInfo)
externC tsp00_Bool vGetRteInfoStorageFirst (tsp92_RteStorageInfo *RteStorageInfo)
externC tsp00_Bool vGetRteInfoStorageNext (tsp92_RteStorageInfo *RteStorageInfo)
externC void vGetRteInfoTaskDetails (tsp00_TaskId taskid, tsp92_RteTaskDetailsInfo *RteTaskDetailsInfo)
externC tsp00_Bool vGetRteInfoTaskDetailsFirst (tsp92_RteTaskDetailsInfo *RteTaskDetailsInfo)
externC tsp00_Bool vGetRteInfoTaskDetailsNext (tsp92_RteTaskDetailsInfo *RteTaskDetailsInfo)
externC tsp00_Bool vGetRteInfoTaskFirst (tsp92_RteTaskInfo *RteTaskInfo, tsp92_RteTaskInfoStateToShow_Enum StateToShow, tsp92_RteTaskInfoTypeToShow_Enum TypeToShow)
externC tsp00_Bool vGetRteInfoTaskNext (tsp92_RteTaskInfo *RteTaskInfo)
externC void vGetRteInfoTotalCnt (tsp92_RteTotalCntInfo *RteTotalCntInfo)
externC tsp00_Bool vGetRteInfoUKTFirst (tsp92_RteUKTInfo *RteUKTInfo)
externC tsp00_Bool vGetRteInfoUKTNext (tsp92_RteUKTInfo *RteUKTInfo)

Variables

static teo52_TaskQueueStatistic eo922_EmptyTaskQueueStatisticRecord = { 0 }
static teo52_TaskStateStatisticRec eo922_EmptyTaskStateStatisticRecord = { 0 }
static StorageInfo StorageInfoArray [MAX_STORAGE_INFOS_EO922]


Generated by  Doxygen 1.6.0   Back to index