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 (( $# < 2 ))
6) then
7)   echo "usage: $0 <SOURCE_DIR> <UPT_HOME>" >&2
8)   exit 2
9) fi
10) SOURCE_DIR="$(readlink -f "$1")"
11) UPT_HOME="$(readlink -f "$2")"
12) 
13) SCRIPT_DIR="$(dirname "$0")"
14) 
Stefan Schuermans python3 module, exports, up...

Stefan Schuermans authored 4 years ago

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

Stefan Schuermans authored 4 years ago

17) rm -rf trace.upt build
Stefan Schuermans implement upt-trace wrapper

Stefan Schuermans authored 4 years ago

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

Stefan Schuermans authored 4 years ago

19) upt-trace trace.upt "$SCRIPT_DIR/run_build.bash" "$SOURCE_DIR"
Stefan Schuermans implement upt-trace wrapper

Stefan Schuermans authored 4 years ago

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

Stefan Schuermans authored 4 years ago

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

Stefan Schuermans authored 4 years ago

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

Stefan Schuermans authored 4 years ago

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

Stefan Schuermans authored 4 years ago

24) grep -A 1 '^ *cmdline {$' out.dump | grep '^ *s: "mkdir"$'
25) grep '^ *s: "proc_begin.c"$' out.dump
26) grep '^ *s: "libuptpl.so"$' out.dump
Stefan Schuermans upt-dump -> upt-tool, add p...

Stefan Schuermans authored 4 years ago

27)