Lines Matching +full:1 +full:- +full:255
2 # SPDX-License-Identifier: GPL-2.0-only
33 1) dmesg | perl scripts/bootgraph.pl [OPTION] > output.svg
34 2) perl scripts/bootgraph.pl -h
37 -header Insert kernel version and date
40 if ($std == 1) {
70 if ($line =~ /([0-9\.]+)\] calling ([a-zA-Z0-9\_\.]+)\+/) {
73 $start{$func} = $1;
75 if ($1 < $firsttime) {
76 $firsttime = $1;
79 if ($line =~ /\@ ([0-9]+)/) {
80 $pids{$func} = $1;
82 $count = $count + 1;
85 if ($line =~ /([0-9\.]+)\] async_waiting @ ([0-9]+)/) {
90 $pidctr{$pid} = 1;
92 $pidctr{$pid} = $pidctr{$pid} + 1;
96 $start{$func} = $1;
97 $type{$func} = 1;
98 if ($1 < $firsttime) {
99 $firsttime = $1;
103 $count = $count + 1;
106 if ($line =~ /([0-9\.]+)\] initcall ([a-zA-Z0-9\_\.]+)\+.*returned/) {
108 $end{$2} = $1;
109 $maxtime = $1;
113 if ($line =~ /([0-9\.]+)\] async_continuing @ ([0-9]+)/) {
116 $end{$func} = $1;
117 $maxtime = $1;
120 $done = 1;
123 $done = 1;
129 No data found in the dmesg. Make sure that 'printk.time=1' and
132 help(1);
133 exit 1;
141 my $version = `uname -a`;
150 $styles[0] = "fill:rgb(0,0,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
151 $styles[1] = "fill:rgb(0,255,0);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
152 $styles[2] = "fill:rgb(255,0,20);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
153 $styles[3] = "fill:rgb(255,255,20);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
154 $styles[4] = "fill:rgb(255,0,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
155 $styles[5] = "fill:rgb(0,255,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
156 $styles[6] = "fill:rgb(0,128,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
157 $styles[7] = "fill:rgb(0,255,128);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
158 $styles[8] = "fill:rgb(255,0,128);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
159 $styles[9] = "fill:rgb(255,255,128);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
160 $styles[10] = "fill:rgb(255,128,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
161 $styles[11] = "fill:rgb(128,255,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
163 my $style_wait = "fill:rgb(128,128,128);fill-opacity:0.5;stroke-width:0;stroke:rgb(0,0,0)";
165 my $mult = 1950.0 / ($maxtime - $firsttime);
166 my $threshold2 = ($maxtime - $firsttime) / 120.0;
170 my $rowscount = 1;
174 my $duration = $end{$key} - $start{$key};
182 $rowscount = $rowscount + 1;
184 $s = ($start{$key} - $firsttime) * $mult;
186 $s3 = $s + 1;
187 $e = ($end{$key} - $firsttime) * $mult;
188 $w = $e - $s;
194 $stylecounter = $stylecounter + 1;
199 if ($type{$key} == 1) {
207 print "<text transform=\"translate($s3,$y2) rotate(90)\" font-size=\"3pt\">$key</text>\n";
216 my $step = ($maxtime - $firsttime) / 15;
218 my $s3 = ($time - $firsttime) * $mult;