/scripts/ |
D | markup_oops.pl | 48 my ($line) = @_; 49 if ($line =~ /EAX: ([0-9a-f]+) EBX: ([0-9a-f]+) ECX: ([0-9a-f]+) EDX: ([0-9a-f]+)/) { 55 if ($line =~ /ESI: ([0-9a-f]+) EDI: ([0-9a-f]+) EBP: ([0-9a-f]+) ESP: ([0-9a-f]+)/) { 60 if ($line =~ /RAX: ([0-9a-f]+) RBX: ([0-9a-f]+) RCX: ([0-9a-f]+)/) { 65 if ($line =~ /RDX: ([0-9a-f]+) RSI: ([0-9a-f]+) RDI: ([0-9a-f]+)/) { 70 if ($line =~ /RBP: ([0-9a-f]+) R08: ([0-9a-f]+) R09: ([0-9a-f]+)/) { 74 if ($line =~ /R10: ([0-9a-f]+) R11: ([0-9a-f]+) R12: ([0-9a-f]+)/) { 79 if ($line =~ /R13: ([0-9a-f]+) R14: ([0-9a-f]+) R15: ([0-9a-f]+)/) { 97 my ($line, $cntr) = @_; 99 if (length($line) < 40) { [all …]
|
D | checkpatch.pl | 226 my $line = $_; 228 $line =~ s/\s*\n?$//g; 229 $line =~ s/^\s*//g; 230 $line =~ s/\s+/ /g; 232 next if ($line =~ m/^\s*#/); 233 next if ($line =~ m/^\s*$/); 235 my @words = split(" ", $line); 255 my $line = $_; 256 $line =~ s/\s+$//; 258 if ($line =~ /^\s*\*\*(.+)\*\*$/) { [all …]
|
D | show_delta | 44 def get_time(line): argument 45 if line[0]!="[": 49 (time_str, rest) = string.split(line[1:],']',1) 61 def convert_line(line, base_time): argument 65 (time, rest) = get_time(line) 68 return line 109 for line in lines: 111 (time, rest) = get_time(line) 125 for line in lines: 126 print (convert_line(line, base_time),)
|
D | leaking_addresses.pl | 267 while (my $line = <$fh> ) { 268 if ($line =~ /^$option/) { 269 ($str, $val) = split /=/, $line; 349 my ($line) = @_; 353 if ($line =~ '^SigBlk:' or 354 $line =~ '^SigIgn:' or 355 $line =~ '^SigCgt:') { 359 if ($line =~ '\bKEY=[[:xdigit:]]{14} [[:xdigit:]]{16} [[:xdigit:]]{16}\b' or 360 $line =~ '\b[[:xdigit:]]{14} [[:xdigit:]]{16} [[:xdigit:]]{16}\b') { 365 while ($line =~ /($address_re)/g) { [all …]
|
D | cleanfile | 139 while ( defined($line = <FILE>) ) { 141 $in_bytes += length($line); 142 $line =~ s/[ \t\r]*$//; # Remove trailing spaces 143 $line = clean_space_tabs($line); 145 if ( $line eq "\n" ) { 146 push(@blanks, $line); 147 $blank_bytes += length($line); 151 push(@lines, $line); 152 $out_bytes += length($line); 157 $l_width = strwidth($line);
|
D | bpf_doc.py | 24 def __init__(self, line='<line not provided>', reader=None): argument 28 (reader.tell(), line)) 30 BaseException.__init__(self, 'Error parsing line: %s' % line) 94 self.line = '' 117 capture = p.match(self.line) 121 end = end_re.match(self.line) 124 self.line = self.reader.readline() 136 capture = p.match(self.line) 139 self.line = self.reader.readline() 144 capture = p.match(self.line) [all …]
|
D | cleanpatch | 140 while ( defined($line = <FILE>) ) { 142 $in_bytes += length($line); 145 if ($line =~ 151 @hunk_lines = ($line); 154 push(@lines, $line); 155 $out_bytes += length($line); 160 if ($line =~ /^\+/) { 163 $text = substr($line, 1); 175 } elsif ($line =~ /^\-/) { 177 push(@hunk_lines, $line); [all …]
|
D | get_maintainer.pl | 192 my $line = $_; 194 $line =~ s/\s*\n?$//g; 195 $line =~ s/^\s*//g; 196 $line =~ s/\s+/ /g; 198 next if ($line =~ m/^\s*#/); 199 next if ($line =~ m/^\s*$/); 201 my @words = split(" ", $line); 217 my $line = $_; 219 $line =~ s/\s*\n?$//; 220 $line =~ s/^\s*//; [all …]
|
D | checkkconfigsymbols.py | 248 for line in stdout: 249 if re.findall(r"[URMADC]{1}", line[:2]): 396 for line in lines: 397 if "CONFIG_" not in line: 399 symbols = REGEX_SOURCE_SYMBOL.findall(line) 408 def get_symbols_in_line(line): argument 410 return REGEX_SYMBOL.findall(line) 445 line = lines[i] 446 line = line.strip('\n') 447 line = line.split("#")[0] # ignore comments [all …]
|
D | profile2linkerlist.pl | 14 my $line = $_; 19 unless ($line =~ /unknown/) || ($line =~ /total/);
|
D | faddr2line | 124 while read line; do 125 local fields=($line) 163 while read line; do 164 local fields=($line) 241 echo "$output" | while read -r line 243 echo $line 250 echo "$output" | while read -r line 253 echo $line 254 n=$(echo $line | sed 's/.*:\([0-9]\+\).*/\1/g') 257 f=$(echo $line | sed 's/.*at \(.\+\):.*/\1/g')
|
D | checkstack.pl | 146 while (my $line = <STDIN>) { 147 if ($line =~ m/$funcre/) { 149 next if $line !~ m/^($x*)/; 163 elsif ($line =~ m/(.*):\s*file format/) { 171 elsif ($line =~ m/$re/) { 184 elsif (defined $dre && $line =~ m/$dre/) { 191 my $size = &$sub($line);
|
D | diffconfig | 42 for line in config_file: 43 line = line[:-1] 44 if line[:7] == "CONFIG_": 45 name, val = line[7:].split("=", 1) 47 if line[-11:] == " is not set": 48 d[line[9:-11]] = "n"
|
D | parse-maintainers.pl | 149 my $line = $_; 152 if ($line =~ m/^([A-Z]):\s*(.*)/) { 153 $line = $1 . ":\t" . trim($2) . "\n"; 155 $$hashref{$case} = $$hashref{$case} . $line; 160 $$hashref{$case} = $line; 167 $lastline = $line; 171 $lastline = $line;
|
D | bootgraph.pl | 69 my $line = $_; 70 if ($line =~ /([0-9\.]+)\] calling ([a-zA-Z0-9\_\.]+)\+/) { 79 if ($line =~ /\@ ([0-9]+)/) { 85 if ($line =~ /([0-9\.]+)\] async_waiting @ ([0-9]+)/) { 106 if ($line =~ /([0-9\.]+)\] initcall ([a-zA-Z0-9\_\.]+)\+.*returned/) { 113 if ($line =~ /([0-9\.]+)\] async_continuing @ ([0-9]+)/) { 119 if ($line =~ /Write protecting the/) { 122 if ($line =~ /Freeing unused kernel memory/) {
|
D | decode_stacktrace.sh | 201 code=$(while read -r line; do echo "${line#$basepath/}"; done <<< "$code") 308 while read line; do 310 if [[ $line =~ \[\<([^]]+)\>\] ]] || 311 [[ $line =~ [^+\ ]+\+0x[0-9a-f]+/0x[0-9a-f]+ ]]; then 313 handle_line "$line" 315 elif [[ $line == *Code:* ]]; then 316 decode_code "$line" 318 elif [[ -n $debuginfod && $line =~ PID:\ [0-9]+\ Comm: ]]; then 319 debuginfod_get_vmlinux "$line" 322 echo "$line"
|
/scripts/dtc/ |
D | of_unittest_expect | 249 while ($line = <ARGV>) { 251 chomp $line; 258 $timestamp = $line; 261 ($timestamp, $null) = split(/]/, $line); 269 $line =~ s/^\[\s*[0-9]+\.[0-9]*\] //; 274 if ($line =~ /^\s*$exp_begin/) { 275 $data = $line; 283 printf "%s %s%s%s\n", $prefix, $line_num, $timestamp, $line; 292 if ($line =~ /^\s*$exp_end/) { 293 $data = $line; [all …]
|
D | dt_to_config | 554 my $line; 573 $line = $line . $next_line; 575 $line =~ s/\\$/ /; 578 if ($line =~ /^\s*#/) { 579 $line = ""; 585 if ($line =~ /^([ ]\s*|)else\b/) { 589 $line =~ s/^([ ]\s*|)else\b//; 592 …($null, $ifeq_config, $ifeq_config_val ) = $line =~ /^([ ]\s*|)ifeq\b.*\b(CONFIG_[A-Za-z0-9_]*)(… 593 …($null, $ifneq_config, $ifneq_config_val) = $line =~ /^([ ]\s*|)ifneq\b.*\b(CONFIG_[A-Za-z0-9_]*)… 594 …($null, $ifdef_config) = $line =~ /^([ ]\s*|)ifdef\b.*\b(CONFIG_[A-Za-z0-9_]*)… [all …]
|
/scripts/coccinelle/misc/ |
D | doubleinit.cocci | 40 if int(ps[0].line) < int(pr[0].line) or (int(ps[0].line) == int(pr[0].line) and int(ps[0].column) <… 52 if int(ps[0].line) < int(pr[0].line) or (int(ps[0].line) == int(pr[0].line) and int(ps[0].column) <… 53 msg = "%s: first occurrence line %s, second occurrence line %s" % (fld,ps[0].line,pr[0].line)
|
D | array_size_dup.cocci | 43 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line) 51 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line) 72 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line) 80 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line) 108 msg = "WARNING: array3_size is used later (line %s) to compute the same size" % (p2[0].line) 116 msg = "WARNING: array3_size is used later (line %s) to compute the same size" % (p2[0].line) 138 msg = "WARNING: array3_size is already used (line %s) to compute the same size" % (p1[0].line) 146 msg = "WARNING: array3_size is already used (line %s) to compute the same size" % (p1[0].line) 172 msg = "WARNING: struct_size is used later (line %s) to compute the same size" % (p2[0].line) 180 msg = "WARNING: struct_size is used later (line %s) to compute the same size" % (p2[0].line) [all …]
|
/scripts/coccinelle/free/ |
D | pci_free_consistent.cocci | 43 …free_consistent; pci_alloc_consistent on line %s and return without freeing on line %s" % (p1[0].l… 51 …free_consistent; pci_alloc_consistent on line %s and return without freeing on line %s" % (p1[0].l…
|
/scripts/coccinelle/api/ |
D | kfree_mismatch.cocci | 169 msg = "WARNING kmalloc is used to allocate this memory at line %s" % (a[0].line) 177 msg = "WARNING kmalloc is used to allocate this memory at line %s" % (a[0].line) 185 msg = "WARNING vmalloc is used to allocate this memory at line %s" % (a[0].line) 193 msg = "WARNING vmalloc is used to allocate this memory at line %s" % (a[0].line) 201 msg = "WARNING kvmalloc is used to allocate this memory at line %s" % (a[0].line) 209 msg = "WARNING kvmalloc is used to allocate this memory at line %s" % (a[0].line) 218 msg = "WARNING kmalloc (line %s) && vmalloc (line %s) are used to allocate this memory" % (ka[0].li… 227 msg = "WARNING kmalloc (line %s) && vmalloc (line %s) are used to allocate this memory" % (ka[0].li…
|
/scripts/kconfig/ |
D | streamline_config.pl | 161 my $line; 179 $_ = $line . " " . $_; 184 $line = $_; 274 my ($line, %vars) = @_; 278 while ($line =~ s/^(.*?)(\$\((.*?)\))//) { 290 $process .= $line; 298 my $line = ""; 306 $line .= $1; 310 $line .= $_; 311 $_ = $line; [all …]
|
D | conf.c | 46 static char line[PATH_MAX]; variable 322 line[0] = '\n'; in conf_askvalue() 323 line[1] = 0; in conf_askvalue() 327 line[0] = '\n'; in conf_askvalue() 328 line[1] = 0; in conf_askvalue() 342 xfgets(line, sizeof(line), stdin); in conf_askvalue() 362 switch (line[0]) { in conf_string() 367 if (line[1] == '\n') { in conf_string() 374 line[strlen(line)-1] = 0; in conf_string() 375 def = line; in conf_string() [all …]
|
/scripts/tracing/ |
D | draw_functrace.py | 102 def parseLine(line): argument 103 line = line.strip() 104 if line.startswith("#"): 106 m = re.match("[^]]+?\\] +([a-z.]+) +([0-9.]+): (\\w+) <-(\\w+)", line) 116 for line in sys.stdin: 118 calltime, callee, caller = parseLine(line)
|