Movatterモバイル変換


[0]ホーム

URL:


man7.org > Linux >man-pages

Linux/UNIX system programming training


pmparsedebug(3) — Linux manual page

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

PMPARSEDEBUG(3)          Library Functions ManualPMPARSEDEBUG(3)

NAME        top

__pmParseDebug,__pmSetDebugBits- manipulate old-style PCP       debugging control bit-fields

C SYNOPSIS        top

#include <pcp/pmapi.h>#include <pcp/deprecated.h>int __pmParseDebug(const char *spec);void __pmSetDebugBits(int value);cc ... -lpcp

DESCRIPTION        top

       These routine have been deprecated and may be removed in a future       Performance Co-Pilot (PCP) release.  Please refer topmSetDebug(3)       andpmClearDebug(3) for replacement functionality.__pmParseDebugparsesspec 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 bypmdbg(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_MAXfrom<limits.h>.       For example the debug optionfetchis defined in the output frompmdbg(3) with the-Loption and may be specified inspec as2,FETCHorfetch.__pmSetDebugBitsmay be used to set the bit-fields directly using       the encoding invalue.  The effect is additive, so consecutive       calls to__pmSetDebugBitswill set the conjunction of the bits in       thevalue arguments.  To clear the bit-fields, seepmClearDebug(3).

DIAGNOSTICS        top

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

SEE ALSO        top

pmdbg(1),pmSetDebug(3) andpmClearDebug(3).

COLOPHON        top

       This page is part of thePCP (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@groups.io.  This page was obtained from the       project's upstream Git repository       ⟨https://github.com/performancecopilot/pcp.git⟩ on 2025-02-02.       (At that time, the date of the most recent commit that was found       in the repository was 2025-01-30.)  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               PCPPMPARSEDEBUG(3)

Pages that refer to this page:pmdbg(1)



HTML rendering created 2025-02-02 byMichael Kerrisk, author ofThe Linux Programming Interface.

For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere.

Hosting byjambit GmbH.

Cover of TLPI


[8]ページ先頭

©2009-2025 Movatter.jp