History

Merge branch 'linus' into tracing/core

Conflicts: kernel/trace/trace_events_filter.c We use the tracing/core version.

Ingo Molnar committed 17 years ago

Commit 89034bc2 parents fb82ad7 85dfd811029 files · +32045 −16214Browse files

Showing the changes to scripts (6 of 1029 files). Show all

Unified · Split

6 files
  1. scripts/get_maintainer.pl +35 −7
  2. scripts/kconfig/lxdialog/util.c +2 −0
  3. scripts/kconfig/mconf.c +2 −0
  4. scripts/markup_oops.pl +3 −2
  5. scripts/package/builddeb +1 −1
  6. scripts/recordmcount.pl +8 −4
scripts/get_maintainer.pl+35−7
@@ -13,7 +13,7 @@ · 12 unmodified lines
13use strict;13use strict;
14 14
15my $P = $0;15my $P = $0;
16my $V = '0.16';16my $V = '0.17';
17 17
18use Getopt::Long qw(:config no_auto_abbrev);18use Getopt::Long qw(:config no_auto_abbrev);
19 19
@@ -27,6 +27,7 @@ my $email_git = 1; · 7 unmodified lines
27my $email_git_penguin_chiefs = 0;27my $email_git_penguin_chiefs = 0;
28my $email_git_min_signatures = 1;28my $email_git_min_signatures = 1;
29my $email_git_max_maintainers = 5;29my $email_git_max_maintainers = 5;
30my $email_git_min_percent = 5;
30my $email_git_since = "1-year-ago";31my $email_git_since = "1-year-ago";
31my $output_multiline = 1;32my $output_multiline = 1;
32my $output_separator = ", ";33my $output_separator = ", ";
@@ -65,6 +66,7 @@ if (!GetOptions( · 32 unmodified lines
65 'git-chief-penguins!' => \$email_git_penguin_chiefs,66 'git-chief-penguins!' => \$email_git_penguin_chiefs,
66 'git-min-signatures=i' => \$email_git_min_signatures,67 'git-min-signatures=i' => \$email_git_min_signatures,
67 'git-max-maintainers=i' => \$email_git_max_maintainers,68 'git-max-maintainers=i' => \$email_git_max_maintainers,
69 'git-min-percent=i' => \$email_git_min_percent,
68 'git-since=s' => \$email_git_since,70 'git-since=s' => \$email_git_since,
69 'm!' => \$email_maintainer,71 'm!' => \$email_maintainer,
70 'n!' => \$email_usename,72 'n!' => \$email_usename,
@@ -132,6 +134,10 @@ while (<MAINT>) { · 61 unmodified lines
132 $value =~ s@\.@\\\.@g; ##Convert . to \.134 $value =~ s@\.@\\\.@g; ##Convert . to \.
133 $value =~ s/\*/\.\*/g; ##Convert * to .*135 $value =~ s/\*/\.\*/g; ##Convert * to .*
134 $value =~ s/\?/\./g; ##Convert ? to .136 $value =~ s/\?/\./g; ##Convert ? to .
137 ##if pattern is a directory and it lacks a trailing slash, add one
138 if ((-d $value)) {
139 $value =~ s@([^/])$@$1/@;
140 }
135 }141 }
136 push(@typevalue, "$type:$value");142 push(@typevalue, "$type:$value");
137 } elsif (!/^(\s)*$/) {143 } elsif (!/^(\s)*$/) {
@@ -146,8 +152,10 @@ close(MAINT); · 8 unmodified lines
146my @files = ();152my @files = ();
147 153
148foreach my $file (@ARGV) {154foreach my $file (@ARGV) {
149 next if ((-d $file));155 ##if $file is a directory and it lacks a trailing slash, add one
150 if (!(-f $file)) {156 if ((-d $file)) {
157 $file =~ s@([^/])$@$1/@;
158 } elsif (!(-f $file)) {
151 die "$P: file '${file}' not found\n";159 die "$P: file '${file}' not found\n";
152 }160 }
153 if ($from_filename) {161 if ($from_filename) {
@@ -292,7 +300,7 @@ sub file_match_pattern { · 138 unmodified lines
292sub usage {300sub usage {
293 print <<EOT;301 print <<EOT;
294usage: $P [options] patchfile302usage: $P [options] patchfile
295 $P [options] -f file303 $P [options] -f file|directory
296version: $V304version: $V
297 305
298MAINTAINER field selection options:306MAINTAINER field selection options:
@@ -301,6 +309,7 @@ MAINTAINER field selection options: · 2 unmodified lines
301 --git-chief-penguins => include ${penguin_chiefs}309 --git-chief-penguins => include ${penguin_chiefs}
302 --git-min-signatures => number of signatures required (default: 1)310 --git-min-signatures => number of signatures required (default: 1)
303 --git-max-maintainers => maximum maintainers to add (default: 5)311 --git-max-maintainers => maximum maintainers to add (default: 5)
312 --git-min-percent => minimum percentage of commits required (default: 5)
304 --git-since => git history to use (default: 1-year-ago)313 --git-since => git history to use (default: 1-year-ago)
305 --m => include maintainer(s) if any314 --m => include maintainer(s) if any
306 --n => include name 'Full Name <addr\@domain.tld>'315 --n => include name 'Full Name <addr\@domain.tld>'
@@ -322,6 +331,15 @@ Other options: · 15 unmodified lines
322 --version => show version331 --version => show version
323 --help => show this help information332 --help => show this help information
324 333
334Notes:
335 Using "-f directory" may give unexpected results:
336
337 Used with "--git", git signators for _all_ files in and below
338 directory are examined as git recurses directories.
339 Any specified X: (exclude) pattern matches are _not_ ignored.
340 Used with "--nogit", directory is used as a pattern match,
341 no individual file within the directory or subdirectory
342 is matched.
325EOT343EOT
326}344}
327 345
@@ -482,6 +500,7 @@ sub recent_git_signoffs { · 154 unmodified lines
482 my $output = "";500 my $output = "";
483 my $count = 0;501 my $count = 0;
484 my @lines = ();502 my @lines = ();
503 my $total_sign_offs;
485 504
486 if (which("git") eq "") {505 if (which("git") eq "") {
487 warn("$P: git not found. Add --nogit to options?\n");506 warn("$P: git not found. Add --nogit to options?\n");
@@ -505,17 +524,26 @@ sub recent_git_signoffs { · 17 unmodified lines
505 $output =~ s/^\s*//gm;524 $output =~ s/^\s*//gm;
506 525
507 @lines = split("\n", $output);526 @lines = split("\n", $output);
527
528 $total_sign_offs = 0;
529 foreach my $line (@lines) {
530 if ($line =~ m/([0-9]+)\s+(.*)/) {
531 $total_sign_offs += $1;
532 } else {
533 die("$P: Unexpected git output: ${line}\n");
534 }
535 }
536
508 foreach my $line (@lines) {537 foreach my $line (@lines) {
509 if ($line =~ m/([0-9]+)\s+(.*)/) {538 if ($line =~ m/([0-9]+)\s+(.*)/) {
510 my $sign_offs = $1;539 my $sign_offs = $1;
511 $line = $2;540 $line = $2;
512 $count++;541 $count++;
513 if ($sign_offs < $email_git_min_signatures ||542 if ($sign_offs < $email_git_min_signatures ||
514 $count > $email_git_max_maintainers) {543 $count > $email_git_max_maintainers ||
544 $sign_offs * 100 / $total_sign_offs < $email_git_min_percent) {
515 last;545 last;
516 }546 }
517 } else {
518 die("$P: Unexpected git output: ${line}\n");
519 }547 }
520 if ($line =~ m/(.+)<(.+)>/) {548 if ($line =~ m/(.+)<(.+)>/) {
521 my $git_name = $1;549 my $git_name = $1;
scripts/kconfig/lxdialog/util.c+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 */20 */
21 21
22#include <stdarg.h>
23
22#include "dialog.h"24#include "dialog.h"
23 25
24struct dialog_info dlg;26struct dialog_info dlg;
scripts/kconfig/mconf.c+2−0
@@ -888,6 +888,8 @@ int main(int ac, char **av) · 887 unmodified lines
888 single_menu_mode = 1;888 single_menu_mode = 1;
889 }889 }
890 890
891 initscr();
892
891 getyx(stdscr, saved_y, saved_x);893 getyx(stdscr, saved_y, saved_x);
892 if (init_dialog(NULL)) {894 if (init_dialog(NULL)) {
893 fprintf(stderr, N_("Your display is too small to run Menuconfig!\n"));895 fprintf(stderr, N_("Your display is too small to run Menuconfig!\n"));
scripts/markup_oops.pl+3−2
@@ -1,6 +1,7 @@
1#!/usr/bin/perl1#!/usr/bin/perl
2 2
3use File::Basename;3use File::Basename;
4use Math::BigInt;
4 5
5# Copyright 2008, Intel Corporation6# Copyright 2008, Intel Corporation
6#7#
@@ -172,8 +173,8 @@ while (<STDIN>) { · 165 unmodified lines
172 parse_x86_regs($line);173 parse_x86_regs($line);
173}174}
174 175
175my $decodestart = hex($target) - hex($func_offset);176my $decodestart = Math::BigInt->from_hex("0x$target") - Math::BigInt->from_hex("0x$func_offset");
176my $decodestop = hex($target) + 8192;177my $decodestop = Math::BigInt->from_hex("0x$target") + 8192;
177if ($target eq "0") {178if ($target eq "0") {
178 print "No oops found!\n";179 print "No oops found!\n";
179 print "Usage: \n";180 print "Usage: \n";
scripts/package/builddeb+1−1
@@ -89,7 +89,7 @@ for script in postinst postrm preinst prerm ; do · 88 unmodified lines
89set -e89set -e
90 90
91# Pass maintainer script parameters to hook scripts91# Pass maintainer script parameters to hook scripts
92export DEB_MAINT_PARAMS="\$@"92export DEB_MAINT_PARAMS="\$*"
93 93
94test -d $debhookdir/$script.d && run-parts --arg="$version" $debhookdir/$script.d94test -d $debhookdir/$script.d && run-parts --arg="$version" $debhookdir/$script.d
95exit 095exit 0
scripts/recordmcount.pl+8−4
@@ -392,7 +392,7 @@ while (<IN>) { · 391 unmodified lines
392 $read_function = 0;392 $read_function = 0;
393 }393 }
394 # print out any recorded offsets394 # print out any recorded offsets
395 update_funcs() if ($text_found);395 update_funcs() if (defined($ref_func));
396 396
397 # reset all markers and arrays397 # reset all markers and arrays
398 $text_found = 0;398 $text_found = 0;
@@ -402,7 +402,6 @@ while (<IN>) { · 3 unmodified lines
402 # section found, now is this a start of a function?402 # section found, now is this a start of a function?
403 } elsif ($read_function && /$function_regex/) {403 } elsif ($read_function && /$function_regex/) {
404 $text_found = 1;404 $text_found = 1;
405 $offset = hex $1;
406 $text = $2;405 $text = $2;
407 406
408 # if this is either a local function or a weak function407 # if this is either a local function or a weak function
@@ -411,10 +410,15 @@ while (<IN>) { · 2 unmodified lines
411 if (!defined($locals{$text}) && !defined($weak{$text})) {410 if (!defined($locals{$text}) && !defined($weak{$text})) {
412 $ref_func = $text;411 $ref_func = $text;
413 $read_function = 0;412 $read_function = 0;
413 $offset = hex $1;
414 } else {414 } else {
415 # if we already have a function, and this is weak, skip it415 # if we already have a function, and this is weak, skip it
416 if (!defined($ref_func) || !defined($weak{$text})) {416 if (!defined($ref_func) && !defined($weak{$text}) &&
417 # PPC64 can have symbols that start with .L and
418 # gcc considers these special. Don't use them!
419 $text !~ /^\.L/) {
417 $ref_func = $text;420 $ref_func = $text;
421 $offset = hex $1;
418 }422 }
419 }423 }
420 } elsif ($read_headers && /$mcount_section/) {424 } elsif ($read_headers && /$mcount_section/) {
@@ -439,7 +443,7 @@ while (<IN>) { · 18 unmodified lines
439}443}
440 444
441# dump out anymore offsets that may have been found445# dump out anymore offsets that may have been found
442update_funcs() if ($text_found);446update_funcs() if (defined($ref_func));
443 447
444# If we did not find any mcount callers, we are done (do nothing).448# If we did not find any mcount callers, we are done (do nothing).
445if (!$opened) {449if (!$opened) {