643faefef098f0132a088888e6d8f7af4280d367
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 implement upt-trace wrapper

Stefan Schuermans authored 4 years ago

16) rm -rf out.proto
17) 
Stefan Schuermans python3 module, exports, up...

Stefan Schuermans authored 4 years ago

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

Stefan Schuermans authored 4 years ago

19) 
20) ls -l out.proto
21) 
Stefan Schuermans upt-dump -> upt-tool, add p...

Stefan Schuermans authored 4 years ago

22) upt-tool out.proto 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