Skip to content
Snippets Groups Projects
Select Git revision
  • f1f0f330b1d0ac1bcc38d7c84d439f4fde341a9c
  • master default
  • b4/thermal-rockchip-grf-warning
  • rockchip-devel
  • b4/usbc-for-rock5bp
  • b4/arm64-defconfig
  • b4/sige5-network-phy-clock
  • b4/fusb302-unthreaded-irq
  • radxa-v6.1-vendor-kernel
  • b4/phy-realtek-clock-fix
  • b4/rk3576-rock4d-phy-timings
  • b4/dw-wdt-fix-initial-timeout
  • b4/fusb302-race-condition-fix
  • b4/rk3576-rock4d-phy-handling-fixes
  • b4/rk3588-evb1-hdmi-rx
  • b4/rk3576-fix-fspi-pmdomain
  • b4/rock5bp-for-upstream
  • rk3588-test
  • rk3588-test-vendor-cam
  • lf-6.6.y_6.6.23-2.0.0_var01-panfrost
  • rk3588-linked-clk-gate-for-upstream
  • v5.17
  • v5.17-rc8
  • v5.17-rc7
  • v5.17-rc6
  • v5.17-rc5
  • v5.17-rc4
  • v5.17-rc3
  • v5.17-rc2
  • v5.17-rc1
  • v5.16
  • v5.16-rc8
  • v5.16-rc7
  • v5.16-rc6
  • v5.16-rc5
  • v5.16-rc4
  • v5.16-rc3
  • v5.16-rc2
  • v5.16-rc1
  • v5.15
  • v5.15-rc7
41 results

bootgraph.pl

Blame
  • bootgraph.pl 6.28 KiB
    #!/usr/bin/env perl
    
    # Copyright 2008, Intel Corporation
    #
    # This file is part of the Linux kernel
    #
    # This program file is free software; you can redistribute it and/or modify it
    # under the terms of the GNU General Public License as published by the
    # Free Software Foundation; version 2 of the License.
    #
    # This program is distributed in the hope that it will be useful, but WITHOUT
    # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    # for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with this program in a file named COPYING; if not, write to the
    # Free Software Foundation, Inc.,
    # 51 Franklin Street, Fifth Floor,
    # Boston, MA 02110-1301 USA
    #
    # 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;
    }
    
    GetOptions(
    	'h|help'	=>\&help,
    	'header'	=>\$header
    );
    
    my %start;
    my %end;
    my %type;
    my $done = 0;