pcp
[Top] [All Lists]

pcp updates: more mac os x qa rework

To: pcp@xxxxxxxxxxx
Subject: pcp updates: more mac os x qa rework
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue, 15 Mar 2016 09:05:04 +1100
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
Changes committed to git://git.pcp.io/kenj/pcp master

Ken McDonell (19):
      qa/294: prepare for different output on different platforms
      qa/294: tweak filter for ? values, e.g. for Mac OS X
      qa/919: prepare for different output on different platforms
      pcp.env: extension to optionally process $HOME/.pcp/pcp.conf
      src/pmcd/pmdaproc.sh: if perl check fails, report the reason
      src/pmdas/darwin/pmda.c: change from direct to hashed lookup for PMIDs
      qa/group: add 294 to pmstat group
      qa/833: filter kernel PMDA PMIDs
      qa/294: rm the old .out file (missed in earlier changes)
      qa/880 & 1038: add notrun guard if OrderedDict python module not available
      qa/507: fix darwin mem rounding in awk
      qa/364: better filtering for missing metrics on Mac OS X
      qa/273: revert previous direct mapping changes
      qa/344: filter out NotifyEndLocalContext line for linux PMDA
      qa/455: remove gnu sloppiness
      qa/416: sudo and awk changes
      qa/812: awk rework
      qa/716 & 798: sudo dbpmda changes
      qa/721: make dso suffix portable

 man/man5/pcp.env.5      |   17 
 qa/.gitignore           |    2 
 qa/1038                 |    6 
 qa/273                  |   22 
 qa/294                  |   16 
 qa/294.darwin           | 1110 ++++++++++++++++++++++++++++++++++++++++++++++++
 qa/294.default          | 1110 ++++++++++++++++++++++++++++++++++++++++++++++++
 qa/294.out              | 1110 ------------------------------------------------
 qa/344                  |    1 
 qa/344.out              |    5 
 qa/364                  |   28 -
 qa/416                  |    6 
 qa/507                  |    2 
 qa/566                  |    4 
 qa/716                  |    2 
 qa/721                  |    6 
 qa/721.out              |    2 
 qa/798                  |    2 
 qa/812                  |   22 
 qa/833                  |   13 
 qa/833.out              |   80 +--
 qa/880                  |    6 
 qa/919                  |   11 
 qa/919.darwin           |    7 
 qa/919.default          |    7 
 qa/group                |    2 
 src/include/pcp.env     |   28 -
 src/pmcd/pmdaproc.sh    |    6 
 src/pmdas/darwin/pmda.c |    2 
 29 files changed, 2424 insertions(+), 1211 deletions(-)

Details ...

commit dd690d452da43cb8e02ab33972a147f61f4f725d
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 09:02:52 2016 +1100

    qa/721: make dso suffix portable
    
    Need to use .$DSO_SUFFIX, not .so to make things work across all
    platforms, especially Mac OS X.

commit b57a886300f6ff8f7ba9e2aad71a097a5f2f8914
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 09:01:37 2016 +1100

    qa/716 & 798: sudo dbpmda changes
    
    The "sudo dbpmda ..." combination does not work well if the PMDA to
    be run by dbpmda depends on environment variables that sudo(1) clears.
    Leverage the recent pcp.env changes, and replace this with:
        sudo sh -c ". /etc/pcp.env; dbpmda ..."

commit 311543cbd01b808ce1bf8164560781341bd56514
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 09:00:32 2016 +1100

    qa/812: awk rework
    
    The version of awk on Mac OS X is pre-Neanderthal ... rework the
    awk script to use day zero awk syntax.

commit 34c8e781fdd6f3de4887a8908b6dffc0fb23248c
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 08:56:47 2016 +1100

    qa/416: sudo and awk changes
    
    The "sudo dbpmda ..." combination does not work well if the PMDA to
    be run by dbpmda depends on environment variables that sudo(1) clears.
    Leverage the recent pcp.env changes, and change this to:
        sudo sh -c ". /etc/pcp.env; dbpmda ..."
    
    The version of awk on Mac OS X is pre-Neanderthal ... rework the
    awk script to use day zero awk syntax.

