GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LCBD / V1-4-4
Constituent: lcbd     Tag: rad750
#include <string.h>
#include "PBI/Attribute.h"
#include "LCBD/LCBD_stats.h"
#include "LCBD/LCBD_msgs.h"
#include "LCBD_p.h"
#include "PBS/MTX.ih"
#include <stdio.h>
Include dependency graph for LCBD_stats.c:
Functions | |
static __inline void | update_32 (unsigned int *dst, unsigned int *ledger, const unsigned int *cur, int cnt) |
Updates the 32-bit oriented statistics by adding the current statistics to the ledger and storing the result both in the ledger and the destination. | |
static __inline void | update_evt_proto (LCBD_stats_evt_proto *dst, LCBD_stats_evt_proto *ledger, const LCBD_stats_evt_proto *cur, int cnt) |
Updates the event protocol statistics of the EVT block. | |
static __inline void | sub_32 (unsigned int *c, const unsigned int *a, const unsigned int *b, int cnt) |
Sums the 32-bit oriented statistics of the ISR/RESULT & EVT block. | |
static __inline void | sub_evt_proto (LCBD_stats_evt_proto *c, const LCBD_stats_evt_proto *b, const LCBD_stats_evt_proto *a, int cnt) |
Sums the event protocol statistics of the EVT block. | |
static void | update (LCBD_stats *dst, LCBD_stats *ledger, const LCBD_stats *cur) |
Updates the statistics by adding the cur to the ledger and storing the result both in the ledger and the dst. | |
unsigned int | LCBD_stats_init (LCBD_scb *scb) |
Initializes the statistics control block. | |
unsigned int | LCBD_stats_destroy (LCBD_scb *scb) |
Destroys the statistics control block. | |
unsigned int | LCBD_stats_get (const LCBD lcb, LCBD_stats *stats) |
Retrieves a copy of the current statistics. | |
unsigned int | LCBD_stats_clr (LCBD lcb) |
Clears the statistics block. | |
void | LCBD_stats_sub (LCBD_stats *result, const LCBD_stats *stats, const LCBD_stats *base) |
Convenience function to subtract a baseline statistics block from another statistics block, storing in a destination block. | |
static void | putSeparator (int type) |
Puts a separator line out. | |
static void | putRow (const char t0, const char *title, const unsigned int *cnts, int stride) |
Internal routine to format one row of the LCBD_evt_stats display. | |
static __inline void | putEvtProtoTitle (void) |
Internal routine to output the title line for the event protocol statitics. | |
static void | putEvtProtoRow (const char *title, unsigned int rcnts, unsigned long long int rwrds, unsigned int fcnts, unsigned int fcall, unsigned long long int fwrds) |
Internal routine to format one row of the LCBD_stats_evt_proto display. | |
static __inline void | putEvtHandler (const LCBD_stats_evt *evt) |
Outputs the LCBD_stats_evt that are accumulated in the event handler. | |
static __inline void | putEvtTickle (const LCBD_stats_evt_tickle *tickle) |
Outputs the LCBD_evt_tickle statistics. | |
static __inline void | putEvtProto (const LCBD_stats_evt_proto *proto) |
Outputs that portion of the event statistics that is by protocol. | |
void | LCBD_stats_tim_show (const LCBD_stats_tim *tim) |
Shows (prints to standard output) the collection time data. | |
void | LCBD_stats_isr_show (const LCBD_stats_isr *isr) |
Shows (prints to the terminal) a display of the statistics gathered in the LCBD ISR routine. | |
void | LCBD_stats_rst_show (const LCBD_stats_rst *rst) |
Shows (prints to the terminal) a display of the statistics gathered in the LCBD RESULTs handler routine. | |
void | LCBD_stats_evt_show (const LCBD_stats_evt *evt) |
Shows (prints to the terminal) a display of the statistics gathered in the LCBD EVENTs handler routine. | |
void | LCBD_stats_show (const LCBD_stats *stats) |
Shows (prints at the terminal) all three statistics blocks. |
JJRussell -- russell@slac.stanford.edu
CVS $Id
|
Clears the statistics block.
|
|
Destroys the statistics control block.
|
|
Shows (prints to the terminal) a display of the statistics gathered in the LCBD EVENTs handler routine.
|
|
Retrieves a copy of the current statistics.
|
|
Initializes the statistics control block.
|
|
Shows (prints to the terminal) a display of the statistics gathered in the LCBD ISR routine.
|
|
Shows (prints to the terminal) a display of the statistics gathered in the LCBD RESULTs handler routine.
|
|
Shows (prints at the terminal) all three statistics blocks.
|
|
Convenience function to subtract a baseline statistics block from another statistics block, storing in a destination block.
|
|
Shows (prints to standard output) the collection time data.
|
|
Outputs that portion of the event statistics that is by protocol.
|
|
Internal routine to format one row of the LCBD_stats_evt_proto display.
|
|
Outputs the LCBD_evt_tickle statistics.
|
|
Internal routine to format one row of the LCBD_evt_stats display.
|
|
Puts a separator line out.
|
|
Sums the 32-bit oriented statistics of the ISR/RESULT & EVT block.
|
|
Sums the event protocol statistics of the EVT block.
|
|
Updates the statistics by adding the cur to the ledger and storing the result both in the ledger and the dst.
|
|
Updates the 32-bit oriented statistics by adding the current statistics to the ledger and storing the result both in the ledger and the destination.
|
|
Updates the event protocol statistics of the EVT block.
|