/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 | 173 my $line = $_; 175 $line =~ s/\s*\n?$//g; 176 $line =~ s/^\s*//g; 177 $line =~ s/\s+/ /g; 179 next if ($line =~ m/^\s*#/); 180 next if ($line =~ m/^\s*$/); 182 my @words = split(" ", $line); 689 my $line = $_; 691 $line =~ s/\s*\n?$//g; 692 $line =~ s/^\s*//g; [all …]
|
D | headers_check.pl | 29 my $line; 39 while ($line = <$fh>) { 53 if ($line =~ m/^\s*#\s*include\s+<((asm|linux).*)>/) { 71 if ($line =~ m/^void seqbuf_dump\(void\);/) { 75 if ($line =~ m/^extern "C"/) { 78 if ($line =~ m/^(\s*extern|unsigned|char|short|int|long|void)\b/) { 87 if ($line =~ m/[^a-zA-Z0-9_]+CONFIG_([a-zA-Z0-9_]+)[^a-zA-Z0-9_]/) { 103 if ($line =~ m/^\s*#\s*include\s+<asm\/types.h>/) { 132 my $line; 133 while ($line = <$fh>) { [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 | bpf_helpers_doc.py | 17 def __init__(self, line='<line not provided>', reader=None): argument 21 (reader.tell(), line)) 23 BaseException.__init__(self, 'Error parsing line: %s' % line) 73 self.line = '' 91 capture = p.match(self.line) 94 self.line = self.reader.readline() 99 capture = p.match(self.line) 108 self.line = self.reader.readline() 109 if self.line == ' *\n': 113 capture = p.match(self.line) [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 | 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 | 184 my $line = $_; 186 $line =~ s/\s*\n?$//g; 187 $line =~ s/^\s*//g; 188 $line =~ s/\s+/ /g; 190 next if ($line =~ m/^\s*#/); 191 next if ($line =~ m/^\s*$/); 193 my @words = split(" ", $line); 209 my $line = $_; 211 $line =~ s/\s*\n?$//; 212 $line =~ s/^\s*//; [all …]
|
D | checkkconfigsymbols.py | 246 for line in stdout: 247 if re.findall(r"[URMADC]{1}", line[:2]): 394 for line in lines: 395 if "CONFIG_" not in line: 397 symbols = REGEX_SOURCE_SYMBOL.findall(line) 406 def get_symbols_in_line(line): argument 408 return REGEX_SYMBOL.findall(line) 444 line = lines[i] 445 line = line.strip('\n') 446 line = line.split("#")[0] # ignore comments [all …]
|
D | decode_stacktrace.sh | 148 while read line; do 150 if [[ $line =~ \[\<([^]]+)\>\] ]] || 151 [[ $line =~ [^+\ ]+\+0x[0-9a-f]+/0x[0-9a-f]+ ]]; then 153 handle_line "$line" 155 elif [[ $line == *Code:* ]]; then 156 decode_code "$line" 159 echo "$line"
|
D | checkstack.pl | 114 while (my $line = <STDIN>) { 115 if ($line =~ m/$funcre/) { 118 elsif ($line =~ m/(.*):\s*file format/) { 126 elsif ($line =~ m/$re/) { 137 next if $line !~ m/^($xs*)/; 151 elsif (defined $dre && $line =~ m/$dre/) { 154 next if $line !~ m/^($xs*)/;
|
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 | profile2linkerlist.pl | 14 my $line = $_; 19 unless ($line =~ /unknown/) || ($line =~ /total/);
|
D | parse-maintainers.pl | 126 my $line = $_; 129 if ($line =~ m/^([A-Z]):\s*(.*)/) { 130 $line = $1 . ":\t" . trim($2) . "\n"; 132 $$hashref{$case} = $$hashref{$case} . $line; 137 $$hashref{$case} = $line; 144 $lastline = $line; 148 $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 | generate_initcall_order.pl | 52 my ($counter, $line, $symbol) = $_ =~ /^__initcall_(\d+)_(\d+)_(.*)$/; 54 if (!defined($counter) || !defined($line) || !defined($symbol)) { 66 'line' => $line, 104 my ($level, $counter, $line, $function) = $_ =~ 109 !defined($line) || 121 'line' => $line,
|
D | faddr2line | 170 echo "$file_lines" | while read -r line 172 echo $line 179 echo "$file_lines" | while read -r line 182 echo $line 183 n=$(echo $line | sed 's/.*:\([0-9]\+\).*/\1/g') 186 f=$(echo $line | sed 's/.*at \(.\+\):.*/\1/g')
|
D | extract-sys-certs.pl | 32 foreach my $line (@lines) { 33 chomp($line); 34 …if ($line =~ /\s*([0-9]+)\s+(\S+)\s+([0-9a-f]+)\s+([0-9a-f]+)\s+([0-9a-f]+)\s+([0-9a-f]+)\s+2[*][*… 65 foreach my $line (@_) { 66 chomp($line); 67 if ($line =~ /([0-9a-f]+)\s([a-zA-Z])\s(\S+)/
|
/scripts/dtc/ |
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)
|
/scripts/kconfig/ |
D | conf.c | 43 static char line[PATH_MAX]; variable 90 line[0] = '\n'; in conf_askvalue() 91 line[1] = 0; in conf_askvalue() 95 line[0] = '\n'; in conf_askvalue() 96 line[1] = 0; in conf_askvalue() 110 xfgets(line, sizeof(line), stdin); in conf_askvalue() 125 printf("%s", line); in conf_askvalue() 142 switch (line[0]) { in conf_string() 147 if (line[1] == '\n') { in conf_string() 154 line[strlen(line)-1] = 0; in conf_string() [all …]
|
D | streamline_config.pl | 162 my $line; 180 $_ = $line . " " . $_; 185 $line = $_; 274 my ($line, %vars) = @_; 278 while ($line =~ s/^(.*?)(\$\((.*?)\))//) { 290 $process .= $line; 298 my $line = ""; 306 $line .= $1; 310 $line .= $_; 311 $_ = $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/tracing/ |
D | draw_functrace.py | 102 def parseLine(line): argument 103 line = line.strip() 104 if line.startswith("#"): 106 m = re.match("[^]]+?\\] +([0-9.]+): (\\w+) <-(\\w+)", line) 116 for line in sys.stdin: 118 calltime, callee, caller = parseLine(line)
|