pm_start and pm_tstart Subroutine

Purpose

Starts system wide Performance Monitor counting.

Library

Performance Monitor APIs Library (libpmapi.a)

Syntax

#include <pmapi.h>

int pm_start()

int pm_tstart(*time)
timebasestruct_t *time;

Description

The pm_start subroutine starts system wide Performance Monitor counting.

The pm_tstart subroutine starts system wide Performance Monitor counting, and returns a timestamp indicating when the counting was started.

Parameters

Item Description
*time Pointer to a structure containing the timebase value when the counting was started. This can be converted to time using the time_base_to_time subroutine.

Return Values

Item Description
0 Operation completed successfully.
Positive error code Refer to the pm_error Subroutine to decode the error code

Error Codes

Refer to the pm_error Subroutine.

Files

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