0c648899eeecb85a177f40162b8a3cb7d9f4d9ec
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 implement upt-trace wrapper

Stefan Schuermans authored 4 years ago

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

Stefan Schuermans authored 4 years ago

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

Stefan Schuermans authored 4 years ago

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

Stefan Schuermans authored 4 years ago

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