⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 perf.h

📁 Linux snort-2.4.4源代码
💻 H
字号:
/*** $Id$**** perf.h**** Copyright (C) 2002 Sourcefire,Inc** Dan Roelker <droelker@sourcefire.com>**** This program is free software; you can redistribute it and/or modify** it under the terms of the GNU General Public License as published by** the Free Software Foundation; either version 2 of the License, or** (at your option) any later version.**** This program is distributed in the hope that it will be useful,** but WITHOUT ANY WARRANTY; without even the implied warranty of** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the** GNU General Public License for more details.**** You should have received a copy of the GNU General Public License** along with this program; if not, write to the Free Software** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.******  DESCRIPTION**    These are the basic functions and structures that are needed to call **    performance functions.**** Copyright (C) 2002 Sourcefire,Inc** Dan Roelker******** This program is free software; you can redistribute it and/or modify** it under the terms of the GNU General Public License as published by** the Free Software Foundation; either version 2 of the License, or** (at your option) any later version.**** This program is distributed in the hope that it will be useful,** but WITHOUT ANY WARRANTY; without even the implied warranty of** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the** GNU General Public License for more details.**** You should have received a copy of the GNU General Public License** along with this program; if not, write to the Free Software** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.***/#ifndef _PERF_H#define _PERF_H#define SFPERF_BASE     1#define SFPERF_FLOW     2#define SFPERF_EVENT    4#define SFPERF_BASE_MAX 8#define SFPERF_CONSOLE  16#define SFPERF_FILE     32#define SFPERF_PKTCNT   64#define SFPERF_SUMMARY 128#ifndef UINT64#define UINT64 unsigned long long#endif#include "perf-base.h"#include "perf-flow.h"#include "perf-event.h"typedef struct _SFPERF {    int    iPerfFlags;    unsigned int    iPktCnt;    int    sample_interval;    int    sample_time;    SFBASE  sfBase;    SFFLOW  sfFlow;    SFEVENT sfEvent;    char    file[1024];    FILE  * fh;    } SFPERF;int sfInitPerformanceStatistics(SFPERF *sfPerf);int sfSetPerformanceSampleTime(SFPERF *sfPerf, int iSeconds);int sfSetPerformanceAccounting(SFPERF *sfPerf, int iReset);int sfSetPerformanceStatistics(SFPERF *sfPerf, int iFlag);int sfSetPerformanceStatisticsEx(SFPERF *sfPerf, int iFlag, void * param);int sfRotatePerformanceStatisticsFile(SFPERF *sfPerf);int sfPerformanceStats(SFPERF *sfPerf, unsigned char *pucPacket, int len,                       int iRebuiltPkt);int sfProcessPerfStats(SFPERF *sfPerf);int CheckSampleInterval(time_t curr_time, SFPERF *sfPerf);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -