Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
nfsdtop: Fix for kernel since 5.15
Linux 54357f0c9149 ("tracing: Add migrate-disabled counter to tracing
output") added a new counter to the tracing output. Fix expected format.
  • Loading branch information
donald committed Jan 27, 2023
1 parent 8a2c5a7 commit 6fc74cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nfsdtop/nfsdtop
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 6fc74cd

Please sign in to comment.