XrdMonDebugPacketApp.cc File Reference

#include "XrdMon/XrdMonDecArgParser.hh"
#include "XrdMon/XrdMonDecDictInfo.hh"
#include "XrdMon/XrdMonDecUserInfo.hh"
#include "XrdMon/XrdMonHeader.hh"
#include "XrdSys/XrdSysHeaders.hh"
#include "XrdSys/XrdSysPlatform.hh"
#include "XrdXrootd/XrdXrootdMonData.hh"
#include <fstream>
#include <iomanip>
#include <netinet/in.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  CalcTime

Typedefs

typedef pair< kXR_int32, kXR_int32TimePair

Functions

TimePair decodeTime (const char *packet)
CalcTime prepareTimestamp (const char *packet, int &offset, int len, kXR_int32 &begTime)
void debugRWRequest (const char *packet, kXR_int32 timestamp, kXR_int64 offset)
void debugOpen (const char *packet, kXR_int32 timestamp, kXR_int64 offset)
void debugClose (const char *packet, kXR_int32 timestamp, kXR_int64 offset)
void debugDictPacket (const char *packet, int len)
void debugUserPacket (const char *packet, int len)
void debugDisconnect (const char *packet, int len)
void debugStagePacket (const char *packet, int)
void debugTracePacket (const char *packet, int len)
int main (int argc, char *argv[])


Typedef Documentation

typedef pair<kXR_int32, kXR_int32> TimePair

Definition at line 33 of file XrdMonDebugPacketApp.cc.


Function Documentation

void debugClose ( const char *  packet,
kXR_int32  timestamp,
kXR_int64  offset 
)

Definition at line 136 of file XrdMonDebugPacketApp.cc.

References XrdXrootdMonTrace::arg0, XrdXrootdMonTrace::arg1, XrdXrootdMonTrace::arg2, XrdXrootdMonTrace::dictid, XrdXrootdMonTrace::id, int, XrdXrootdMonTrace::rTot, and XrdXrootdMonTrace::wTot.

Referenced by debugTracePacket().

void debugDictPacket ( const char *  packet,
int  len 
)

Definition at line 160 of file XrdMonDebugPacketApp.cc.

References HDRLEN.

Referenced by main().

void debugDisconnect ( const char *  packet,
int  len 
)

Definition at line 190 of file XrdMonDebugPacketApp.cc.

References XrdXrootdMonTrace::arg1, XrdXrootdMonTrace::arg2, XrdXrootdMonTrace::buflen, XrdXrootdMonTrace::dictid, and HDRLEN.

Referenced by debugTracePacket().

void debugOpen ( const char *  packet,
kXR_int32  timestamp,
kXR_int64  offset 
)

Definition at line 120 of file XrdMonDebugPacketApp.cc.

Referenced by debugTracePacket().

void debugRWRequest ( const char *  packet,
kXR_int32  timestamp,
kXR_int64  offset 
)

Definition at line 93 of file XrdMonDebugPacketApp.cc.

References ntohll, X, and x.

Referenced by debugTracePacket().

void debugStagePacket ( const char *  packet,
int   
)

Definition at line 203 of file XrdMonDebugPacketApp.cc.

Referenced by main().

void debugTracePacket ( const char *  packet,
int  len 
)

Definition at line 209 of file XrdMonDebugPacketApp.cc.

References CalcTime::begTimeNextWindow, debugClose(), debugDisconnect(), debugOpen(), debugRWRequest(), decodeTime(), CalcTime::endOffset, HDRLEN, int, prepareTimestamp(), t, CalcTime::timePerTrace, TRACELEN, XROOTD_MON_CLOSE, XROOTD_MON_DISC, XROOTD_MON_OPEN, XROOTD_MON_RWREQUESTMASK, and XROOTD_MON_WINDOW.

Referenced by main().

void debugUserPacket ( const char *  packet,
int  len 
)

Definition at line 175 of file XrdMonDebugPacketApp.cc.

References HDRLEN.

Referenced by main().

TimePair decodeTime ( const char *  packet  ) 

Definition at line 44 of file XrdMonDebugPacketApp.cc.

References X, and x.

Referenced by debugTracePacket(), and prepareTimestamp().

int main ( int  argc,
char *  argv[] 
)

Definition at line 256 of file XrdMonDebugPacketApp.cc.

References access, debugDictPacket(), debugStagePacket(), debugTracePacket(), debugUserPacket(), XrdMonHeader::decode(), HDRLEN, len, MAXPACKETSIZE, PACKET_TYPE_DICT, PACKET_TYPE_STAGE, PACKET_TYPE_TRACE, PACKET_TYPE_USER, XrdMonHeader::packetLen(), and XrdMonHeader::packetType().

CalcTime prepareTimestamp ( const char *  packet,
int &  offset,
int  len,
kXR_int32 begTime 
)

Definition at line 55 of file XrdMonDebugPacketApp.cc.

References decodeTime(), t, TRACELEN, x, and XROOTD_MON_WINDOW.

Referenced by debugTracePacket().


Generated on Tue Jul 5 16:08:08 2011 for ROOT_528-00b_version by  doxygen 1.5.1