NAME | C SYNOPSIS | DESCRIPTION | SEE ALSO | DIAGNOSTICS | COLOPHON

PMPARSEDEBUG(3)           Library Functions Manual           PMPARSEDEBUG(3)

NAME         top

       __pmParseDebug - convert a list of debug flags into an integer

C SYNOPSIS         top

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

       int __pmParseDebug(const char *spec);

       cc ... -lpcp

DESCRIPTION         top

       This routine has been deprecated and may be removed in a future
       Performance Co-Pilot (PCP) release.  Please refer to pmSetDebug(3)
       and pmClearDebug(3) for replacement functionality.

       __pmParseDebug parses spec assuming it to be a comma separated list
       of PCP debug flags.

       Each flag may be specified as an integer or the trailing portion of
       the symbolic name of the corresponding flag as reported by pmdbg(1).
       Symbolic names are stripped of the ``DBG_TRACE_'' prefix and may
       appear in either case.

       As a special case, the values ``-1'' and ``ALL'' are treated as
       synonyms for turning on all bits except the sign bit in the result,
       i.e. INT_MAX from <limits.h>.

       For example the debug flag DBG_TRACE_FETCH is defined in
       /usr/include/pcp/impl.h and may be specified in spec as 2, FETCH or
       fetch.

SEE ALSO         top

       pmdbg(1), pmSetDebug(3) and pmClearDebug(3).

DIAGNOSTICS         top

       If successful, __pmParseDebug returns the value computed by the bit-
       wise ``or'' of each flag in the spec, suitable for assigning to the
       global debug trace control variable pmDebug.  Otherwise the return
       value is less than 0 to indicate a parsing error.

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
       pcp@oss.sgi.com.  This page was obtained from the project's upstream
       Git repository ⟨https://github.com/performancecopilot/pcp.git⟩ on
       2017-09-15.  If you discover any rendering problems in this HTML ver‐
       sion 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 man‐
       ual page), send a mail to man-pages@man7.org

Performance Co-Pilot                 PCP                     PMPARSEDEBUG(3)

Pages that refer to this page: pmdbg(1)