GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EFC / V4-1-1
Constituent: dfilter     Tag: linux-gcc
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include "filter_rto.h"
#include "filter_sdi.h"
#include "GFC_resultDef.h"
#include "EFC/EFA.h"
#include "EFC/GFC_status.h"
#include "EFC/EDM.h"
#include "EFC/EFC.h"
#include "EFC/EFC_edsFw.h"
#include "EFC/EFA_def.h"
#include "EFC/EFS.h"
#include "EFC/EFC_time.h"
#include "EFC/EFR_key.h"
#include "EMP/EMP_hdrdefs.h"
#include "EDS/EDS_fw.h"
#include "EDS/EBF_dir.h"
#include "EDS/EBF_pkt.h"
#include "EDS/EBF_cid.h"
#include "EDS/ECR_cal.h"
#include "EDS/TMR.h"
#include "EDS/FFS.h"
#include "EDS/LCBV.h"
#include "EDS/io/LCBP.h"
#include "EDS/io/EBF_stream.h"
#include "EDS/io/EBF_evts.h"
#include "EFC_DB/EFC_DB_schema.h"
#include "EFC_DB/EH_ids.h"
#include "GFC_DB/GFC_DB_schema.h"
#include "GFC_DB/GAMMA_DB_instance.h"
#include "LSF/LSF_reason.h"
#include "ITC/ITC_pubdefs.h"
#include "IMM/FPM_pubdefs.h"
#include "IMM/RBM_pubdefs.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/PBS.h"
#include "CDM/CDM_pubdefs.h"
#include "CMX/CMX_lookupPub.h"
#include <string.h>
#include "EFC/GFC.h"
#include "EFC/GFC_resultsPrint.h"
#include "EFC/GFC_statsPrint.h"
#include "EFC/GFC_cfgPrint.h"
#include "EFC/GFC_stats.h"
#include "GFC_def.h"
#include "EDS/EBF_evt.h"
#include "EDS/EBF_mc.h"
Include dependency graph for filter.c:
Data Structures | |
struct | _FilterResultCtx |
The filter result context, will replace FilterResultCtl. More... | |
struct | _OutputHandler |
Binds an output routine with its parameter. More... | |
struct | _FilterCtx |
Structure to bind all the filtering parameters together into something suitable for passing to the LCB event call back handler. More... | |
struct | _RestartPkt |
Defines an EBF restart packet. More... | |
Defines | |
#define | CACHE_cleanData(_ptr, _nbytes) |
Macro to move the data from cache to memory and then invalidate the cache. This is a NOP all but VxWorks platforms. | |
Typedefs | |
typedef _FilterResultCtx | FilterResultCtx |
Typedef for struct _FilterResultCtx. | |
typedef _OutputHandler | OutputHandler |
Typedef for struct _OutputHandler. | |
typedef _FilterCtx | FilterCtx |
Typedef for struct _FilterCtx. | |
typedef _RestartPkt | RestartPkt |
Typedef for struct _RestartPkt. | |
Functions | |
static int | doFilter (const FilterRto *rto) |
Common routine to do the filtering. | |
static void * | allocate (int nbytes, const char *name) |
Allocates the number of bytes, prints an error message if unsuccessful. | |
static void | free_em (void *ptr) |
Jacketing routine to the free function. | |
static int | createOutput (OutputHandler *output, const char *name, unsigned int options) |
Creates an output file if name is not NULL. | |
static void | start_run (EDS_fw *edsFw, unsigned int handler_mask, unsigned int post_mask) |
Notifies the handlers and posters of the start run. | |
const EDS_DB_HandlerConstructServices * | gfc_constructServicesGet (FilterCtx *ctx) |
int | main (int argc, char **argv) |
Entry point for filter. | |
int | GRBP_start (FILE *fp, int reason, unsigned int run_id, unsigned int startTime, unsigned int mode, unsigned int hw_key, unsigned int cfg_key) |
void | GRBP_write (FILE *fp, EDS_fwIxb *ixb) |
int | GRBP_notify (FILE *fp, unsigned int mode, unsigned int active, const unsigned char cfgs[32], const EDS_rsdTbl *rsdTbl) |
int | GRBP_flush (FILE *fp, int reason) |
static void | printOutput (OutputHandler *output, EDS_fwIxb *ixb) |
Prints a 1 line summary of the events that are output. | |
static int | dummyStart (void *prm, unsigned int reason, unsigned int run_id, unsigned int startTime, unsigned int mode, unsigned int hw_key, unsigned int cfg_key) |
Dummy routine to intercept the output events when one does not have a real output routine. | |
static void | dummyWrite (OutputHandler *output, EDS_fwIxb *ixb) |
Dummy routine to intercept the output events when one does not have a real output routine. | |
static int | dummyNotify (void *prm, unsigned int mode, unsigned int active, const unsigned char cfgs[32], const EDS_rsdTbl *rsdTbl) |
Dummy routine to handle mode change notifications to the output stream. | |
static void | dummyFlush (void *prm, int reason) |
Dummy routine to close an output stream. | |
static __inline unsigned int | restart_construct (RestartPkt *restart, const EBF_evt *evt) |
Constructs a template of the packet restart header. This includes both the 8 word header and the 4 word restart cell. | |
static void | streamWrite (OutputHandler *output, EDS_fwIxb *ixb) |
Routine to flush an output stream. | |
static void | streamFlush (OutputHandler *output, int reason) |
Routine to flush an output stream. | |
Variables | |
static const EDS_fwPostServices | GrbpServices |
CVS $Id: filter.c,v 1.17 2007/12/13 02:39:05 russell Exp $
|
Allocates the number of bytes, prints an error message if unsuccessful.
|
|
Creates an output file if name is not NULL.
|
|
Common routine to do the filtering.
|
|
Dummy routine to close an output stream.
|
|
Dummy routine to handle mode change notifications to the output stream.
|
|
Dummy routine to intercept the output events when one does not have a real output routine.
|
|
Dummy routine to intercept the output events when one does not have a real output routine.
|
|
Jacketing routine to the free function.
|
|
Entry point for filter.
|
|
Prints a 1 line summary of the events that are output.
|
|
Constructs a template of the packet restart header. This includes both the 8 word header and the 4 word restart cell.
|
|
Routine to flush an output stream.
|
|
Routine to flush an output stream.
|
|
Initial value: { (EDS_fwPostStartRtn )GRBP_start, (EDS_fwPostWriteRtn )GRBP_write, (EDS_fwPostNotifyRtn)GRBP_notify, (EDS_fwPostFlushRtn )GRBP_flush } |