[pcp] pcp updates

Ken McDonell kenj at internode.on.net
Wed Sep 21 19:06:21 CDT 2011

Mostly pmlogrewrite, but also some minor pmlogger and pmlogextract

Changes committed to git://oss.sgi.com/kenj/pcp.git dev

 src/GNUmakefile                 |    2 
 src/libpcp/src/logutil.c        |   13 
 src/pmlogextract/pmlogextract.c |    3 
 src/pmlogger/callback.c         |   11 
 src/pmlogger/logger.h           |    3 
 src/pmlogger/pmlogger.c         |    7 
 src/pmlogrewrite/.gitignore     |    3 
 src/pmlogrewrite/GNUmakefile    |   57 
 src/pmlogrewrite/error.c        |   76 
 src/pmlogrewrite/gram.y         | 1840 ++++++++++++++++-----
 src/pmlogrewrite/indom.c        |  327 +++
 src/pmlogrewrite/lex.l          |  249 ++
 src/pmlogrewrite/logger.h       |  359 +++-
 src/pmlogrewrite/logio.c        |  184 ++
 src/pmlogrewrite/metric.c       |  206 ++
 src/pmlogrewrite/metriclist.c   |  634 +++----
 src/pmlogrewrite/pmlogrewrite.c | 3373 +++++++++++++++++++++++++---------------
 src/pmlogrewrite/result.c       |  458 +++++
 src/pmlogrewrite/util.c         |   78 
 19 files changed, 5696 insertions(+), 2187 deletions(-)

commit 137a83e72360040f741acbe1047101528a3bff52
Author: Ken McDonell <kenj at internode.on.net>
Date:   Thu Sep 22 10:03:22 2011 +1000

    pmlogrewrite - initial version done
    No man page yet, and multiple config files support is still to be
    Otherwise this is functionally complete.

commit ecda9ae0044a5124687ccbe27bd4de9c95895063
Author: Ken McDonell <kenj at internode.on.net>
Date:   Thu Sep 15 21:35:51 2011 +1000

    pmlogrewrite - yet another interim checkin
    This commit adds the input archive reading and output archive
    writing ... with _no_ config file, pmlogrewrite is now a very
    complicated replacement for cp(1) applied to each physical file
    of the PCP archive.

commit d9d8d2324d6abe86d0c3d40c52d8b40ca4b899ac
Author: Ken McDonell <kenj at internode.on.net>
Date:   Thu Sep 15 17:30:22 2011 +1000

    pmlogger - small problem with temporal index
    As part of the cleanup logic at the end of writing a PCP archive,
    pmlogger adds a final entry in the temporal index ... unfortunately
    the entry's offset into the log volume was "not quite right"(tm).
    The fix is trivial, and in practice I don't believe anything
    wrong would have resulted from this.
    Found while developing the new pmlogrewrite tool which _does_
    write the final temporal index entry with correct offsets.

commit 2a8ea21d30a0417d84083b82d1f2a3e8799033de
Author: Ken McDonell <kenj at internode.on.net>
Date:   Thu Sep 15 17:27:05 2011 +1000

    libpcp/logutil.c - bug and better diagnostics
    When the label record in the last volume of a multi-volume archive is
    corrupted, we could de-reference a NULL pointer, and the associated
    diagnostic messages before this point are less than helpful.  Fixed.
    Found while debugging the new pmlogrewrite tool.

commit 6a33577c6240256ada53ba84a16e73b5cdce45b4
Author: Ken McDonell <kenj at internode.on.net>
Date:   Mon Sep 12 22:30:02 2011 +1000

    pmlogrewrite - another interim checkin
    This commit completes the configuration file parser:
    - metric clause
    - better error reporting when errors found
    - general clean up of lexer
    - rework some bits of the parser for the global and indom clauses
    Still need some semantic checks after parser is done because semantics
    may not be OK until all changes are recorded.

commit 8f376e617a2060b80bcff244f63e6c7f04edbd8c
Author: Ken McDonell <kenj at internode.on.net>
Date:   Sun Sep 11 10:41:56 2011 +1000

    pmlogrewrite - interim checkin
    A fair chunk of this is stolen from pmlogextract at this stage.
    The new (and working) stuff is the lexer and parser for the configuration
    file(s) that is complete for the global and indom sections ... the metric
    section is still to be done.

More information about the pcp mailing list