Read fault when running example network/nfsd-trace.stp stap
Frank Ch. Eigler
fche@redhat.com
Tue May 30 23:01:00 GMT 2017
Yun-Chih Chen <b03902074@ntu.edu.tw> writes:
> [...]
> To speed up the tracing, I ended up printing inode number only and get
> filename from inode number at post-processing stage:
>
> probe kernel.function("nfsd_vfs_read@fs/nfsd/vfs.c") !,
> module("nfsd").function("nfsd_vfs_read@fs/nfsd/vfs.c") ? {
> i = $file->f_inode;
> inode = @cast(i, "struct inode")->i_ino;
> printf("N %d %d %d\n", gettimeofday_ms(), inode);
> }
You can proceed a couple of ways:
- add a try { } catch { }
block around your context-variable expressions
- use stap --suppress-handler-errors
- use stap --skip-badvars
- add explicit checks to the variables: if (i != 0) { ... }
- FChE
More information about the Systemtap
mailing list