# Copyright 2008, Intel Corporation # # This file is part of the Linux kernel # # Authors: # Arjan van de Ven <arjan@linux.intel.com>
# # This script turns a dmesg output into a SVG graphic that shows which # functions take how much time. You can view SVG graphics with various # programs, including Inkscape, The Gimp and Firefox. # # # For this script to work, the kernel needs to be compiled with the # CONFIG_PRINTK_TIME configuration option enabled, and with # "initcall_debug" passed on the kernel command line. # # usage: # dmesg | perl scripts/bootgraph.pl > output.svg #
use strict;
use Getopt::Long;
my $header = 0;
sub help {
my $text = << "EOM";
Usage:
1) dmesg | perl scripts/bootgraph.pl [OPTION] > output.svg
2) perl scripts/bootgraph.pl -h
Options:
-header Insert kernel version and date
EOM
my $std=shift; if ($std == 1) {
print STDERR $text;
} else {
print $text;
}
exit;
}
if ($count == 0) {
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. END
help(1);
exit 1;
}
print "1.0\" standalone=\"no\"?> \n";
print "\n";
¤ Dauer der Verarbeitung: 0.27 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.