Skip to content

Commit

Permalink
Merge pull request #304 from mariux64/fix-nfsdtop-5.15
Browse files Browse the repository at this point in the history
nfsdtop: Fix for kernel since 5.15
  • Loading branch information
donald authored Jan 27, 2023
2 parents da10da9 + 6fc74cd commit df5ee79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nfsdtop/nfsdtop
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ sub analyze_trace {
open my $p,'<','/sys/kernel/debug/tracing/instances/nfsdtop/trace' or die "/sys/kernel/debug/tracing/instances/nfsdtop/trace: $!\n";
while (<$p>) {
/^#/ and next;
my ($taskpid,$cpu,$flags,$time,$op,$addr,$uid,$rest) = /^\s*(\S+)\s+\[(\d+)\]\s+(....)\s+(\d+\.\d*):\s*nfsd4_(\S+): ip=0x(........) uid=(\d+)\s*(.*)/ or die "format: $_";
my ($taskpid,$cpu,$flags,$time,$op,$addr,$uid,$rest) = /^\s*(\S+)\s+\[(\d+)\]\s+(.....?)\s+(\d+\.\d*):\s*nfsd4_(\S+): ip=0x(........) uid=(\d+)\s*(.*)/ or die "format: $_";
my $u32=
my $ip=hostname_by_u32(hex($addr));
my $user=getuser($uid);
Expand Down

0 comments on commit df5ee79

Please sign in to comment.