GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSSP / V0-0-0
Constituent: qssp     Tag: sun-gcc
#include "QSSP_pvtdefs.h"
#include "QSSP_efsCtx.h"
#include "dprintf.h"
#include "QSP/QSP_names.h"
#include "QSP/QFCH_cache.h"
#include "QSD/QFC_cache.h"
#include "QSD/QFR_file.h"
#include "LSE/LSEW_ctxTim.h"
#include "EFC/EFS_ids.h"
#include "EFC/EFS_ctxCtb.h"
#include "EFC/EFA_def.h"
#include "EDS/EBF_gem.h"
#include "LSF/LSF.h"
#include "LSF/LSF_scan.h"
#include "LSF/LSF_reason.h"
#include "LDT/BFU.h"
#include <string.h>
#include <stdlib.h>
Include dependency graph for QSSP.c:
Defines | |
#define | RND_8(_v) ((_v + 7) & ~0x7) |
Typedefs | |
typedef const unsigned int *(* | DecodeSample )(QSSP *qssp, QSSP_sample *sample, const unsigned int *dat, unsigned char bridge) |
Signature to decode a statistics sample from the input data. | |
typedef void *(* | UnpackCtx )(QSSP_ctx *qssp, const QSSP_efsCtxBdy *bdy) |
Callback signature to unpack the statistics context. | |
Functions | |
static __inline QSSP_fileCache * | qssp_file_cache_get (void) |
Returns a pointer to the file cache. | |
static __inline void | qssp_unpack_did (QSSP_ctxDid *did, const LSE_did *src) |
Unpacks the did context. | |
static __inline void | qssp_unpack_ctx_v0 (QSSP_ctx *ctx, const QSSP_efsCtxBdyV0 *v0) |
Unpacks version 0 of the context. | |
static __inline void | qssp_unpack_ctx_v1 (QSSP_ctx *ctx, const QSSP_efsCtxBdyV1 *v1) |
Unpacks version 1 of the context. | |
static __inline void | qssp_unpack_ctx_v2 (QSSP_ctx *ctx, const QSSP_efsCtxBdyV2 *v2) |
Unpacks version 2 of the context. | |
static __inline unsigned long int | compute_dsequence (const QSSP_point *points) |
Computes the event sample size. | |
static __inline unsigned long long int | compute_dtime (const QSSP_point *points) |
Computes the event sample time span. | |
static unsigned long long int | compute_time (const QSSP_point *point) |
Computes the time, in nanoseconds of the current time. If there is an error, -1 is returned;. | |
static __inline const unsigned int * | copy_point (QSSP_point *point, const unsigned int *dat) |
Copies one QSSP_point structure. | |
static const unsigned int * | decode_points_two (QSSP *qssp, QSSP_point *points, const unsigned int *dat, unsigned char bridge) |
Decodes two headers that are just straight copies. | |
static const unsigned int * | decode_points_one (QSSP *qssp, QSSP_point *points, const unsigned int *dat, unsigned char bridge) |
Decodes one header that is just a straight copy. | |
static const unsigned int * | decode_timetone (QSD_timetone *timetone, const QSD_timetone *base, const unsigned int *dat, int flags) |
Decodes one timetone structure based on the differences. | |
static __inline const unsigned int * | decode_points_diff (QSSP *qssp, QSSP_point *points, const unsigned int *dat, unsigned char bridge) |
Decodes the sample point information when it is encoded as a difference from the previous point to the current point. | |
static const unsigned int * | decode_stats_norm (QSSP *qssp, QSSP_statistics *stats, const unsigned int *dat, unsigned char bridge) |
Decodes a normal (not differenced) statistics record. | |
static const unsigned int * | decode_stats_diff (QSSP *qssp, QSSP_statistics *stats, const unsigned int *dat, unsigned char bridge) |
Decodes the statistics in difference format. | |
static const unsigned int * | decode_sample_0 (QSSP *qssp, QSSP_sample *sample, const unsigned int *dat, unsigned char bridge) |
Decodes a format 0 sample record. | |
static const unsigned int * | decode_sample_1 (QSSP *qssp, QSSP_sample *sample, const unsigned int *dat, unsigned char bridge) |
Decodes a format 1 sample record. | |
static const unsigned int * | decode_sample_2 (QSSP *qssp, QSSP_sample *sample, const unsigned int *dat, unsigned char bridge) |
Decodes a format 2 sample record. | |
static const LSF_contribution * | qssp_update_at_datagram (QSSP *qssp, const LSF_contribution *ctb, unsigned int hid) |
Updates the context for the datagram's contributions. | |
QSSP * | QSSP_alloc (void *must_be_null) |
Allocates and constructs a QSSP handle. | |
QSSP * | QSSP_construct (QSSP *qssp, void *must_be_null) |
The constructor for a QSSP control structure. | |
void | QSSP_destruct (QSSP *qssp) |
The destructor for a QSSP control structure. | |
const QSSP_ctx * | QSSP_ctxGet (const QSSP *qssp) |
Locates the statistics context (meta-data). | |
int | QSSP_sizeof (void *must_be_null) |
Returns the size, in bytes, of a QSS control structure. | |
const LSF_contribution * | QSSP_updateAtDatagram (QSSP *qssp, const LSF_datagram *dgm) |
Updates the context at datagram time. | |
int | QSSP_updateAtContribution (QSSP *qssp, const LSF_contribution *ctb) |
Updates the context at datagram time. | |
static __inline void | qssp_sample_add (QSSP_sample *dst, const QSSP_sample *src) |
Adds the source sample to the destination sample. | |
static __inline int | qssp_sample_decode (QSSP *qssp, unsigned int type_id, unsigned char bridge, const unsigned int *dat) |
Decodes the statistics data. | |
int | QSSP_updateAtRecord (QSSP *qssp, const LSF_record *rec) |
Updates the context at record time. | |
const QSSP_sample * | QSSP_retrieve (const QSSP *qssp) |
Retrieves the most recent sample, global or incremental that was processed. |
CVS $Id: QSSP.c,v 1.1.1.1 2008/04/02 01:19:25 russell Exp $
|
Signature to decode a statistics sample from the input data.
|
|
Callback signature to unpack the statistics context.
|
|
Computes the event sample size.
|
|
Computes the event sample time span.
|
|
Computes the time, in nanoseconds of the current time. If there is an error, -1 is returned;.
|
|
Copies one QSSP_point structure.
|
|
Decodes the sample point information when it is encoded as a difference from the previous point to the current point.
|
|
Decodes one header that is just a straight copy.
|
|
Decodes two headers that are just straight copies.
|
|
Decodes a format 0 sample record.
|
|
Decodes a format 1 sample record.
|
|
Decodes a format 2 sample record.
|
|
Decodes the statistics in difference format.
|
|
Decodes a normal (not differenced) statistics record.
|
|
Decodes one timetone structure based on the differences.
|
|
Allocates and constructs a QSSP handle.
|
|
The constructor for a QSSP control structure.
|
|
Locates the statistics context (meta-data).
|
|
The destructor for a QSSP control structure.
|
|
Returns a pointer to the file cache.
|
|
Retrieves the most recent sample, global or incremental that was processed.
|
|
Adds the source sample to the destination sample.
|
|
Decodes the statistics data.
|
|
Returns the size, in bytes, of a QSS control structure.
|
|
Unpacks version 0 of the context.
|
|
Unpacks version 1 of the context.
|
|
Unpacks version 2 of the context.
|
|
Unpacks the did context.
|
|
Updates the context for the datagram's contributions.
|
|
Updates the context at datagram time.
|
|
Updates the context at datagram time.
|
|
Updates the context at record time.
|