Project

General

Profile

« Previous | Next » 

Revision a1b2d605

Added by Ken McDonell over 14 years ago

  • ID a1b2d605b25c84e0a6bf402059551a13f61fcd29

Generalized DSO PMDA support for PM_CONTEXT_LOCAL

[second commit, this time for all the modified files, duh!]

This batch of changes adds to the existing hardcoded table (and funky
environment variable rules) that control which DSO PMDAs may be used
with PM_CONTEXT_LOCAL.

Specifically, __pmLocalPMDA() is added to libpcp to allow updates to the
table, i.e. add a new entry, delete an existing entry, clear all entries.

The monitoring tools that understand -L from the command line
(pminfo and pmprobe) or support the equivalent @:metric syntax from
pmParseMetricSpec() (pmval) have been given a new command line option,
-K to get access to __pmLocalPMDA(). pmstat groks -L, but the metrics
it uses are hardcoded to the OS PMDA, so there was no point in addding
-K for pmstat.

In the process the #define PM_USE_CONTEXT_LOCAL (which was always set)
was removed from the source allowing some dead code to be removed.

  • added
  • modified
  • copied
  • renamed
  • deleted