Lines Matching +full:reset +full:- +full:trace
3 # reset-trace - reset state of tracing, disabling all tracing.
7 # can use this tool to reset the state of tracing, disabling anything still
11 # bcc-used tracing facilities are reset. Other tracing facilities (ftrace) are
13 # files can be reset with -F for force, but this will interfere with any other
16 # USAGE: ./reset-trace [-Fhqv]
23 # 20-Jul-2014 Brendan Gregg Created this.
24 # 18-Oct-2016 " " Updated for bcc use.
30 cat <<-END >&2
31 USAGE: reset-trace [-Fhqv]
32 -F # force: reset all tracing files
33 -v # verbose: print details while working
34 -h # this usage message
35 -q # quiet: no output
37 reset-trace # disable semi-enabled tracing
55 if [[ ! -w $file ]]; then
61 contents=$(grep -v '^#' $file)
63 (( ! opt_quiet )) && echo "Needed to reset $PWD/$file"
65 (( opt_verbose )) && cat -nv $file
72 (( opt_verbose )) && cat -nv $file
82 if [[ ! -e $file ]]; then
93 contents=$(grep -v '^#' $file)
96 "expected. Not resetting (-F to force, -v for verbose)."
98 (( opt_verbose )) && cat -nv $file
113 shift $(( $OPTIND - 1 ))
115 ### reset tracing state
123 writefile trace "" "" # clears trace_pipe
125 # non-bcc files