pmasortindom(3) — Linux manual page

NAME | C SYNOPSIS | CAVEAT | DESCRIPTION | DIAGNOSTICS AND RETURN VALUES | SEE ALSO | COLOPHON

PMASORTINDOM(3)         Library Functions Manual         PMASORTINDOM(3)

NAME         top

       pmaSortInDom - sort an instance domain

C SYNOPSIS         top

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

       void pmaSortInDom(__pmLogInDom *lidp);

       cc ... -lpcp_archive -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

       The instance domain identified by lidp is sorted in ascending
       internal instance identifier value.  Both the lidp->instlist[]
       array and the corresponding lidp->namelist[] array are sorted.

       Since instance domains are usually sorted (at their source by a
       PMDA), a bubble sort is used.  This means that if the caller is
       unsure if the instance domain is sorted (but it actually is
       already sorted), then calling pmaSortInDom is as fast as checking
       if the instance domain is sorted, so when in doubt, simply call
       pmaSortInDom.

DIAGNOSTICS AND RETURN VALUES         top

       None.

SEE ALSO         top

       PMAPI(3) and pmGetInDom(3).

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@groups.io.  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
       man-pages@man7.org

Performance Co-Pilot               PCP                   PMASORTINDOM(3)

Pages that refer to this page: pmadeltaindom(3)pmasameindom(3)