---
name: "pmdaprofile"
section: "3"
platform: "linux"
package: "libpcp-pmda3-dev"
version: "4.3.2+really4.3.1-0.1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/pmdaProfile"
---

# pmdaprofile(3)

update instance profile for PMDA in preparation for the next fetch from PMCD

Part of [pmdaProfile(3)](/pmdaProfile/3.md).

## NAME

**pmdaProfile** - update instance profile for PMDA in preparation for the next fetch from PMCD

## C SYNOPSIS

**#include \<pcp/pmapi.h\>**\
 **#include \<pcp/pmda.h\>**

**int pmdaProfile(pmProfile \****prof***, pmdaExt \****pmda***);**

**cc ... -lpcp\_pmda -lpcp**

## DESCRIPTION

As part of the Performance Metrics Domain Agent (PMDA) API (see [**PMDA**(3)](/PMDA/3.md)), **pmdaProfile** is the default callback which handles the receipt of a  **pmProfile** from  [**pmcd**(1)](/pmcd/1.md). A profile describes the instances that  **pmcd** requires in the  **pmResult** structure returned by the next fetch. **pmdaProfile** simply stores the new profile.

## CAVEAT

The PMDA must be using  **PMDA\_PROTOCOL\_2** or later, as specified in the call to  [**pmdaDSO**(3)](/pmdaDSO/3.md) or  [**pmdaDaemon**(3)](/pmdaDaemon/3.md).

## SEE ALSO

[**PMAPI**(3)](/PMAPI/3.md), [**PMDA**(3)](/PMDA/3.md), [**pmdaDaemon**(3)](/pmdaDaemon/3.md), [**pmdaDSO**(3)](/pmdaDSO/3.md) and [**pmdaFetch**(3)](/pmdaFetch/3.md).
