__pmlogmetatypestr(3) — Linux manual page

NAME | C SYNOPSIS | CAVEAT | DESCRIPTION | NOTES | COLOPHON

PMLOGMETATYPESTR(3)     Library Functions Manual     PMLOGMETATYPESTR(3)

NAME         top

       __pmLogMetaTypeStr, __pmLogMetaTypeStr_r - convert an archive
       metadata record type into a string

C SYNOPSIS         top

       #include <pcp/pmapi.h>
       #include <pcp/libpcp.h>

       const char *__pmLogMetaTypeStr(int type);
       char *__pmLogMetaTypeStr_r(int type, char *buf, int buflen);

       cc ... -lpcp

CAVEAT         top

       This documentation is intended for internal Performance Co-Pilot
       (PCP) developer use.

       These interfaces are not part of the PCP APIs that are guaranteed
       to remain fixed across releases, and they may not work, or may
       provide different semantics at some point in the future.

DESCRIPTION         top

       Given a numeric archive metadata record type (type),
       __pmLogMetaTypeStr produces the ASCII name of that record type,
       else UNKNOWN if type is not a valid record type.
       __pmLogMetaTypeStr_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 17 bytes.

       Examples are DESC (for type equals 1), INDOM_V2 (for type equals
       2), etc.

NOTES         top

       Both of these functions are safe to call from threaded contexts.

COLOPHON         top

       This page is part of the PCP (Performance Co-Pilot) project.
       Information about the project can be found at 
       ⟨http://www.pcp.io/⟩.  If you have a bug report for this manual
       page, send it to [email protected].  This page was obtained from the
       project's upstream Git repository
       ⟨https://github.com/performancecopilot/pcp.git⟩ on 2024-06-14.
       (At that time, the date of the most recent commit that was found
       in the repository was 2024-06-14.)  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 is not part of the original manual page), send a mail to
       [email protected]

Performance Co-Pilot               PCP               PMLOGMETATYPESTR(3)