24e45f6f7fb275bc36562f284f75bacb7673599e
Stefan Schuermans implement upt-trace wrapper

Stefan Schuermans authored 4 years ago

1) #! /bin/bash
2) 
3) set -eux -o pipefail
4) 
5) if (( $# < 1 ))
6) then
7)   echo "usage: $0 <UPT_HOME>" >&2
8)   exit 2
9) fi
10) UPT_HOME="$1"
11) 
12) SCRIPT_DIR="$(dirname "$0")"
13) 
Stefan Schuermans python3 module, exports, up...

Stefan Schuermans authored 4 years ago

14) source "$UPT_HOME/exports"
15) 
Stefan Schuermans call trace file <trace.upt>...

Stefan Schuermans authored 4 years ago

16) rm -rf trace.upt
Stefan Schuermans implement upt-trace wrapper

Stefan Schuermans authored 4 years ago

17) 
Stefan Schuermans call trace file <trace.upt>...

Stefan Schuermans authored 4 years ago

18) upt-trace trace.upt "$SCRIPT_DIR/traceme.bash"
Stefan Schuermans implement upt-trace wrapper

Stefan Schuermans authored 4 years ago

19) 
Stefan Schuermans call trace file <trace.upt>...

Stefan Schuermans authored 4 years ago

20) ls -l trace.upt
Stefan Schuermans implement upt-trace wrapper

Stefan Schuermans authored 4 years ago

21) 
Stefan Schuermans call trace file <trace.upt>...

Stefan Schuermans authored 4 years ago

22) upt-tool trace.upt dump | tee out.dump
Stefan Schuermans implement upt-trace wrapper

Stefan Schuermans authored 4 years ago

23) grep '^ *event *{ *$' out.dump | wc -l | tee out.event_cnt
24) grep '^6$' out.event_cnt
Stefan Schuermans upt-dump -> upt-tool, add p...

Stefan Schuermans authored 4 years ago

25)