GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
MSG / V3-0-2
Constituent: msg2src     Tag: linux-gcc
Interface Data Structures File List Data Fields Globals
MSG_report.c File Reference
Core run time routines for the MSG facility.
More...
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "MSG/MSG_msgs.h"
#include "MSG_health.h"
#include "MSG_packet.ih"
#include "MSG_prvdefs.h"
Include dependency graph for MSG_report.c:
|
Functions |
void | reportCapture (MSG_Packet *pkt, const MSG_MsgList *mdb, unsigned int nprm, va_list list) |
| Process a message reporting request (packet and varargs).
|
unsigned int | MSG_reportInternal (unsigned int code, WCT_time hack, const char *rtn, unsigned int nprm, va_list list) |
| Process a message reporting request.
|
Detailed Description
Core run time routines for the MSG facility.
CVS $Id: MSG_report.c,v 1.3 2005/07/16 19:46:32 apw Exp $
- Author:
- A.P.Waite
Function Documentation
unsigned int MSG_reportInternal |
( |
unsigned int |
code, |
|
|
WCT_time |
hack, |
|
|
const char * |
rtn, |
|
|
unsigned int |
nprm, |
|
|
va_list |
list |
|
) |
|
|
|
Process a message reporting request.
- Parameters:
-
code | (in) Message code to be reported |
hack | (in) Wall clock time to be recorded with the meessage |
rtn | (in) Name of calling routine |
nprm | (in) Number of parameters that follow |
list | (in) A variable argument list list (!) |
MSG_reportInternal() does most of the real work of reporting a message. This routine allocates a message packet and populates it with a block of standard information (timestamp, CPU, task name, etc.) and the variable information in the variadic arguments following nprm.
The packet is sent to an message task (in the multi-threaded case) where the message is formatted using the formatting string associated with the message code. The message task then calls all output processors in turn to do whatever it is they want to do with the information.
In the single-threaded case, the message processing occurs inline with the MSG_report() call. |
Here is the call graph for this function:
void reportCapture |
( |
MSG_Packet * |
pkt, |
|
|
const MSG_MsgList * |
mdb, |
|
|
unsigned int |
nprm, |
|
|
va_list |
list |
|
) |
[static] |
|
|
Process a message reporting request (packet and varargs).
- Parameters:
-
pkt | (in) Packet in which to form the message |
mdb | (in) Message data entry corresponding to code |
nprm | (in) Number of parameters that follow |
list | (in) A variable argument list list (!) |
Capture the binary contents of a message. The buffer constructed by this routine will be sent to the message task (in the multi-threaded case) or be sent directly to the output processors (single-threaded case). |
Generated on Thu Sep 22 08:09:25 2005 by
1.3.3