Project

General

Profile

« Previous | Next » 

Revision d7be8ad5

Added by Nathan Scott about 14 years ago

  • ID d7be8ad5ea0637d1da68f904e5e6dd86d8e8d8d8

Rework dbpmda backdoor interface to libpcp contexts.

After many unsuccessful (and not pretty) attempts to get the
libpcp routines which dbpmda overwrites properly overwritable
with default gcc optimisation levels (Ubuntu x86_64 defaults)
I've given up and devised a simpler way to do what dbpmda has
to do. We no longer use a pmWhichContext and __pmHandleToPtr
local to dbpmda, rather we allow local contexts to be created
with the existing "shallow" flag - which effectively does the
same thing but using libpcp's global context state not custom
state in dbpmda.

We still override the profile state and do other unholy things
with the context once its created, but at least now we've got
around the custom dbpmda context stack & that need to override
libpcp routines.

The dbpmda QA tests now pass, which is what triggered all this.

  • added
  • modified
  • copied
  • renamed
  • deleted