PMEVENTFLAGSSTR(3) Library Functions ManualPMEVENTFLAGSSTR(3)pmEventFlagsStr,pmEventFlagsStr_r- convert an event record flags value into a string
#include <pcp/pmapi.h>const char *pmEventFlagsStr(intflags);char *pmEventFlagsStr_r(intflags, char *buf, intbuflen);cc ... -lpcp
For use in error and diagnostic messages,pmEventFlagsStrreturns a `human readable' version of the valueflags, assuming this to be theer_flagsfield of apmEventRecordorpmHighResEventRecord. ThepmEventFlagsStr_rfunction does the same, but stores the re‐ sult in a user-supplied bufferbuf of lengthbuflen, which should have room for at least 64 bytes. The string value result frompmEventFlagsStris held in a single static buffer, so the returned value is only valid until the next call topmEventFlagsStr.
pmEventFlagsStrreturns a pointer to a static buffer and hence is not thread-safe. Multi-threaded applications should usepmEvent‐FlagsStr_rinstead.
PMAPI(3) andpmdaEventAddRecord(3).
This page is part of thePCP (Performance Co-Pilot) project. In‐ formation about the project can be found at ⟨http://www.pcp.io/⟩. If you have a bug report for this manual page, send it to pcp@groups.io. This page was obtained from the project's upstream Git repository ⟨https://github.com/performancecopilot/pcp.git⟩ on 2025-08-11. (At that time, the date of the most recent commit that was found in the repository was 2025-08-11.) If you discover any rendering problems in this HTML version of the page, or you believe there is a better or more up-to-date source for the page, or you have corrections or improvements to the information in this COLOPHON (which isnot part of the original manual page), send a mail to man-pages@man7.orgPerformance Co-Pilot PCPPMEVENTFLAGSSTR(3)Pages that refer to this page:pmdaeventarray(3), pmdaeventclient(3)
HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface. For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere. Hosting byjambit GmbH. | ![]() |