projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a test to valide that we use URCU with a minimum version of 0.5
[ust.git]
/
tests
/
manual_mode_tracing.sh
diff --git
a/tests/manual_mode_tracing.sh
b/tests/manual_mode_tracing.sh
index fd0b61078683a4a0cb1d9f4ab91d684fde8c800a..09f07645ca08515261790f362d6a684bd10e4162 100755
(executable)
--- a/
tests/manual_mode_tracing.sh
+++ b/
tests/manual_mode_tracing.sh
@@
-17,6
+17,10
@@
# You should have received a copy of the GNU General Public License
# along with LTTng-UST. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with LTTng-UST. If not, see <http://www.gnu.org/licenses/>.
+# This tests manual mode tracing, meaning the process is first started, then
+# the tracing is set up with ustctl. Then verifications are done to make sure
+# all the events that were supposed to be in the trace are there.
+
TESTDIR=$(dirname $0)
source $TESTDIR/test_functions.sh
TESTDIR=$(dirname $0)
source $TESTDIR/test_functions.sh
@@
-30,11
+34,11
@@
TRACE_DIR="/tmp/ust-testsuite-manual-trace"
rm -rf "$TRACE_DIR"
mkdir "$TRACE_DIR"
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
-consumer
d-pid"
mkfifo -m 0600 "$pidfilepath"
mkfifo -m 0600 "$pidfilepath"
-ustd --pidfile "$pidfilepath" -o "$TRACE_DIR" >/dev/null 2>&1 &
-USTD_PID="$(<$pidfilepath)"
+ust
-consumer
d --pidfile "$pidfilepath" -o "$TRACE_DIR" >/dev/null 2>&1 &
+UST
_CONSUMER
D_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=$!
LD_PRELOAD=/usr/local/lib/libust.so.0.0.0:/usr/local/lib/libustinstr-malloc.so find -L / >/dev/null 2>&1 &
PID=$!
@@
-50,7
+54,7
@@
sleep 0.5
okx ustctl --stop-trace $PID
okx ustctl --destroy-trace $PID
kill $PID
okx ustctl --stop-trace $PID
okx ustctl --destroy-trace $PID
kill $PID
-kill -SIGTERM $USTD_PID
-wait $USTD_PID
+kill -SIGTERM $UST
_CONSUMER
D_PID
+wait $UST
_CONSUMER
D_PID
trace_matches -N "ust.malloc" "^ust.malloc:" "$TRACE_DIR"
trace_matches -N "ust.malloc" "^ust.malloc:" "$TRACE_DIR"
This page took
0.024534 seconds
and
4
git commands to generate.