pcp
[Top] [All Lists]

pcp updates: NetBSD changes

To: pcp@xxxxxxxxxxx
Subject: pcp updates: NetBSD changes
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Mon, 30 Nov 2015 21:31:52 +1100
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
>From a commit below ...

        netbsd PMDA: move forward from zombie state

        This gets the netbsd to move from "compiles, just" to builds,
        installs, pcp(1) works and passes QA check -g sanity.

Changes committed to git://git.pcp.io/kenj/pcp master

Ken McDonell (13):
      src/pmlogger/src/pmlogger.c: NetBSD changes
      src/pmlogger/pmlogger_daily.sh: NetBSD change
      src/include/GNUmakefile: NetBSD changes
      src/include/builddefs.in: NetBSD changes
      netbsd PMDA: move forward from zombie state
      bash PMDA: cleanup
      sample, simple, trivial & txmon PMDAs: changes from NetBSD port
      rc/pmcd/rc-proc.sh: NetBSD changes
      Makepkgs: fine tuning configure for NetBSD
      qa: NetBSD changes
      qa/031: NetBSD has pmda.* metrics
      assorted: rework -rpath changes
      assorted: rework -rpath changes

 Makepkgs                                 |    8 
 qa/003                                   |   18 +
 qa/031.out.netbsd                        |  103 ++++++
 qa/080                                   |    2 
 qa/137                                   |    5 
 qa/232                                   |   11 
 qa/278                                   |    4 
 qa/338                                   |   26 +
 qa/574                                   |    2 
 qa/574.out.netbsd                        |  106 ++++++
 qa/994                                   |    2 
 qa/admin/check-vm                        |  137 +++++++-
 qa/admin/myconfigure                     |    7 
 qa/common.check                          |   18 -
 qa/common.rc                             |    2 
 qa/pmdas/bigun/GNUmakefile.install       |   40 +-
 qa/pmdas/broken/GNUmakefile.install      |   40 +-
 qa/pmdas/dynamic/GNUmakefile.install     |   42 +-
 qa/pmdas/schizo/GNUmakefile.install      |   42 +-
 qa/pmlogconv/GNUmakefile                 |   40 +-
 qa/src/GNUmakefile.install               |   40 +-
 qa/src/statvfs.c                         |   27 +
 src/include/GNUmakefile                  |   10 
 src/include/builddefs.in                 |    3 
 src/pmcd/rc-proc.sh                      |    8 
 src/pmdas/bash/GNUmakefile               |    3 
 src/pmdas/bash/pcp.sh                    |   30 -
 src/pmdas/bash/test-child.sh             |   31 +
 src/pmdas/bash/test-trace.sh             |   31 +
 src/pmdas/netbsd/.gitignore              |    7 
 src/pmdas/netbsd/GNUmakefile             |    3 
 src/pmdas/netbsd/disk.c                  |  241 ++++++--------
 src/pmdas/netbsd/filesys.c               |  208 ++++++++++++
 src/pmdas/netbsd/help                    |   69 +++-
 src/pmdas/netbsd/netbsd.c                |  521 +++++++++++++++----------------
 src/pmdas/netbsd/netbsd.h                |   19 +
 src/pmdas/netbsd/netif.c                 |  309 +++++++++++-------
 src/pmdas/netbsd/percpu.c                |  126 +++++++
 src/pmdas/netbsd/root_netbsd             |   94 +++--
 src/pmdas/netbsd/swap.c                  |  123 +++++++
 src/pmdas/netbsd/vm_uvmexp.c             |  146 ++++++++
 src/pmdas/sample/src/GNUmakefile.install |   40 +-
 src/pmdas/simple/GNUmakefile.install     |   40 +-
 src/pmdas/trivial/GNUmakefile.install    |   40 +-
 src/pmdas/txmon/GNUmakefile.install      |   40 +-
 src/pmlogger/pmlogger_daily.sh           |   22 -
 src/pmlogger/src/pmlogger.c              |   11 
 47 files changed, 2090 insertions(+), 807 deletions(-)

Details ...

commit 4379b9d87840dba2d22bddfa4f0cec9d2c79b945
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Nov 30 20:08:12 2015 +1100

    assorted: rework -rpath changes
    
    More places where some tweaking needed to produce the right results
    on Linux and NetBSD.

commit cd7a093c43b8212730f2fc8ca39779c0bdc3460e
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Nov 30 19:43:40 2015 +1100

    assorted: rework -rpath changes
    
    Some tweaking needed to produce the right results on Linux and
    NetBSD.

