Rename libustcmd to libustctl
[ust.git] / tests / manual_mode_tracing.sh
index 09f07645ca08515261790f362d6a684bd10e4162..b60a957084c458fd3e98822dc2a778c92c5a6f41 100755 (executable)
@@ -42,19 +42,20 @@ 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=$!
+TRACE=auto
 sleep 0.1
-okx ustctl --list-markers "$PID"
-okx ustctl --enable-marker ust/malloc $PID
-okx ustctl --enable-marker ust/free $PID
-okx ustctl --create-trace $PID
-okx ustctl --alloc-trace $PID
-okx ustctl --start-trace $PID
+okx ustctl list-markers $PID
+okx ustctl enable-marker $PID $TRACE ust/malloc
+okx ustctl enable-marker $PID $TRACE ust/free
+okx ustctl create-trace $PID $TRACE
+okx ustctl alloc-trace $PID $TRACE
+okx ustctl start-trace $PID $TRACE
 sleep 0.5
 
-okx ustctl --stop-trace $PID
-okx ustctl --destroy-trace $PID
+okx ustctl stop-trace $PID $TRACE
+okx ustctl destroy-trace $PID $TRACE
 kill $PID
-kill -SIGTERM $UST_CONSUMERD_PID
-wait $UST_CONSUMERD_PID
+kill -SIGTERM ${UST_CONSUMERD_PID}
+wait ${UST_CONSUMERD_PID}
 
 trace_matches -N "ust.malloc" "^ust.malloc:" "$TRACE_DIR"
This page took 0.02397 seconds and 4 git commands to generate.