Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121117
b: refs/heads/master
c: c91add5
h: refs/heads/master
i:
  121115: 8b84ee2
v: v3
  • Loading branch information
Ingo Molnar committed Nov 16, 2008
1 parent 50eb734 commit be991d5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 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: b3535c6390f27d04273e4eee0bc687f171fbf5f4
refs/heads/master: c91add5fa68ea9b1f2923b3788c5dae0e60e1f6b
6 changes: 6 additions & 0 deletions trunk/kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,12 @@ int ring_buffer_resize(struct ring_buffer *buffer, unsigned long size)
LIST_HEAD(pages);
int i, cpu;

/*
* Always succeed at resizing a non-existent buffer:
*/
if (!buffer)
return size;

size = DIV_ROUND_UP(size, BUF_PAGE_SIZE);
size *= BUF_PAGE_SIZE;
buffer_size = buffer->pages * BUF_PAGE_SIZE;
Expand Down
12 changes: 7 additions & 5 deletions trunk/scripts/bootgraph.pl
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,13 @@
}

if ($count == 0) {
print "No data found in the dmesg. Make sure that 'printk.time=1' and\n";
print "'initcall_debug' are passed on the kernel command line.\n\n";
print "Usage: \n";
print " dmesg | perl scripts/bootgraph.pl > output.svg\n\n";
exit;
print STDERR <<END;
No data found in the dmesg. Make sure that 'printk.time=1' and
'initcall_debug' are passed on the kernel command line.
Usage:
dmesg | perl scripts/bootgraph.pl > output.svg
END
exit 1;
}

print "<?xml version=\"1.0\" standalone=\"no\"?> \n";
Expand Down

0 comments on commit be991d5

Please sign in to comment.