logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pmEventFlagsStr, pmEventFlagsStr_r - convert an event record flags value into a string

C Synopsis

#include<pcp/pmapi.h>constchar*pmEventFlagsStr(intflags);char*pmEventFlagsStr_r(intflags,char*buf,intbuflen);cc...-lpcp

Description

       For use in error and diagnostic messages, pmEventFlagsStr returns a `human readable' version of the value
       flags,  assuming  this  to  be  the  er_flags  field  of  a  pmEventRecord  or pmHighResEventRecord.  The
       pmEventFlagsStr_r function does the same, but stores the result in a user-supplied buffer buf  of  length
       buflen, which should have room for at least 64 bytes.

       The  string value result from pmEventFlagsStr is held in a single static buffer, so the returned value is
       only valid until the next call to pmEventFlagsStr.

Name

pmEventFlagsStr, pmEventFlagsStr_r - convert an event record flags value into a string

Notes

pmEventFlagsStr returns a pointer to a static  buffer  and  hence  is  not  thread-safe.   Multi-threaded
       applications should use pmEventFlagsStr_r instead.

See Also

PMAPI(3) and pmdaEventAddRecord(3).

Performance Co-Pilot                                   PCP                                    PMEVENTFLAGSSTR(3)

See Also