| 1 |
#! /usr/bin/env stap |
| 2 |
|
| 3 |
// Copyright (c) 2017 Red Hat Inc. |
| 4 |
// |
| 5 |
// This file is part of systemtap, and is free software. You can |
| 6 |
// redistribute it and/or modify it under the terms of the GNU General |
| 7 |
// Public License (GPL); either version 2, or (at your option) any |
| 8 |
// later version. |
| 9 |
|
| 10 |
|
| 11 |
probe nfsd.proc.entries { |
| 12 |
printf("%s %s %s %s ", tz_ctime(gettimeofday_s()), client_ip, name, argstr); |
| 13 |
filename .= "" // ensure this var exists for all nfsd probes |
| 14 |
if (fh) |
| 15 |
printf("%s%s%s", |
| 16 |
task_dentry_path(task_current(), |
| 17 |
fh->fh_dentry, |
| 18 |
fh->fh_export->ex_path->mnt), |
| 19 |
(filename == "") ? "" : "/", |
| 20 |
filename) |
| 21 |
printf("\n") |
| 22 |
} |