papi_ipc(3) - Linux man page
Name
PAPI_ipc - PAPI High level: Simplified call to get instructions per cycle, real and processor timeSynopsis
C Interface#include <papi.h>int PAPI_ipc (float *rtime, float *ptime, long_long *ins, float *ipc);Fortran Interface
#include "fpapi.h"PAPIF_ipc(C_FLOAT real_time, C_FLOAT proc_time, C_LONG_LONG ins, C_FLOAT ipc, C_INT check)
Description
The first call to PAPI_ipc() will initialize the PAPI High Level interface, set up the counters to monitor PAPI_TOT_INS and PAPI_TOT_CYC events and start the counters. Subsequent calls will read the counters and return total real time, total process time, total instructions since the start of the measurement and the instructions per cycle rate since latest call to PAPI_ipc(). A call to PAPI_stop_counters() " will stop the counters from running and then calls such as PAPI_start_counters() " can safely be used.
Arguments
*rtime -- total realtime since the first PAPI_ipc() call*ptime -- total process time since the first PAPI_ipc() call
*ins -- total instructions since the first call
*ipc -- instructions per cycle achieved
since the previous call
Return Values
On success, this function returns PAPI_OK. On error, a non-zero error code is returned.Errors
In addition to the possible errors returned by the various PAPIlow level calls, the following errors could also be returned:
- PAPI_EINVAL
- The counters were already started by something other than: PAPI_ipc()
- PAPI_ENOEVNT
- The total instructions or total cycles event does not exist.
- PAPI_ENOMEM
- Insufficient memory to complete the operation.
PAPI_ipc() may be called by: t tthe user application program
tPAPI_ipc() contains calls to:ttPAPI_perror()tPAPI_library_init()tPAPI_get_hardware_info()tPAPI_create_eventset()tPAPI_add_event()tPAPI_start()tPAPI_get_real_usec()tPAPI_accum()tPAPI_shutdown()