Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/system/irq | ||
|---|---|---|
| 114 | 114 |
'sirq' => 'Software interrupts' |
| 115 | 115 |
}; |
| 116 | 116 |
|
| 117 |
my $irq_descriptions =
|
|
| 117 |
my $irq_descriptions = |
|
| 118 | 118 |
{
|
| 119 | 119 |
'HI' => 'High priority tasklets', |
| 120 | 120 |
'TIMER' => 'Timer bottom half', |
| ... | ... | |
| 127 | 127 |
# ----------------- main ---------------- |
| 128 | 128 |
need_multigraph(); |
| 129 | 129 |
# -- autoconf -- |
| 130 |
if (defined($ARGV[0]) and ($ARGV[0] eq 'autoconf'))
|
|
| 130 |
if (defined($ARGV[0]) and ($ARGV[0] eq 'autoconf')) |
|
| 131 | 131 |
{
|
| 132 | 132 |
printf("%s\n", (-e "/proc/interrupts" and -e "/proc/softirqs") ? "yes" : "no (stats not exists)");
|
| 133 | 133 |
exit (0); |
| ... | ... | |
| 309 | 309 |
$gr->{'irq'}{'fields'}{$down_field_name}{'type'} = $fields->{'irq_sirq'}{'type'};
|
| 310 | 310 |
$gr->{'irq'}{'fields'}{$up_field_name}{'draw'} = $fields->{'irq_sirq'}{'draw'};
|
| 311 | 311 |
$gr->{'irq'}{'fields'}{$down_field_name}{'draw'} = $fields->{'irq_sirq'}{'draw'};
|
| 312 |
|
|
| 312 |
|
|
| 313 | 313 |
$gr->{'irq'}{'fields'}{$up_field_name}{'label'} = replace($fields->{'irq_sirq'}{'label'}, ':cpu:', $i);
|
| 314 | 314 |
$gr->{'irq'}{'fields'}{$up_field_name}{'info'} = replace($fields->{'irq_sirq'}{'info'} , ':cpu:', $i);
|
| 315 | 315 |
$gr->{'irq'}{'fields'}{$down_field_name}{'label'} = 'NaN';
|
| 316 | 316 |
$gr->{'irq'}{'fields'}{$down_field_name}{'info'} = 'NaN';
|
| 317 |
|
|
| 317 |
|
|
| 318 | 318 |
$gr->{'irq'}{'fields'}{$up_field_name}{'negative'} = $down_field_name;
|
| 319 | 319 |
$gr->{'irq'}{'fields'}{$down_field_name}{'graph'} = 'no';
|
| 320 |
|
|
| 320 |
|
|
| 321 | 321 |
# --- child graphs --- |
| 322 | 322 |
for my $irq_type (qw(irq sirq)) |
| 323 | 323 |
{
|
| ... | ... | |
| 335 | 335 |
my @irq_names = keys %{$IRQi->{'stat'}{$irq_type}{$i}};
|
| 336 | 336 |
# names split for better sorting |
| 337 | 337 |
for my $irq_name (( |
| 338 |
(sort {int $a <=> int $b} grep{/^\d/} @irq_names),
|
|
| 338 |
(sort {int $a <=> int $b} grep{/^\d/} @irq_names),
|
|
| 339 | 339 |
(sort grep{!/(^\d|ERR|MIS)/} @irq_names),
|
| 340 | 340 |
(sort grep{/(ERR|MIS)/ } @irq_names)
|
| 341 | 341 |
)) |
| ... | ... | |
| 347 | 347 |
{
|
| 348 | 348 |
$gr->{$graph_name}{'fields'}{$field_name}{$fo} = replace($fields->{'irq'}{$fo}, ':irq:', $irq_name);
|
| 349 | 349 |
$gr->{$graph_name}{'fields'}{$field_name}{$fo} = replace($gr->{$graph_name}{'fields'}{$field_name}{$fo},
|
| 350 |
':irqinfo:',
|
|
| 350 |
':irqinfo:', |
|
| 351 | 351 |
exists($IRQi->{'description'}{$irq_type}{$irq_name}) ?
|
| 352 | 352 |
$IRQi->{'description'}{$irq_type}{$irq_name} :
|
| 353 | 353 |
''); |
Formats disponibles : Unified diff