Skip to:
Kernel version 5 is already on some customers and the new amount of lines is 20.
At least this piece of code should be reviewed and changed:
sub parse_diskstats_line { my ( $self, $line, $block_size ) = @_; # linux kernel source => Documentation/iostats.txt # 2.6+ => 14 fields # 4.18+ => 18 fields my @dev_stats = split ' ', $line; return unless @dev_stats == 14 or @dev_stats == 18;
moved this to Pending release as this is already merged
Pull request: PT-1887: Fixed pt-diskstats to work on 5.x kernels
pt-diskstats
FWIW, this bug makes pt-diskstats to simply hang on my Fedora 34 system (running Linux 5.15.4).
Hi David,
Thank you for the report.
Kernel version 5 is already on some customers and the new amount of lines is 20.
At least this piece of code should be reviewed and changed:
sub parse_diskstats_line { my ( $self, $line, $block_size ) = @_; # linux kernel source => Documentation/iostats.txt # 2.6+ => 14 fields # 4.18+ => 18 fields my @dev_stats = split ' ', $line; return unless @dev_stats == 14 or @dev_stats == 18;