pmiSetVersion(3)

pmiSetVersion3

Set the archive version for a logimport archive

C synopsis

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

int pmiSetVersion(int value);

cc ... -lpcp_import -lpcp

Perl SYNOPSIS

use PCP::LogImport;

pmiSetVersion($value);

Python SYNOPSIS

from pcp import pmi

log.pmiSetVersion(value)

Overview

As part of the Performance Co-Pilot Log Import API (see LOGIMPORT(3)), pmiSetVersion sets the output archive version in the current context to be value.

In the absence of a call to pmiSetVersion the version currently defaults to the traditional v2 format. In a future major version of PCP it will default to v3 format.

Diagnostics

pmiSetVersion returns zero on success else a negative value that can be turned into an error message by calling pmiErrStr(3).

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

From pcp 7.2.2-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.