#!/usr/local/bin/gawk -f
#
#  memcheck -- pull out the memtrace records of dmcache output
#   
#  (An executable awk script.)
#
# Make sure that DEBUG_TRACE is turned on in iopfs-general.
#
# usage:
#   dmcache 'parms...' |& memcheck1 | sort +0n +1n | memcheck2
#
# Part of
#              The STARFISH Parallel file-system simulator
#        (Simulation Tool for Advanced Research in File Systems)
# 
#                               David Kotz
#                           Dartmouth College
#                              Version 3.0
#                              October 1996
#                          dfk@cs.dartmouth.edu

# We ignore all lines except those meant for us.
/^memtrace/ {
    CPnum = $2;
    offset = $3;
    len = $4;

    print CPnum, offset, len
}
