Programming Interfaces Guide

Activation Interfaces

This section describes activation interfaces for CPC.

int cpc_enable(cpc_t *cpc);
int cpc_disable(cpc_t *cpc);

These two interfaces respectively enable and disable counters of any set that is bound to the executing LWP. Use of these interfaces enables an application to designate code of interest while deferring the counter configuration to a controlling process by using libpctx.