Commit d2ffb8d3 authored by Naveen N. Rao's avatar Naveen N. Rao Committed by Steven Rostedt (VMware)
parent 8a49f3e0
...@@ -58,7 +58,7 @@ parse_opts() { # opts ...@@ -58,7 +58,7 @@ parse_opts() { # opts
;; ;;
--verbose|-v|-vv) --verbose|-v|-vv)
VERBOSE=$((VERBOSE + 1)) VERBOSE=$((VERBOSE + 1))
[ $1 == '-vv' ] && VERBOSE=$((VERBOSE + 1)) [ $1 = '-vv' ] && VERBOSE=$((VERBOSE + 1))
shift 1 shift 1
;; ;;
--debug|-d) --debug|-d)
......
...@@ -48,7 +48,7 @@ test_event_enabled() { ...@@ -48,7 +48,7 @@ test_event_enabled() {
e=`cat $EVENT_ENABLE` e=`cat $EVENT_ENABLE`
if [ "$e" != $val ]; then if [ "$e" != $val ]; then
echo "Expected $val but found $e" echo "Expected $val but found $e"
exit -1 exit 1
fi fi
} }
......
...@@ -34,10 +34,10 @@ reset_ftrace_filter() { # reset all triggers in set_ftrace_filter ...@@ -34,10 +34,10 @@ reset_ftrace_filter() { # reset all triggers in set_ftrace_filter
echo > set_ftrace_filter echo > set_ftrace_filter
grep -v '^#' set_ftrace_filter | while read t; do grep -v '^#' set_ftrace_filter | while read t; do
tr=`echo $t | cut -d: -f2` tr=`echo $t | cut -d: -f2`
if [ "$tr" == "" ]; then if [ "$tr" = "" ]; then
continue continue
fi fi
if [ $tr == "enable_event" -o $tr == "disable_event" ]; then if [ $tr = "enable_event" -o $tr = "disable_event" ]; then
tr=`echo $t | cut -d: -f1-4` tr=`echo $t | cut -d: -f1-4`
limit=`echo $t | cut -d: -f5` limit=`echo $t | cut -d: -f5`
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment