Files
jami-daemon/tools/trace/trace-jami
Olivier Dion d3a31590dc tools/trace: Add trace analysis tools
Change-Id: I8edf7ab6e227bd374009da34df008a9ccf418825
2022-06-17 14:59:51 -04:00

29 lines
369 B
Bash
Executable File

#!/bin/sh
epilogue() {
lttng stop
lttng destroy
exit 0
}
trap epilogue SIGINT
lttng create jami
lttng enable-event --userspace 'jami:*'
lttng add-context --userspace --type=vtid
for arg in "$@"; do
case "$arg" in
"--") break ;;
*) lttng add-context --userspace --type="$1" ;;
esac
shift
done
shift
lttng start
$@
epilogue