X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fmanual_mode_tracing.sh;h=09f07645ca08515261790f362d6a684bd10e4162;hb=9dc7b7ff797a5cbb1e9ffd59e053a04562f306c4;hp=3f203b1c8d8ecd1636ae7050759bb7add0438bd4;hpb=28c1bb4003ca120888a1d61d5ec71eac426ae490;p=ust.git diff --git a/tests/manual_mode_tracing.sh b/tests/manual_mode_tracing.sh index 3f203b1..09f0764 100755 --- a/tests/manual_mode_tracing.sh +++ b/tests/manual_mode_tracing.sh @@ -34,11 +34,11 @@ TRACE_DIR="/tmp/ust-testsuite-manual-trace" rm -rf "$TRACE_DIR" mkdir "$TRACE_DIR" -pidfilepath="/tmp/ust-testsuite-$USER-$(date +%Y%m%d%H%M%S%N)-ustd-pid" +pidfilepath="/tmp/ust-testsuite-$USER-$(date +%Y%m%d%H%M%S%N)-ust-consumerd-pid" mkfifo -m 0600 "$pidfilepath" -ustd --pidfile "$pidfilepath" -o "$TRACE_DIR" >/dev/null 2>&1 & -USTD_PID="$(<$pidfilepath)" +ust-consumerd --pidfile "$pidfilepath" -o "$TRACE_DIR" >/dev/null 2>&1 & +UST_CONSUMERD_PID="$(<$pidfilepath)" LD_PRELOAD=/usr/local/lib/libust.so.0.0.0:/usr/local/lib/libustinstr-malloc.so find -L / >/dev/null 2>&1 & PID=$! @@ -54,7 +54,7 @@ sleep 0.5 okx ustctl --stop-trace $PID okx ustctl --destroy-trace $PID kill $PID -kill -SIGTERM $USTD_PID -wait $USTD_PID +kill -SIGTERM $UST_CONSUMERD_PID +wait $UST_CONSUMERD_PID trace_matches -N "ust.malloc" "^ust.malloc:" "$TRACE_DIR"