Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29752
b: refs/heads/master
c: 8ad2914
h: refs/heads/master
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Jun 25, 2006
1 parent c25f94e commit af570e4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ec3e4b7aefbb8613b27ec4449fa8f9916ab9099
refs/heads/master: 8ad2914d9cc55be651ef3bd676981a72c9001a47
14 changes: 12 additions & 2 deletions trunk/scripts/checkstack.pl
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,21 @@ ($)
#
my $funcre = qr/^$x* <(.*)>:$/;
my $func;
my $file, $lastslash;

while (my $line = <STDIN>) {
if ($line =~ m/$funcre/) {
$func = $1;
}
if ($line =~ m/$re/) {
elsif ($line =~ m/(.*):\s*file format/) {
$file = $1;
$file =~ s/\.ko//;
$lastslash = rindex($file, "/");
if ($lastslash != -1) {
$file = substr($file, $lastslash + 1);
}
}
elsif ($line =~ m/$re/) {
my $size = $1;
$size = hex($size) if ($size =~ /^0x/);

Expand All @@ -109,7 +119,7 @@ ($)
$addr =~ s/ /0/g;
$addr = "0x$addr";

my $intro = "$addr $func:";
my $intro = "$addr $func [$file]:";
my $padlen = 56 - length($intro);
while ($padlen > 0) {
$intro .= ' ';
Expand Down

0 comments on commit af570e4

Please sign in to comment.