pcp
[Top] [All Lists]

pcp updates

To: pcp@xxxxxxxxxxx
Subject: pcp updates
From: Nathan Scott <nscott@xxxxxxxxxx>
Date: Fri, 27 Jun 2008 16:01:48 +1000
Sender: pcp-bounce@xxxxxxxxxxx
Changes committed to git://oss.sgi.com:8090/nathans/pcp.git

 configure.in                                    |    2 
 src/cpan/local.c                                |   17 --
 src/dbpmda/src/pmda.c                           |   15 +-
 src/dbpmda/src/util.c                           |    9 -
 src/genpmda/genpmda                             |    4 
 src/include/impl.h                              |   36 +----
 src/include/pcp.conf.in                         |    2 
 src/include/pmapi.h                             |    4 
 src/libkmtime/src/client.c                      |   38 +----
 src/libpcp/src/GNUmakefile                      |    1 
 src/libpcp/src/access.c                         |    3 
 src/libpcp/src/auxconnect.c                     |   36 +++--
 src/libpcp/src/config.c                         |   16 +-
 src/libpcp/src/connect.c                        |   33 +---
 src/libpcp/src/context.c                        |   37 +----
 src/libpcp/src/ipc.c                            |  137
++++++++++---------
 src/libpcp/src/logconnect.c                     |   36 +----
 src/libpcp/src/logutil.c                        |   42 +-----
 src/libpcp/src/p_error.c                        |   32 +---
 src/libpcp/src/p_lrequest.c                     |   10 -
 src/libpcp/src/p_lstatus.c                      |   10 -
 src/libpcp/src/p_result.c                       |   14 --
 src/libpcp/src/pdu.c                            |  151
+++++----------------
 src/libpcp/src/pmns.c                           |   18 --
 src/libpcp/src/util.c                           |   35 ++++-
 src/libpcp/src/win32.c                          |  126
