fix: cleanup the lttngtop-live-simple traces
[lttngtop.git] / utils / lttngtop-live-simple.sh
index 652ae7a6e4ca2e6f76708c2fad9304401d3934a0..d4de83f72b9ca920ad82e0da428ea914b1b955c3 100755 (executable)
@@ -44,7 +44,7 @@ fi
 
 lttng create $SESSION_NAME --live 1000000 -U net://localhost >/dev/null
 [[ $? != 0 ]] && exit 2
-lttng enable-event -s $SESSION_NAME -k lttng_statedump_start,lttng_statedump_end,lttng_statedump_process_state,lttng_statedump_file_descriptor,lttng_statedump_vm_map,lttng_statedump_network_interface,lttng_statedump_interrupt,sched_process_free,sched_switch >/dev/null
+lttng enable-event -s $SESSION_NAME -k lttng_statedump_start,lttng_statedump_end,lttng_statedump_process_state,lttng_statedump_file_descriptor,lttng_statedump_vm_map,lttng_statedump_network_interface,lttng_statedump_interrupt,sched_process_free,sched_switch,sched_process_fork >/dev/null
 [[ $? != 0 ]] && exit 2
 lttng enable-event -s $SESSION_NAME -k --syscall -a >/dev/null
 [[ $? != 0 ]] && exit 2
@@ -64,6 +64,6 @@ lttngtop -r $(echo $s|cut -d' ' -f1)
 lttng destroy $SESSION_NAME >/dev/null
 echo -n "Destroy $HOME/lttng-traces/$HOSTNAME/${SESSION_NAME}* (Y/n) ? "
 read a
-if test $a = 'y' -o $a = 'Y'; then
+if test -z "$a" -o "$a" = 'y' -o "$a" = 'Y'; then
        rm -rf $HOME/lttng-traces/$HOSTNAME/${SESSION_NAME}*
 fi
This page took 0.02983 seconds and 4 git commands to generate.