/scripts/ |
A D | markup_oops.pl | 48 my ($line) = @_; 97 my ($line, $cntr) = @_; 99 if (length($line) < 40) { 157 my $line = $_; 180 parse_x86_regs($line); 238 my $line = $_; 239 chomp($line); 336 my $line; 338 $line = "*$lines[$i] "; 340 $line = " $lines[$i] "; [all …]
|
A D | checkpatch.pl | 1566 $line = expand_tabs($line); 1718 $line++; 1804 $line++; 1894 my $line; 1903 for ($line = $start; $remain > 0; $line++) { 2027 my $line; 2030 next if (defined($line) && $line =~ /^-/); 2717 my $line; 5463 if ($line =~ /\[\s/ && $line !~ /\[\s*$/) { 5481 if ($line =~ /\(\s/ && $line !~ /\(\s*(?:\\)?$/ && [all …]
|
A D | show_delta | 44 def get_time(line): 45 if line[0]!="[": 49 (time_str, rest) = string.split(line[1:],']',1) 61 def convert_line(line, base_time): 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),)
|
A 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);
|
A D | leaking_addresses.pl | 292 while (my $line = <$fh> ) { 293 if ($line =~ /^$option/) { 375 my ($path, $line) = @_; 379 if ($line =~ '^SigBlk:' or 380 $line =~ '^SigIgn:' or 381 $line =~ '^SigCgt:') { 623 while (my $line = <$fh>) { 627 push @dmesg, $line; 631 cache_path(\%paths, $line); 677 my ($paths, $line) = @_; [all …]
|
A D | bpf_doc.py | 114 self.line = '' 139 capture = p.match(self.line) 158 capture = p.match(self.line) 166 capture = p.match(self.line) 175 if self.line == ' *\n': 201 if self.line == ' *\n': 232 if self.line != ' *\n': 444 print('{}{}'.format('\t\t' if line else '', line)) 449 print('{}{}'.format('\t\t' if line else '', line)) 879 print(' *{}{}'.format(' \t' if line else '', line)) [all …]
|
A D | cleanpatch | 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); 178 } elsif ($line =~ /^ /) { [all …]
|
A D | faddr2line | 159 while read -r line <& "${ADDR2LINE_PROC[0]}"; do 160 …if [[ "$line" == "?? ??:0" ]] || [[ "$line" == "," ]] || [[ $(echo "$line" | ${GREP} "^0x00*: ") ]… 194 while read line; do 195 local fields=($line) 231 while read line; do 232 local fields=($line) 313 echo "$output" | while read -r line 315 echo $line 322 echo "$output" | while read -r line 325 echo $line [all …]
|
A D | get_maintainer.pl | 196 my $line = $_; 199 $line =~ s/^\s*//g; 200 $line =~ s/\s+/ /g; 221 my $line = $_; 224 $line =~ s/^\s*//; 225 $line =~ s/\s+$//; 226 $line =~ s/#.*$//; 368 my $line = $_; 369 chomp $line; 392 push(@self_test_info, {file=>$file, linenr=>$i, line=>$line}); [all …]
|
A D | profile2linkerlist.pl | 14 my $line = $_; 19 unless ($line =~ /unknown/) || ($line =~ /total/);
|
A D | checkkconfigsymbols.py | 248 for line in stdout: 396 for line in lines: 397 if "CONFIG_" not in 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 453 line = REGEX_QUOTES.sub("", line) 458 line = lines[i] [all …]
|
A D | decode_stacktrace.sh | 207 code=$(while read -r line; do echo "${line#$basepath/}"; done <<< "$code") 334 while read line; do 336 line=${line%$'\r'} 339 if [[ $line =~ \[\<([^]]+)\>\] ]] || 340 [[ $line =~ [^+\ ]+\+0x[0-9a-f]+/0x[0-9a-f]+ ]]; then 342 handle_line "$line" 344 elif [[ $line == *Code:* ]]; then 345 decode_code "$line" 347 elif [[ -n $debuginfod && $line =~ PID:\ [0-9]+\ Comm: ]]; then 348 debuginfod_get_vmlinux "$line" [all …]
|
A 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"
|
A 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;
|
A 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/) {
|
/scripts/dtc/ |
A D | of_unittest_expect | 254 while ($line = <ARGV>) { 256 chomp $line; 265 $timestamp = $line; 281 if ($line =~ /^\s*$exp_begin/) { 282 $data = $line; 299 if ($line =~ /^\s*$exp_end/) { 300 $data = $line; 356 $data = $line; 374 $data = $line; 449 if (compare($begin, $line)) { [all …]
|
A D | dt_to_config | 554 my $line; 573 $line = $line . $next_line; 579 $line = ""; 635 $line = ""; 695 $line = ""; 864 my $line; 883 chomp($line); 955 my @line; 959 chomp($line); 962 @line = split /=/, $line; [all …]
|
/scripts/lib/kdoc/ |
A D | kdoc_re.py | 162 def _search(self, regex, line): argument 188 d = line[offset - 1] 198 d = line[pos] 214 def search(self, regex, line): argument 222 for t in self._search(regex, line): 224 yield line[t[0]:t[2]] 245 out += line[cur_pos:start] 248 value = line[end:pos - 1] 257 if line[pos] == ';': 267 l = len(line) [all …]
|
A D | kdoc_parser.py | 1266 if r.match(line): 1281 if self.is_new_section(ln, line) or self.is_comment_end(ln, line): 1321 if self.is_new_section(ln, line) or self.is_comment_end(ln, line): 1361 if self.is_new_section(ln, line) or self.is_comment_end(ln, line): 1476 line = KernRe(r"\/\/.*$", re.S).sub('', line) 1489 if '{' in line or ';' in line or KernRe(r'\s*#\s*define').match(line): 1521 line = KernRe(r"//.*$", re.S).sub('', line).strip() 1522 if not line: 1527 line += ";" 1636 line = line.expandtabs().strip("\n") [all …]
|
/scripts/coccinelle/misc/ |
A 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)
|
A 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/ |
A 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/kconfig/ |
A D | conf.c | 297 line[1] = 0; in conf_askvalue() 302 line[1] = 0; in conf_askvalue() 316 xfgets(line, sizeof(line), stdin); in conf_askvalue() 348 line[strlen(line)-1] = 0; in conf_string() 349 def = line; in conf_string() 387 strip(line); in conf_sym() 393 if (!line[1] || !strcmp(&line[1], "o")) in conf_sym() 405 if (!line[1] || !strcmp(&line[1], "es")) in conf_sym() 435 line[0] = 0; in conf_choice() 474 xfgets(line, sizeof(line), stdin); in conf_choice() [all …]
|
A D | streamline_config.pl | 162 my $line; 180 $_ = $line . " " . $_; 185 $line = $_; 292 $process .= $line; 300 my $line = ""; 308 $line .= $1; 312 $line .= $_; 313 $_ = $line; 314 $line = ""; 429 $_ = $line; [all …]
|
/scripts/coccinelle/api/ |
A 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…
|