---
name: "SLOG_Irec_GetMinRec"
section: "3"
platform: "linux"
package: "mpi-doc"
version: "1.2.5.3-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/SLOG_Irec_GetMinRec"
---

# SLOG\_Irec\_GetMinRec(3)

Retrieve the fields for a bare minimal Interval Record

## NAME

SLOG\_Irec\_GetMinRec -  Retrieve the fields for a bare minimal Interval Record

## SYNOPSIS

```
int SLOG_Irec_GetMinRec( const SLOG_intvlrec_t   *intvlrec,
                               SLOG_rectype_t    *rectype,
                               SLOG_intvltype_t  *intvltype,
                               SLOG_bebit_t      *bebit_0,
                               SLOG_bebit_t      *bebit_1,
                               SLOG_starttime_t  *starttime,
                               SLOG_duration_t   *duration,
                               SLOG_nodeID_t     *orig_node_id,
                               SLOG_cpuID_t      *orig_cpu_id,
                               SLOG_threadID_t   *orig_thread_id,
                               SLOG_iaddr_t      *instr_addr,
                         ... )
```

## UNMODIFIED INPUT VARIABLES

- **intvlrec**

  \- pointer to the internal Interval record to be retrieved.

## MODIFIED OUTPUT VARIABLES

- **rectype**

  \- pointer to the interval record's record field which determines  if the record is a FIXED record or VARIABLE record, this in turns will determine the number of association and the number of sets of MPI call arguments.

- **intvltype**

  \- pointer to interval record's interval type field.

- **bebit\_0**

  \- pointer to interval record's first bebit.

- **bebit\_1**

  \- pointer to interval record's second bebit.

- **starttime**

  \- pointer to interval record's start time.

- **duration**

  \- pointer to interval record's life time.

- **orig\_node\_id**

  \- pointer to interval record's origin node ID.

- **orig\_cpu\_id**

  \- pointer to interval record's origin cpu ID.

- **orig\_thread\_id**

  \- pointer to interval record's origin thread ID.

- **orig\_instr\_addr**

  \- pointer to interval record's instr\_addr integer pointer.

- **...**

  \- pointers to destination task labels for Message Record ( optional ) : dest\_node\_id - pointer to interval record's destination node ID. dest\_cpu\_id - pointer to interval record's destination cpu ID. dest\_thread\_id - pointer to interval record's destination thread ID.

## MODIFIED OUTPUT VARIABLES

- **returned value**

  \- integer return status.

## USAGE NOTES ON THIS SUBROUTINE

Since the subroutine copies all the fixed fields of the specified record to the input variables, the record must be non-empty. The subroutine can only be called \_\_After\_\_ retrieving the interval record from the SLOG file.

## INCLUDE FILE NEEDED

slog.h

## NOTES ON SLOG RETURN STATUS CODE

There are 5 allowed SLOG returned status codes.  They include SLOG\_SUCCESS, SLOG\_FAIL and SLOG\_EOF.  Their actual values are defined in slog.h

SLOG\_SUCCESS is returned when no error is encountered.

SLOG\_FAIL is returned when error is encounted.

SLOG\_EOF is returned when End of file is encounted.

There are also SLOG\_TRUE and SLOG\_FALSE which are sued as boolean values, in particular they are used in boolean functions which are usually named as IsXXXXX(), AreXXXXX() and HasXXXXX().\

## LOCATION