+++++++++++++++++-
 src/libpcp_pmda/src/open.c                      |   30 +---
 src/pcp/pcp.sh                                  |    2 
 src/pmafm/mkaf                                  |    2 
 src/pmafm/pmafm                                 |    2 
 src/pmcd/migrate_pcp_var_dir                    |    2 
 src/pmcd/pmdaproc.sh                            |    2 
 src/pmcd/rc-proc.sh                             |    2 
 src/pmcd/rc-proc.sh.minimal                     |    2 
 src/pmcd/rc_local                               |    2 
 src/pmcd/rc_pcp                                 |    2 
 src/pmcd/src/client.c                           |    7 -
 src/pmcd/src/config.c                           |  105 ++++-----------
 src/pmcd/src/dofetch.c                          |   10 -
 src/pmcd/src/dopdus.c                           |   11 -
 src/pmcd/src/pmcd.c                             |   88 +++---------
 src/pmclient/GNUmakefile                        |    2 
 src/pmdas/apache/Install                        |    2 
 src/pmdas/apache/Remove                         |    2 
 src/pmdas/cisco/Install                         |    2 
 src/pmdas/cisco/Remove                          |    2 
 src/pmdas/cisco/pmda.c                          |   11 -
 src/pmdas/dbping/Install                        |    2 
 src/pmdas/dbping/Remove                         |    2 
 src/pmdas/hotproc/Install                       |    2 
 src/pmdas/hotproc/Remove                        |    2 
 src/pmdas/hotproc/help.fmt                      |    2 
 src/pmdas/hotproc/src/hotproc.c                 |   25 +--
 src/pmdas/jstat/Install                         |    2 
 src/pmdas/jstat/Remove                          |    2 
 src/pmdas/lmsensors/Install                     |    2 
 src/pmdas/lmsensors/Remove                      |    2 
 src/pmdas/mailq/Install                         |    2 
 src/pmdas/mailq/Remove                          |    2 
 src/pmdas/memcache/Install                      |    2 
 src/pmdas/memcache/Remove                       |    2 
 src/pmdas/mounts/Install                        |    2 
 src/pmdas/mounts/Remove                         |    2 
 src/pmdas/news/Install                          |    2 
 src/pmdas/news/Remove                           |    2 
 src/pmdas/news/news.agent                       |    2 
 src/pmdas/pmcd/src/pmcd.c                       |    2 
 src/pmdas/process/Install                       |    2 
 src/pmdas/process/Remove                        |    2 
 src/pmdas/roomtemp/Install                      |    2 
 src/pmdas/roomtemp/Remove                       |    2 
 src/pmdas/sample/Install                        |    2 
 src/pmdas/sample/Remove                         |    2 
 src/pmdas/sample/src/sample.c                   |   17 +-
 src/pmdas/sendmail/Install                      |    2 
 src/pmdas/sendmail/Remove                       |    2 
 src/pmdas/shping/Install                        |    2 
 src/pmdas/shping/Remove                         |    2 
 src/pmdas/shping/sample.conf                    |    2 
 src/pmdas/simple/GNUmakefile.install            |    4 
 src/pmdas/simple/Install                        |    2 
 src/pmdas/simple/Remove                         |    2 
 src/pmdas/simple/simple.c                       |   13 -
 src/pmdas/summary/Install                       |    2 
 src/pmdas/summary/Remove                        |    2 
 src/pmdas/summary/pmda.c                        |   12 -
 src/pmdas/systemtap/Install                     |    2 
 src/pmdas/systemtap/Remove                      |    2 
 src/pmdas/trace/Install                         |    2 
 src/pmdas/trace/Remove                          |    2 
 src/pmdas/trivial/GNUmakefile.install           |    4 
 src/pmdas/trivial/Install                       |    2 
 src/pmdas/trivial/Remove                        |    2 
 src/pmdas/txmon/Install                         |    2 
 src/pmdas/txmon/Remove                          |    2 
 src/pmdas/txmon/genload                         |    2 
 src/pmdas/weblog/Install                        |    2 
 src/pmdas/weblog/Remove                         |    2 
 src/pmdas/weblog/Web.Allservers.pmchart         |    2 
 src/pmdas/weblog/Web.Perserver.Bytes.pmchart    |    2 
 src/pmdas/weblog/Web.Perserver.Requests.pmchart |    2 
 src/pmdas/weblog/server.sh                      |    2 
 src/pmgenmap/pmgenmap.sh                        |    2 
 src/pmie/etc_init.d_pmie                        |    2 
 src/pmie/pmie2col                               |    2 
 src/pmie/pmie_check.sh                          |    2 
 src/pmie/pmie_daily.sh                          |    2 
 src/pmlc/actions.c                              |   34 ----
 src/pmlogconf/pmlogconf.sh                      |    2 
 src/pmlogctl/pmlogger_check.sh                  |    2 
 src/pmlogctl/pmlogger_daily.sh                  |    2 
 src/pmlogctl/pmlogger_merge.sh                  |    2 
 src/pmlogctl/pmnewlog.sh                        |    2 
 src/pmlogextract/pmlogextract.c                 |    7 -
 src/pmlogger/dopdu.c                            |   27 +--
 src/pmlogger/pmlogger.c                         |    7 -
 src/pmlogger/ports.c                            |   30 +---
 src/pmlogsummary/GNUmakefile                    |    3 
 src/pmlogsummary/pmlogsummary.c                 |    5 
 src/pmlogsummary/pmwtf.sh                       |  167