commit b6a3f42591f02f2bb9dd33bd3f97f2437c9118c3
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Nov 30 15:59:23 2015 +1100

    qa/031: NetBSD has pmda.* metrics

commit 1370db104867e3a5b4b519873ee6fe424167752f
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Nov 30 15:45:20 2015 +1100

    qa: NetBSD changes
    
    Lots of small changes here ... "sanity" group passes on NetBSD with
    these.

commit 0416c16e0772c8107d7cfe76329dc60e51f3fa95
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Nov 30 15:41:28 2015 +1100

    Makepkgs: fine tuning configure for NetBSD
    
    We're trying to mimic pkgsrc/pkgin (even though we don't have packaging
    recipes for NetBSD at this stage), which means we need this lot ...
        --prefix=/usr/pkg --exec-prefix=/usr/pkg --mandir=/usr/pkg/man
        --with-rcdir=/etc/rc.d --localstatedir=/usr/pkg
        --with-rundir=/var/run --with-tmpdir=/var/tmp
        --with-logdir=/var/log/pcp
    
    Same change needed in qa/admin/myconfigure and is included in this
    commit.

commit f8d50588edbb6ebb8e005b666d08f7334410310b
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Nov 30 15:39:51 2015 +1100

    rc/pmcd/rc-proc.sh: NetBSD changes
    
    No real concept of chkconfig here ... just follow the freebsd
    way of doing things.

commit 27ecb80b3172b209281fdaeb83d74eea756bb0a3
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Nov 30 15:36:54 2015 +1100

    sample, simple, trivial & txmon PMDAs: changes from NetBSD port
    
    Rework the way we handle -L and -I flags to cc and ld in the
    _installed_ makefiles.
    
    For NetBSD we need:
    1. -L$(PCP_LIB_DIR) -rpath=$(PCP_LIB_DIR)
    2. -I $(PCP_INC_DIR)/..
    
    Turns out this is safe for anyone who also has gmake, so the settings
    are unconditional here.

commit c762aabfaa98f5535bc6e1d0ae1a4599a3845c06
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Nov 30 15:35:01 2015 +1100

    bash PMDA: cleanup
    
    The file pcp.sh is not really needed and it _certainly_ does not belong
    in /etc/pcp.sh!
    
    Found in the NetBSD port.

commit d7b3b2c95cfdc4718e171ddb94520b2d2f3f0045
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Nov 30 15:31:47 2015 +1100

    netbsd PMDA: move forward from zombie state
    
    This gets the netbsd to move from "compiles, just" to builds,
    installs, pcp(1) works and passes QA check -g sanity.

commit b296d20c2f9a6f6994775e9850c9b18a2914fa05
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Nov 30 15:29:05 2015 +1100

    src/include/builddefs.in: NetBSD changes
    
    For NetBSD, PCP libraries will end up in /usr/pkg/lib and ld(1)
    does not look here by default ... so add -rpath=/usr/pkg/lib to our
    LDFLAGS for NetBSD.

commit 428f42420d34bf9354dbe7a12da114e71dff2d51
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Nov 30 15:20:49 2015 +1100

    src/include/GNUmakefile: NetBSD changes
    
    Due to the NetBSD packaging rules, PCP bits will generally not be
    installed in /var/lib/pcp and /etc/pcp.
    
    Mostly we handle this OK, but we have to bend the rules for a couple
    of files ... pcp.conf and pcp.env need to be in /etc or we are up
    for a whole truckload of pain.  So force these ones into /etc, not
    $(PCP_ETC_DIR), for NetBSD (where PCP_ETC_DIR is /usr/pkg/etc/pcp).

commit 5f0ef1acc3fd7e3c6a508b583e5452f9d0e4ab3d
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Nov 30 14:51:58 2015 +1100

    src/pmlogger/pmlogger_daily.sh: NetBSD change
    
    NetBSD is like FreeBSD and has find -N semantics that is different
    to Linux ... extend existing freebsd conditional logic to include
    netbsd.

commit 516e4b2f4e720cd28dd3b0aaddb871b2fcb39224
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date:   Mon Nov 30 14:50:20 2015 +1100

    src/pmlogger/src/pmlogger.c: NetBSD changes
    
    1. rework source code to avoid apparent bad code generation from the
       NetBSD C compiler
    2. address small compiler warning

<Prev in Thread] Current Thread [Next in Thread>
  • pcp updates: NetBSD changes, Ken McDonell <=