Merge commit 'v2.6.33' into tracing/core
Conflicts: scripts/recordmcount.pl Merge reason: Merge up to v2.6.33. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -219,8 +219,13 @@ for F in $1; do \
|
||||
fsize=$$(stat -c "%s" $$F); \
|
||||
dec_size=$$(expr $$dec_size + $$fsize); \
|
||||
done; \
|
||||
printf "%08x" $$dec_size | \
|
||||
sed 's/\(..\)\(..\)\(..\)\(..\)/\\\\x\4\\\\x\3\\\\x\2\\\\x\1/g' \
|
||||
printf "%08x\n" $$dec_size | \
|
||||
sed 's/\(..\)/\1 /g' | { \
|
||||
read ch0 ch1 ch2 ch3; \
|
||||
for ch in $$ch3 $$ch2 $$ch1 $$ch0; do \
|
||||
printf '%s%03o' '\\' $$((0x$$ch)); \
|
||||
done; \
|
||||
} \
|
||||
)
|
||||
|
||||
quiet_cmd_bzip2 = BZIP2 $@
|
||||
@@ -235,3 +240,8 @@ quiet_cmd_lzma = LZMA $@
|
||||
cmd_lzma = (cat $(filter-out FORCE,$^) | \
|
||||
lzma -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
|
||||
(rm -f $@ ; false)
|
||||
|
||||
quiet_cmd_lzo = LZO $@
|
||||
cmd_lzo = (cat $(filter-out FORCE,$^) | \
|
||||
lzop -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
|
||||
(rm -f $@ ; false)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/perl -w
|
||||
# (c) 2001, Dave Jones. <davej@redhat.com> (the file handling bit)
|
||||
# (c) 2001, Dave Jones. (the file handling bit)
|
||||
# (c) 2005, Joel Schopp <jschopp@austin.ibm.com> (the ugly bit)
|
||||
# (c) 2007,2008, Andy Whitcroft <apw@uk.ibm.com> (new conditions, test suite)
|
||||
# (c) 2008,2009, Andy Whitcroft <apw@canonical.com>
|
||||
|
@@ -74,8 +74,8 @@ my %VCS_cmds;
|
||||
my %VCS_cmds_git = (
|
||||
"execute_cmd" => \&git_execute_cmd,
|
||||
"available" => '(which("git") ne "") && (-d ".git")',
|
||||
"find_signers_cmd" => "git log --since=\$email_git_since -- \$file",
|
||||
"find_commit_signers_cmd" => "git log -1 \$commit",
|
||||
"find_signers_cmd" => "git log --no-color --since=\$email_git_since -- \$file",
|
||||
"find_commit_signers_cmd" => "git log --no-color -1 \$commit",
|
||||
"blame_range_cmd" => "git blame -l -L \$diff_start,+\$diff_length \$file",
|
||||
"blame_file_cmd" => "git blame -l \$file",
|
||||
"commit_pattern" => "^commit [0-9a-f]{40,40}",
|
||||
@@ -296,46 +296,56 @@ my @status = ();
|
||||
|
||||
foreach my $file (@files) {
|
||||
|
||||
#Do not match excluded file patterns
|
||||
my %hash;
|
||||
my $tvi = find_first_section();
|
||||
while ($tvi < @typevalue) {
|
||||
my $start = find_starting_index($tvi);
|
||||
my $end = find_ending_index($tvi);
|
||||
my $exclude = 0;
|
||||
my $i;
|
||||
|
||||
my $exclude = 0;
|
||||
foreach my $line (@typevalue) {
|
||||
if ($line =~ m/^(\C):\s*(.*)/) {
|
||||
my $type = $1;
|
||||
my $value = $2;
|
||||
if ($type eq 'X') {
|
||||
if (file_match_pattern($file, $value)) {
|
||||
$exclude = 1;
|
||||
last;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#Do not match excluded file patterns
|
||||
|
||||
if (!$exclude) {
|
||||
my $tvi = 0;
|
||||
my %hash;
|
||||
foreach my $line (@typevalue) {
|
||||
for ($i = $start; $i < $end; $i++) {
|
||||
my $line = $typevalue[$i];
|
||||
if ($line =~ m/^(\C):\s*(.*)/) {
|
||||
my $type = $1;
|
||||
my $value = $2;
|
||||
if ($type eq 'F') {
|
||||
if ($type eq 'X') {
|
||||
if (file_match_pattern($file, $value)) {
|
||||
my $value_pd = ($value =~ tr@/@@);
|
||||
my $file_pd = ($file =~ tr@/@@);
|
||||
$value_pd++ if (substr($value,-1,1) ne "/");
|
||||
if ($pattern_depth == 0 ||
|
||||
(($file_pd - $value_pd) < $pattern_depth)) {
|
||||
$hash{$tvi} = $value_pd;
|
||||
$exclude = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$exclude) {
|
||||
for ($i = $start; $i < $end; $i++) {
|
||||
my $line = $typevalue[$i];
|
||||
if ($line =~ m/^(\C):\s*(.*)/) {
|
||||
my $type = $1;
|
||||
my $value = $2;
|
||||
if ($type eq 'F') {
|
||||
if (file_match_pattern($file, $value)) {
|
||||
my $value_pd = ($value =~ tr@/@@);
|
||||
my $file_pd = ($file =~ tr@/@@);
|
||||
$value_pd++ if (substr($value,-1,1) ne "/");
|
||||
if ($pattern_depth == 0 ||
|
||||
(($file_pd - $value_pd) < $pattern_depth)) {
|
||||
$hash{$tvi} = $value_pd;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$tvi++;
|
||||
}
|
||||
foreach my $line (sort {$hash{$b} <=> $hash{$a}} keys %hash) {
|
||||
add_categories($line);
|
||||
}
|
||||
|
||||
$tvi += ($end - $start);
|
||||
|
||||
}
|
||||
|
||||
foreach my $line (sort {$hash{$b} <=> $hash{$a}} keys %hash) {
|
||||
add_categories($line);
|
||||
}
|
||||
|
||||
if ($email && $email_git) {
|
||||
@@ -570,6 +580,20 @@ sub format_email {
|
||||
return $formatted_email;
|
||||
}
|
||||
|
||||
sub find_first_section {
|
||||
my $index = 0;
|
||||
|
||||
while ($index < @typevalue) {
|
||||
my $tv = $typevalue[$index];
|
||||
if (($tv =~ m/^(\C):\s*(.*)/)) {
|
||||
last;
|
||||
}
|
||||
$index++;
|
||||
}
|
||||
|
||||
return $index;
|
||||
}
|
||||
|
||||
sub find_starting_index {
|
||||
my ($index) = @_;
|
||||
|
||||
|
@@ -154,11 +154,11 @@ while (<STDIN>) {
|
||||
if ($line =~ /RIP: 0010:\[\<([a-z0-9]+)\>\]/) {
|
||||
$target = $1;
|
||||
}
|
||||
if ($line =~ /EIP is at ([a-zA-Z0-9\_]+)\+(0x[0-9a-f]+)\/0x[a-f0-9]/) {
|
||||
if ($line =~ /EIP is at ([a-zA-Z0-9\_]+)\+0x([0-9a-f]+)\/0x[a-f0-9]/) {
|
||||
$function = $1;
|
||||
$func_offset = $2;
|
||||
}
|
||||
if ($line =~ /RIP: 0010:\[\<[0-9a-f]+\>\] \[\<[0-9a-f]+\>\] ([a-zA-Z0-9\_]+)\+(0x[0-9a-f]+)\/0x[a-f0-9]/) {
|
||||
if ($line =~ /RIP: 0010:\[\<[0-9a-f]+\>\] \[\<[0-9a-f]+\>\] ([a-zA-Z0-9\_]+)\+0x([0-9a-f]+)\/0x[a-f0-9]/) {
|
||||
$function = $1;
|
||||
$func_offset = $2;
|
||||
}
|
||||
|
@@ -804,7 +804,7 @@ static inline int sym_is(const char *symbol, const char *name)
|
||||
match = strstr(symbol, name);
|
||||
if (!match)
|
||||
return 0;
|
||||
return match[strlen(symbol)] == '\0';
|
||||
return match[strlen(name)] == '\0';
|
||||
}
|
||||
|
||||
static void do_table(void *symval, unsigned long size,
|
||||
|
@@ -195,8 +195,12 @@ sub check_objcopy
|
||||
}
|
||||
}
|
||||
|
||||
if ($arch eq 'x86') {
|
||||
$arch = ($bits == 64) ? 'x86_64' : 'i386';
|
||||
if ($arch =~ /(x86(_64)?)|(i386)/) {
|
||||
if ($bits == 64) {
|
||||
$arch = "x86_64";
|
||||
} else {
|
||||
$arch = "i386";
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user