Lines Matching refs:file

5 # The "file" is a pathname on the local system, and "title" is
8 # Usage: parse-console.sh file title
15 file="$1"
22 # Check for presence and readability of console output file
23 if test -f "$file" -a -r "$file"
27 echo $title unreadable console output file: $file
30 if grep -Pq '\x00' < $file
34 cat /dev/null > $file.diags
41 if grep -q FAILURE $file || grep -q -e '-torture.*!!!' $file
43 nerrs=`grep --binary-files=text '!!!' $file |
67 grep --binary-files=text 'torture:.*ver:' $file |
96 if grep -q SUCCESS $file
101 echo " " $file
105 if grep -q "_HOTPLUG:" $file
108 echo " " $file
111 echo $title no success message, `grep --binary-files=text 'ver:' $file | wc -l` successful version messages
118 fi | tee -a $file.diags
120 console-badness.sh < $file > $T.diags
123 print_warning "Assertion failure in $file $title"
126 n_badness=`grep -c Badness $file`
131 n_warn=`grep -v 'Warning: unable to open an initial console' $file | grep -v 'Warning: Failed to add ttynull console. No stdin, stdout, and stderr for the init process' | grep -E -c 'WARNING:|Warn'`
136 n_bugs=`grep -E -c '\bBUG|Oops:' $file`
141 n_kcsan=`grep -E -c 'BUG: KCSAN: ' $file`
151 n_calltrace=`grep -c 'Call Trace:' $file`
156 n_lockdep=`grep -c =========== $file`
161 n_stalls=`grep -E -c 'detected stalls on CPUs/tasks:|self-detected stall on CPU|Stall ended before state dump start|\?\?\? Writer stall state' $file`
166 n_starves=`grep -c 'rcu_.*kthread starved for' $file`
172 cat $T.diags >> $file.diags
174 for i in $file.*.diags
178 cat $i >> $file.diags
181 if ! test -s $file.diags
183 rm -f $file.diags
187 # don't create $file.ftrace. Otherwise output the results to $file.ftrace
188 extract_ftrace_from_console $file > $file.ftrace
189 if [ ! -s $file.ftrace ]; then
190 rm -f $file.ftrace