| 1 |
#! stap -p4 |
| 2 |
|
| 3 |
|
| 4 |
probe nfs.proc.lookup { |
| 5 |
printf("%s(%s)\n", name, argstr) |
| 6 |
printf("%s %d %d %d\n", server_ip, prot, version, name_len) |
| 7 |
printf("%d %d\n", bitmask0, bitmask1) |
| 8 |
} |
| 9 |
probe nfs.proc.lookup.return { |
| 10 |
printf("%d: %s(%s)\n", version, name, retstr) |
| 11 |
} |
| 12 |
|
| 13 |
probe nfs.proc.read ? { |
| 14 |
printf("%s(%s)\n", name, argstr) |
| 15 |
printf("%s %d %d %d %d %s\n", server_ip, prot, version, flags, |
| 16 |
size, units) |
| 17 |
} |
| 18 |
probe nfs.proc.read.return ? { |
| 19 |
printf("%d: %s(%s)\n", version, name, retstr) |
| 20 |
} |
| 21 |
|
| 22 |
probe nfs.proc.write ? { |
| 23 |
printf("%s(%s)\n", name, argstr) |
| 24 |
printf("%s %d %d %d %d %s\n", server_ip, prot, version, flags, |
| 25 |
size, units) |
| 26 |
printf("%d %d\n", bitmask0, bitmask1) |
| 27 |
} |
| 28 |
probe nfs.proc.write.return ? { |
| 29 |
printf("%d: %s(%s)\n", version, name, retstr) |
| 30 |
printf("%d %s\n", size, units) |
| 31 |
} |
| 32 |
|
| 33 |
probe nfs.proc.commit ? { |
| 34 |
printf("%s(%s)\n", name, argstr) |
| 35 |
printf("%s %d %d %d %s\n", server_ip, prot, version, size, units) |
| 36 |
printf("%d %d\n", bitmask0, bitmask1) |
| 37 |
} |
| 38 |
probe nfs.proc.commit.return ? { |
| 39 |
printf("%d: %s(%s)\n", version, name, retstr) |
| 40 |
printf("%d %s\n", size, units) |
| 41 |
} |
| 42 |
|
| 43 |
|
| 44 |
probe nfs.proc.read_setup { |
| 45 |
printf("%s(%s)\n", name, argstr) |
| 46 |
printf("%d %s %d %d %d %s\n", client, server_ip, prot, |
| 47 |
version, size, units) |
| 48 |
} |
| 49 |
probe nfs.proc.read_setup.return { |
| 50 |
printf("%d: %s(%d)\n", version, name, retvalue) |
| 51 |
} |
| 52 |
|
| 53 |
probe nfs.proc.read_done { |
| 54 |
printf("%s(%s)\n", name, argstr) |
| 55 |
printf("%s %d %d %d\n", server_ip, prot, count, version) |
| 56 |
printf("%d\n", timestamp) |
| 57 |
} |
| 58 |
probe nfs.proc.read_done.return { |
| 59 |
printf("%d: %s(%s)\n", version, name, retstr) |
| 60 |
} |
| 61 |
|
| 62 |
probe nfs.proc.write_setup { |
| 63 |
printf("%s(%s)\n", name, argstr) |
| 64 |
printf("%d %s %d %d %d %s\n", client, server_ip, prot, |
| 65 |
version, size, units) |
| 66 |
printf("%d %d %d\n", how, bitmask0, bitmask1) |
| 67 |
} |
| 68 |
probe nfs.proc.write_setup.return { |
| 69 |
printf("%d: %s(%d)\n", version, name, retvalue) |
| 70 |
} |
| 71 |
|
| 72 |
probe nfs.proc.write_done { |
| 73 |
printf("%s(%s)\n", name, argstr) |
| 74 |
printf("%s %d %d %d %d\n", server_ip, prot, count, valid, version) |
| 75 |
printf("%d\n", timestamp) |
| 76 |
} |
| 77 |
probe nfs.proc.write_done.return { |
| 78 |
printf("%d: %s(%s)\n", version, name, retstr) |
| 79 |
} |
| 80 |
|
| 81 |
probe nfs.proc.commit_setup { |
| 82 |
printf("%s(%s)\n", name, argstr) |
| 83 |
printf("%d %s %d %d %d %s\n", client, server_ip, prot, |
| 84 |
version, size, units) |
| 85 |
printf("%d %d\n", bitmask0, bitmask1) |
| 86 |
} |
| 87 |
probe nfs.proc.commit_setup.return { |
| 88 |
printf("%d: %s(%d)\n", version, name, retvalue) |
| 89 |
} |
| 90 |
|
| 91 |
probe nfs.proc.commit_done { |
| 92 |
printf("%s(%s)\n", name, argstr) |
| 93 |
printf("%s %d %d %d %d\n", server_ip, prot, count, valid, version) |
| 94 |
printf("%d\n", timestamp) |
| 95 |
} |
| 96 |
probe nfs.proc.commit_done.return { |
| 97 |
printf("%d: %s(%s)\n", version, name, retstr) |
| 98 |
} |
| 99 |
|
| 100 |
probe nfs.proc.rename_setup { |
| 101 |
printf("%s(%s)\n", name, argstr) |
| 102 |
printf("%d %s %d %d\n", client, server_ip, prot, |
| 103 |
version) |
| 104 |
printf("%d\n", fh) |
| 105 |
} |
| 106 |
probe nfs.proc.rename_setup.return { |
| 107 |
printf("%d: %s(%d)\n", version, name, retvalue) |
| 108 |
} |
| 109 |
|
| 110 |
probe nfs.proc.rename_done { |
| 111 |
printf("%s(%s)\n", name, argstr) |
| 112 |
printf("%s %d %d\n", server_ip, prot, version) |
| 113 |
printf("%d %d\n", timestamp, status) |
| 114 |
printf("%d %d\n", old_fh, new_fh) |
| 115 |
} |
| 116 |
probe nfs.proc.rename_done.return { |
| 117 |
printf("%d: %s(%s)\n", version, name, retstr) |
| 118 |
} |
| 119 |
|
| 120 |
probe nfs.proc.open { |
| 121 |
printf("%s(%s)\n", name, argstr) |
| 122 |
printf("%s %d %d\n", server_ip, prot, version) |
| 123 |
} |
| 124 |
probe nfs.proc.open.return { |
| 125 |
printf("%s(%s)\n", name, retstr) |
| 126 |
} |
| 127 |
|
| 128 |
probe nfs.proc.release ? { |
| 129 |
printf("%s(%s)\n", name, argstr) |
| 130 |
printf("%s %d %d\n", server_ip, prot, version) |
| 131 |
} |
| 132 |
probe nfs.proc.release.return ? { |
| 133 |
printf("%s(%s)\n", name, retstr) |
| 134 |
} |
| 135 |
|
| 136 |
probe nfs.proc.handle_exception { |
| 137 |
printf("%s(%s)\n", name, argstr) |
| 138 |
printf("%d\n", version) |
| 139 |
} |
| 140 |
probe nfs.proc.handle_exception.return { |
| 141 |
printf("%s(%s)\n", name, retstr) |
| 142 |
} |
| 143 |
|
| 144 |
probe nfs.proc.create { |
| 145 |
printf("%s(%s)\n", name, argstr) |
| 146 |
printf("%s %d %d %d %d %d\n", server_ip, prot, version, fh, |
| 147 |
filelen, mode) |
| 148 |
} |
| 149 |
probe nfs.proc.create.return { |
| 150 |
printf("%d: %s(%s)\n", version, name, retstr) |
| 151 |
} |
| 152 |
|
| 153 |
probe nfs.proc.remove { |
| 154 |
printf("%s(%s)\n", name, argstr) |
| 155 |
printf("%s %d %d %d %d\n", server_ip, prot, version, fh, |
| 156 |
filelen) |
| 157 |
} |
| 158 |
probe nfs.proc.remove.return { |
| 159 |
printf("%d: %s(%s)\n", version, name, retstr) |
| 160 |
} |
| 161 |
|
| 162 |
probe nfs.proc.rename { |
| 163 |
printf("%s(%s)\n", name, argstr) |
| 164 |
printf("%s %d %d\n", server_ip, prot, version) |
| 165 |
printf("%d %d %s\n", old_fh, old_filelen, old_name) |
| 166 |
printf("%d %d %s\n", new_fh, new_filelen, new_name) |
| 167 |
} |
| 168 |
probe nfs.proc.rename.return { |
| 169 |
printf("%d: %s(%s)\n", version, name, retstr) |
| 170 |
} |