#include <time.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include "snort.h"
#include "util.h"
#include "mpse.h"
Go to the source code of this file.
Defines | |
#define | UINT32_MAX (4294967295U) |
Functions | |
int | GetPktDropStats (SFBASE *sfBase, SFBASE_STATS *sfBaseStats) |
int | DisplayBasePerfStatsConsole (SFBASE_STATS *sfBaseStats, int iFlags) |
int | CalculateBasePerfStats (SFBASE *sfPerf, SFBASE_STATS *sfBaseStats) |
int | LogBasePerfStats (SFBASE_STATS *sfBaseStats, FILE *fh) |
int | InitBaseStats (SFBASE *sfBase) |
int | UpdateBaseStats (SFBASE *sfBase, int len, int iRebuiltPkt) |
void | UpdateWireStats (SFBASE *sfBase, int len) |
void | UpdateIPFragStats (SFBASE *sfBase, int len) |
void | UpdateIPReassStats (SFBASE *sfBase, int len) |
int | AddStreamSession (SFBASE *sfBase) |
int | RemoveStreamSession (SFBASE *sfBase) |
int | ProcessBaseStats (SFBASE *sfBase, int console, int file, FILE *fh) |
int | GetProcessingTime (SYSTIMES *Systimes, SFBASE *sfBase) |
int | GetEventsPerSecond (SFBASE *sfBase, SFBASE_STATS *sfBaseStats, SYSTIMES *Systimes) |
int | GetPacketsPerSecond (SFBASE *sfBase, SFBASE_STATS *sfBaseStats, SYSTIMES *Systimes) |
int | GetuSecondsPerPacket (SFBASE *sfBase, SFBASE_STATS *sfBaseStats, SYSTIMES *Systimes) |
int | GetMbitsPerSecond (SFBASE *sfBase, SFBASE_STATS *sfBaseStats, SYSTIMES *Systimes) |
int | GetCPUTime (SFBASE *sfBase, SFBASE_STATS *sfBaseStats, SYSTIMES *Systimes) |
|
Definition at line 56 of file perf-base.c. Referenced by GetPktDropStats(). |
|
Definition at line 315 of file perf-base.c. References _SFBASE::iMaxSessions, _SFBASE::iNewSessions, and _SFBASE::iTotalSessions. Referenced by ReassembleStream4(). |
|
|
|
Definition at line 652 of file perf-base.c. References _SFBASE_STATS::idle_cpu_time, _SYSTIMES::realtime, _SFBASE_STATS::system_cpu_time, _SYSTIMES::systemtime, _SYSTIMES::totaltime, _SFBASE_STATS::user_cpu_time, and _SYSTIMES::usertime. Referenced by CalculateBasePerfStats(). |
|
|
|
|
Definition at line 863 of file perf-base.c. References _SFBASE::iReset, pcap_stats(), pd, _SFBASE_STATS::pkt_drop_percent, _SFBASE::pkt_stats, _SFBASE_STATS::pkt_stats, _PKTSTATS::pkts_drop, _PKTSTATS::pkts_recv, pcap_stat::ps_drop, pcap_stat::ps_recv, pv, _progvars::readmode_flag, _SFBASE_STATS::total_packets, and UINT32_MAX. Referenced by CalculateBasePerfStats(). |
|
Definition at line 382 of file perf-base.c. References gettimeofday(), NULL, _SYSTIMES::realtime, _SFBASE::realtime_sec, rusage::ru_stime, rusage::ru_utime, RUSAGE_SELF, _SYSTIMES::systemtime, _SFBASE::systemtime_sec, _SYSTIMES::totaltime, _SYSTIMES::usertime, and _SFBASE::usertime_sec. Referenced by CalculateBasePerfStats(). |
|
Definition at line 588 of file perf-base.c. References _SYSTIMES::realtime, _SYSTIMES::systemtime, _SFBASE::total_packets, _SYSTIMES::totaltime, _SFBASE_STATS::usecs_per_packet, and _SYSTIMES::usertime. Referenced by CalculateBasePerfStats(). |
|
|
Definition at line 987 of file perf-base.c. References WIN32. Referenced by ProcessBaseStats(). |
|
Definition at line 362 of file perf-base.c. References CalculateBasePerfStats(), DisplayBasePerfStatsConsole(), _SFBASE::iFlags, and LogBasePerfStats(). Referenced by ProcessPerfStats(). |
|
Definition at line 340 of file perf-base.c. References _SFBASE::iDeletedSessions, and _SFBASE::iTotalSessions. Referenced by DeleteSession(). |
|
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(). |
|
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(). |
|
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(). |
|
Definition at line 247 of file perf-base.c. References _SFBASE::total_wire_bytes, and _SFBASE::total_wire_packets. Referenced by PcapProcessPacket(). |