ab75c2fbc8c7759c460b6a58ab2286b357a6e48b
Stefan Schuermans implement upt-trace wrapper

Stefan Schuermans authored 4 years ago

1) #! /bin/bash
2) 
3) if (( $# < 2 ))
4) then
Stefan Schuermans call trace file <trace.upt>...

Stefan Schuermans authored 4 years ago

5)   echo "usage: $0 <trace.upt> <command> [<arg> [...]]" >&2
Stefan Schuermans implement upt-trace wrapper

Stefan Schuermans authored 4 years ago

6)   exit 2
7) fi
8) TRACE_FILE="$1"
9) shift
10) 
11) UPT_HOME="$(readlink -f "$(dirname "$(dirname "$0")")")"
12) 
13) touch "$TRACE_FILE"
14) export UPTPL_OUTPUT="$(readlink -f "$TRACE_FILE")"
Stefan Schuermans align file location in buil...

Stefan Schuermans authored 4 years ago

15) export LD_PRELOAD="$UPT_HOME/lib/uproctrace/libuptpl.so"