++++++++++++++++++++++++
 src/pmns/GNUmakefile                            |    2 
 src/pmns/Make.stdpmid                           |    2 
 src/pmns/Rebuild                                |    3 
 src/pmns/lockpmns                               |    2 
 src/pmns/pmnsadd                                |    2 
 src/pmns/stdpmid.pcp                            |    1 
 src/pmns/unlockpmns                             |    2 
 src/pmnscomp/pmnscomp.c                         |    7 -
 src/pmprobe/pmprobe.c                           |    5 
 src/pmproxy/pmproxy.c                           |   25 ---
 src/pmproxy/rc_pmproxy                          |    2 
 src/procmemstat/GNUmakefile                     |    2 
 src/xconfirm/xconfirm                           |    2 
 133 files changed, 804 insertions(+), 880 deletions(-)

commit bcfc0de7e22b318341981fdf76297d6e81101302
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Fri Jun 27 15:55:47 2008 +1000

    Ken tells me the malloc-audit header stuff is no longer
useful/usable.

commit 1b658a50e8d5ee1812724d85349487c150938335
Author: Ken McDonell <kmcdonell@xxxxxxxxxx>
Date:   Fri Jun 27 15:44:45 2008 +1000

    Add pmwtf script - compares two PCP archives and report significant
differences.

commit fb21a0777ab8eadcb802e6f045cfc710dcc9574e
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Fri Jun 27 15:35:06 2008 +1000

    It turns out that generic IPC on Windows using the Win32 APIs is not
so
    straightforward as it looks at first.  In particular, you can't
read/write
    on a socket (must send/recv) and you can't send/recv on a pipe
descriptor.
    Nor can one select on a pipe file descriptor.  These are major
problems in
    porting libpcp, because the low-level PDU routines have to
manipulate PDUs
    on either type of file descriptor, and at many points have no
knowledge of
    whether working with a socket or a pipe.
    
    Using some other Win32 APIs (ReadFile/WriteFile) would work, but
these
    take a HANDLE, which is a pointer - and we really want to use an
int, as
    many of the impl.h libpcp routines are coded that way (would have to
make
    a number of ABI changes to go that route).
    
    After several iterations, the following patch implements what seems
like
    the least terrible approach, and most importantly it does not
perturbe the
    PMAPI or the impl.h routines in libpcp either.  The approach taken
here is
    to associate a socket true/false boolean state with each file
descriptor,
    using the global fd table that was added for PCP 1.0 <-> 2.0
versioning.
    Whenever we add a socket descriptor we set the flag too, then the
PDU code
    can later tell whether its working with sockets or pipes when it
needs to.
    To make this easier, the existing __pmCreateSocket API is now used
in most
    places that create sockets, and a __pmCloseSocket interface is added
to
    do the platform-specific socket teardown.
    
    With this change we now have a Win32 PCP library supporting
communication
    on pipes and sockets (daemon PMDAs) and socket based PMAPI clients.
Yay!

commit 547bc8b532ea5e1bbeebd770834a3a53025aff04
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Fri Jun 27 13:53:45 2008 +1000

    Avoid a C++ template related issue with the MinGW g++
compilers/libraries.

commit a729361a160271f6691f5a1244f26289697251a6
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Wed Jun 25 16:19:46 2008 +1000

    Implement the data size functionality for win32, used by pmcd and
    some other code to keep track of process size (self) and detect
    leaks.  Also provide the times(2) implementation for Win32 and in
    a platform independent way for all code using that interface.

commit c787845b18491079da2ef9f8b1cc1a1f2d30b019
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Tue Jun 24 15:13:58 2008 +1000

    Add support for the PCP_DIR environment variable in pmGetConfig.

commit 74f664d1a245afaf08647c235a3946a3cecf200d
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Tue Jun 24 13:26:14 2008 +1000

    Add a PCP_DIR environment variable which can be used to prefix
pcp.env (and
    all other PCP_ paths).  For the Windows port, there is no /etc and
we need
    to be able to allow the installation process to set a user-defined
install
    location.  Other pieces of open source software seem to take this
approach
    too (e.g. Qt does something similar with QTDIR).
    
    This step just addresses all shell scripts, theres more still to be
done in
    this area of course.




<Prev in Thread] Current Thread [Next in Thread>