pm_error Subroutine

Purpose

Decodes Performance Monitor APIs error codes.

Library

Performance Monitor APIs Library (libpmapi.a)

Syntax

#include <pmapi.h>

void pm_error ( *Where,  errorcode)
char *Where;
int errorcode;

Description

The pm_error subroutine writes a message on the standard error output that describes the parameter errorcode encountered by a Performance Monitor API library subroutine. The error message includes the Where parameter string followed by a : (colon), a space character, the message, and a new-line character. The Where parameter string includes the name of the program that caused the error.

Parameters

Item Description
*Where Specifies where the error was encountered.
errorcode Specifies the error code as returned by one of the Performance Monitor APIs library subroutines.

Files

Item Description
/usr/include/pmapi.h Defines standard macros, data types, and subroutines.