NAME | C SYNOPSIS | CAVEAT | DESCRIPTION | SEE ALSO | COLOPHON |
|
|
PMASAMEINDOM(3) Library Functions Manual PMASAMEINDOM(3)
pmaSameInDom - check if two observations of an instance domain are the same`
#include <pcp/pmapi.h> #include <pcp/libpcp.h> #include <pcp/archive.h> int pmaSameInDom(__pmLogInDom *old, __pmLogInDom *new); cc ... -lpcp_archive -lpcp
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.
Checks two observations of the same instance domain are identical. The code assumes (a) old->indom == new->indom and (b) both the instance domains are sorted in ascending internal instance identifier sequence; see pmaSortInDom(3) to see how to make the second condition true. pmaSameInDom returns 1 if they are the same, returns 0 otherwise. The instance domains are considered different if any of the following hold: 1. old->numinst != new->numinst 2. For some i, old->instlist[i] != new->instlist[i] 3. For some i, the strings pointed to by old->namelist[i] and new->instlist[i] are not identical For Version 3 archives with "delta indom" support, it is more likely that pmaDeltaInDom(3) is more useful than pmaSameInDom, as the former combines the check for two observations of an instance domain being the same with the optional creation of the "delta indom" format if that is the most efficient encoding.
pmaDeltaInDom(3), PMAPI(3) and pmaSortInDom(3).
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 PMASAMEINDOM(3)
Pages that refer to this page: pmadeltaindom(3)