Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > b96b0d782c858619536ab397b702cc7e > files > 44

mpich2-doc-1.0.8-2mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>MPE_Log_pack</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<A NAME="MPE_Log_pack"><H1>MPE_Log_pack</H1></A>
pack the informational data into the byte buffer to be stored in a infomational event.  The routine will byteswap the data if it is invoked on a small endian machine. 
<H2>Synopsis</H2>
<PRE>
int MPE_Log_pack( MPE_LOG_BYTES bytebuf, int *position,
                  char tokentype, int count, const void *data )
</PRE>
<H2>Output Parameters</H2>
<DL>
<DT><B>bytebuf    </B><DD>output byte buffer which is of sizeof(MPE_LOG_BYTES),
i.e. 32 bytes.  For C, bytebuf could be of type
MPE_LOG_BYTES.  For Fortran, bytebuf could be of
type 'character*32'.

<DT><B>position   </B><DD>an offset measured from the beginning of the bytebuf.
On input, data will be written to the offset position.
On Output, position will be updated to reflect the next
available position in the byte buffer.
</DL>
<P>
<H2>Input Parameters</H2>
<DL>
<DT><B>tokentype  </B><DD>a character token type indicator, currently supported tokens
are 's', 'h', 'd', 'l', 'x', 'X', 'e' and 'E'.

<DT><B>count      </B><DD>the number of continuous storage units as indicated by
tokentype.

<DT><B>data       </B><DD>pointer to the beginning of the storage units being copied.
</DL>
<P>
<H2>Notes on storage format control support</H2>
The format control string is printf like, e.g. "Comment = %s".
All the MPE %-token storage support is provided by SLOG-2.  That is
whatever supported by SLOG-2 will be supported by MPE.  Currently,
the following is supported.
<P>
%s : variable length string, byte buffer size is length of string + 2.
<P>
%h : 2-byte integer, printed as decimal integer, byte buffer size is 2.
<P>
%d : 4-byte integer, printed as decimal integer, byte buffer size is 4.
<P>
%l : 8-byte integer, printed as decimal integer, byte buffer size is 8.
<P>
%x : 4-byte integer, printed as hexadecimal integer, byte buffer size is 4.
<P>
%X : 8-byte integer, printed as hexadecimal integer, byte buffer size is 8.
<P>
%e : 4-byte float, printed as decimal float, byte buffer size is 4.
<P>
%E : 8-byte float, printed as decimal float, byte buffer size is 8.
<BR>
<P>
<P>
<P><B>Location:</B>../src/logging/src/mpe_log.c<P>
</BODY></HTML>