commit 02f32d1ddd1294457a9874f7f594c400c7550ca7
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 08:54:17 2016 +1100

    qa/455: remove gnu sloppiness
    
    If commands are invoked as name [opts] [filename ...] then it
    will work on all platforms ... name [filename or opts ...] is
    gnu silliness.

commit b7de4d1d76f5f06a8f5e91ee3b8b41685b3a17d1
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 08:51:32 2016 +1100

    qa/344: filter out NotifyEndLocalContext line for linux PMDA
    
    This depends on the IPC method for the PMDA, and not all kernel
    PMDAs use a pipe connection to pmcd, e.g. darwin uses the DSO
    protocol.

commit b62e8b744caa56d163c4e588839674512cf1842a
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 08:49:29 2016 +1100

    qa/273: revert previous direct mapping changes
    
    This is now done properly in the darwin PMDA, so no need for
    filtering here.

commit f64a0f3cb777ea3cce633ecdc30dd063bb4ac992
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 07:15:46 2016 +1100

    qa/364: better filtering for missing metrics on Mac OS X

commit b7f120b8717ae91faee8bd4bee2613f9cdad712d
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 07:14:59 2016 +1100

    qa/507: fix darwin mem rounding in awk
    
    Previous expression was just wrong.

commit afaccbb9e95e88558e9f607a7c666c6acdc04e79
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 07:10:20 2016 +1100

    qa/880 & 1038: add notrun guard if OrderedDict python module not available

commit 2b8de7e9b898e1e5ac8dcd436db2f3a283a710e7
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 07:08:40 2016 +1100

    qa/294: rm the old .out file (missed in earlier changes)

commit 50e46252cea23216a3ed44b2edd107482c5ee5c3
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 07:02:58 2016 +1100

    qa/833: filter kernel PMDA PMIDs
    
    These will be different on different platforms.

commit f3494463a1d2acc42d7c0a53934c8f06a74ef1cd
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 06:59:38 2016 +1100

    qa/group: add 294 to pmstat group

commit 12358f6bd4aa555195919d1de01e0c4597b5cfb8
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 06:57:25 2016 +1100

    src/pmdas/darwin/pmda.c: change from direct to hashed lookup for PMIDs

commit 3114cfece4277a8114d6842d96539818b20cb331
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Tue Mar 15 06:55:11 2016 +1100

    src/pmcd/pmdaproc.sh: if perl check fails, report the reason
    
    Done during setup and PMDA install.

commit e9f792f7b33df56c7954d5d28a5a96ce584a6fb0
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Mar 14 20:04:52 2016 +1100

    pcp.env: extension to optionally process $HOME/.pcp/pcp.conf
    
    For some platforms, we rely on sudo(1) to install, start, stop
    or remove PCP components, or to debug PMDAs that need special
    privileges.
    
    Unfortunately, sudo(1) may scrub the environment, meaning important
    settings that are not in the system-wide pcp.conf (e.g. PERL5LIB
    or PYTHONPATH) are cleared, resulting in script failure.
    
    $HOME/.pcp/pcp.conf provides a way to overcome this as the scripts
    of interest all source pcp.env at the start.
    
    Not suprisingly, it is Mac OS X that has forced this "extension" so
    that QA works at all for some tests.

commit b13a15acb0d1678d49bb645e6c959b13de36d67d
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Mar 14 19:54:30 2016 +1100

    qa/919: prepare for different output on different platforms
    
    pmstat is only partially "there" for some non-Linux platforms
    because required metrics maybe missing from the kernel PMDA.

commit 3dbc3a30eb139cad214b8659977966a696aa7fc8
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Mar 14 19:50:18 2016 +1100

    qa/294: tweak filter for ? values, e.g. for Mac OS X

commit 479d24185df0d631a6aa126da243741831e3a141
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Mar 14 19:37:37 2016 +1100

    qa/294: prepare for different output on different platforms
    
    pmstat is only partially "there" for some non-Linux platforms
    because required metrics maybe missing from the kernel PMDA.

<Prev in Thread] Current Thread [Next in Thread>
  • pcp updates: more mac os x qa rework, Ken McDonell <=