Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

perf-base.h File Reference

#include "config.h"
#include "sfprocpidstats.h"
#include <time.h>

Go to the source code of this file.

Defines

#define MAX_PERF_STATS   1

Typedefs

typedef _PKTSTATS PKTSTATS
typedef _SFBASE SFBASE
typedef _SYSTIMES SYSTIMES
typedef _SFBASE_STATS SFBASE_STATS

Functions

int InitBaseStats (SFBASE *sfBase)
int UpdateBaseStats (SFBASE *sfBase, int len, int iRebuiltPkt)
int ProcessBaseStats (SFBASE *sfBase, int console, int file, FILE *fh)
int AddStreamSession (SFBASE *sfBase)
int RemoveStreamSession (SFBASE *sfBase)
void UpdateWireStats (SFBASE *sfBase, int len)
void UpdateIPFragStats (SFBASE *sfBase, int len)
void UpdateIPReassStats (SFBASE *sfBase, int len)


Define Documentation

#define MAX_PERF_STATS   1
 

Definition at line 37 of file perf-base.h.

Referenced by CalculateBasePerfStats(), DisplayBasePerfStatsConsole(), GetMbitsPerSecond(), GetPacketsPerSecond(), and sfSetPerformanceStatistics().


Typedef Documentation

typedef struct _PKTSTATS PKTSTATS
 

typedef struct _SFBASE SFBASE
 

typedef struct _SFBASE_STATS SFBASE_STATS
 

typedef struct _SYSTIMES SYSTIMES
 


Function Documentation

int AddStreamSession SFBASE sfBase  ) 
 

Definition at line 315 of file perf-base.c.

References _SFBASE::iMaxSessions, _SFBASE::iNewSessions, and _SFBASE::iTotalSessions.

Referenced by ReassembleStream4().

int InitBaseStats SFBASE sfBase  ) 
 

Definition at line 77 of file perf-base.c.

References gettimeofday(), _SFBASE::iDeletedSessions, _SFBASE::iFragAutoFrees, _SFBASE::iFragCompletes, _SFBASE::iFragCreates, _SFBASE::iFragDeletes, _SFBASE::iFragFaults, _SFBASE::iFragFlushes, _SFBASE::iFragInserts, _SFBASE::iFragTimeouts, _SFBASE::iNewSessions, _SFBASE::iStreamFaults, _SFBASE::iStreamFlushes, _SFBASE::iStreamTimeouts, NULL, _SFBASE::realtime_sec, rusage::ru_stime, rusage::ru_utime, RUSAGE_SELF, _SFBASE::systemtime_sec, _SFBASE::total_bytes, _SFBASE::total_ipfragmented_bytes, _SFBASE::total_ipfragmented_packets, _SFBASE::total_ipreassembled_bytes, _SFBASE::total_ipreassembled_packets, _SFBASE::total_packets, _SFBASE::total_rebuilt_bytes, _SFBASE::total_rebuilt_packets, _SFBASE::total_wire_bytes, _SFBASE::total_wire_packets, and _SFBASE::usertime_sec.

Referenced by InitPerfStats().

int ProcessBaseStats SFBASE sfBase,
int  console,
int  file,
FILE *  fh
 

Definition at line 362 of file perf-base.c.

References CalculateBasePerfStats(), DisplayBasePerfStatsConsole(), _SFBASE::iFlags, and LogBasePerfStats().

Referenced by ProcessPerfStats().

int RemoveStreamSession SFBASE sfBase  ) 
 

Definition at line 340 of file perf-base.c.

References _SFBASE::iDeletedSessions, and _SFBASE::iTotalSessions.

Referenced by DeleteSession().

int UpdateBaseStats SFBASE sfBase,
int  len,
int  iRebuiltPkt
 

Definition at line 210 of file perf-base.c.

References _SFBASE::total_bytes, _SFBASE::total_packets, _SFBASE::total_rebuilt_bytes, and _SFBASE::total_rebuilt_packets.

Referenced by UpdatePerfStats().

void UpdateIPFragStats SFBASE sfBase,
int  len
 

Definition at line 269 of file perf-base.c.

References _SFBASE::total_ipfragmented_bytes, _SFBASE::total_ipfragmented_packets, and _SFBASE::total_wire_bytes.

Referenced by Frag2Defrag(), and Frag3Defrag().

void UpdateIPReassStats SFBASE sfBase,
int  len
 

Definition at line 292 of file perf-base.c.

References _SFBASE::total_ipreassembled_bytes, _SFBASE::total_ipreassembled_packets, and _SFBASE::total_wire_bytes.

Referenced by Frag3Rebuild(), and RebuildFrag().

void UpdateWireStats SFBASE sfBase,
int  len
 

Definition at line 247 of file perf-base.c.

References _SFBASE::total_wire_bytes, and _SFBASE::total_wire_packets.

Referenced by PcapProcessPacket().


Generated on Sun May 14 14:51:25 2006 by  doxygen 1.4.2