| 1 |
#! stap -p4 |
| 2 |
|
| 3 |
# |
| 4 |
# nfsd.dispatch tests |
| 5 |
# |
| 6 |
|
| 7 |
probe nfsd.dispatch |
| 8 |
{ |
| 9 |
printf("%s(%s)\n", name, argstr) |
| 10 |
printf("%s %d %d %d\n", client_ip, xid, prog, proc) |
| 11 |
} |
| 12 |
probe nfsd.dispatch.return |
| 13 |
{ |
| 14 |
printf("%s(%s)\n", name, retstr) |
| 15 |
} |
| 16 |
|
| 17 |
# |
| 18 |
# nfsd.proc*.lookup tests |
| 19 |
# |
| 20 |
|
| 21 |
probe nfsd.proc2.lookup ?, nfsd.proc3.lookup, nfsd.proc4.lookup ? |
| 22 |
{ |
| 23 |
printf("%s(%s)\n", name, argstr) |
| 24 |
printf("%s %d %d %d\n", client_ip, proto, version, fh) |
| 25 |
printf("%d %s\n", filelen, filename) |
| 26 |
printf("%d %d\n", uid, gid) |
| 27 |
} |
| 28 |
probe nfsd.proc2.lookup.return ?, nfsd.proc3.lookup.return, |
| 29 |
nfsd.proc4.lookup.return ? |
| 30 |
{ |
| 31 |
printf("%s(%s) %d\n", name, retstr, version) |
| 32 |
} |
| 33 |
|
| 34 |
probe nfsd.proc.lookup |
| 35 |
{ |
| 36 |
printf("%s(%s)\n", name, argstr) |
| 37 |
} |
| 38 |
probe nfsd.proc.lookup.return |
| 39 |
{ |
| 40 |
printf("%s(%s)\n", name, retstr) |
| 41 |
} |
| 42 |
|
| 43 |
# |
| 44 |
# nfsd.proc*.read tests |
| 45 |
# |
| 46 |
|
| 47 |
probe nfsd.proc2.read ?, nfsd.proc3.read, nfsd.proc4.read ? |
| 48 |
{ |
| 49 |
printf("%s(%s)\n", name, argstr) |
| 50 |
printf("%s %d %d %d\n", client_ip, proto, version, fh) |
| 51 |
printf("%d %d\n", vec, vlen) |
| 52 |
printf("%d %s\n", size, units) |
| 53 |
printf("%d %d\n", uid, gid) |
| 54 |
} |
| 55 |
probe nfsd.proc2.read.return ?, nfsd.proc3.read.return, |
| 56 |
nfsd.proc4.read.return ? |
| 57 |
{ |
| 58 |
printf("%s(%s) %d\n", name, retstr, version) |
| 59 |
} |
| 60 |
|
| 61 |
probe nfsd.proc.read |
| 62 |
{ |
| 63 |
printf("%s(%s)\n", name, argstr) |
| 64 |
} |
| 65 |
probe nfsd.proc.read.return |
| 66 |
{ |
| 67 |
printf("%s(%s)\n", name, retstr) |
| 68 |
} |
| 69 |
|
| 70 |
# |
| 71 |
# nfsd.proc*.write tests |
| 72 |
# |
| 73 |
|
| 74 |
probe nfsd.proc2.write ?, nfsd.proc3.write, nfsd.proc4.write ? |
| 75 |
{ |
| 76 |
printf("%s(%s)\n", name, argstr) |
| 77 |
printf("%s %d %d %d\n", client_ip, proto, version, fh) |
| 78 |
printf("%d %d %d\n", vec, vlen, stable) |
| 79 |
printf("%d %s\n", size, units) |
| 80 |
printf("%d %d\n", uid, gid) |
| 81 |
} |
| 82 |
probe nfsd.proc2.write.return ?, nfsd.proc3.write.return, |
| 83 |
nfsd.proc4.write.return ? |
| 84 |
{ |
| 85 |
printf("%s(%s) %d\n", name, retstr, version) |
| 86 |
printf("%d\n", count) |
| 87 |
} |
| 88 |
|
| 89 |
probe nfsd.proc.write |
| 90 |
{ |
| 91 |
printf("%s(%s)\n", name, argstr) |
| 92 |
} |
| 93 |
probe nfsd.proc.write.return |
| 94 |
{ |
| 95 |
printf("%s(%s)\n", name, retstr) |
| 96 |
} |
| 97 |
|
| 98 |
# |
| 99 |
# nfsd.proc*.commit tests |
| 100 |
# |
| 101 |
|
| 102 |
probe nfsd.proc3.commit, nfsd.proc4.commit ? |
| 103 |
{ |
| 104 |
printf("%s(%s)\n", name, argstr) |
| 105 |
printf("%s %d %d %d\n", client_ip, proto, version, fh) |
| 106 |
printf("%d %s\n", size, units) |
| 107 |
printf("%d %d\n", uid, gid) |
| 108 |
} |
| 109 |
probe nfsd.proc3.commit.return, nfsd.proc4.commit.return ? |
| 110 |
{ |
| 111 |
printf("%s(%s) %d\n", name, retstr, version) |
| 112 |
} |
| 113 |
|
| 114 |
probe nfsd.proc.commit |
| 115 |
{ |
| 116 |
printf("%s(%s)\n", name, argstr) |
| 117 |
} |
| 118 |
probe nfsd.proc.commit.return |
| 119 |
{ |
| 120 |
printf("%s(%s)\n", name, retstr) |
| 121 |
} |
| 122 |
|
| 123 |
# |
| 124 |
# nfsd.proc*.create tests |
| 125 |
# |
| 126 |
|
| 127 |
probe nfsd.proc2.create ?, nfsd.proc3.create, nfsd.proc4.create ? |
| 128 |
{ |
| 129 |
printf("%s(%s)\n", name, argstr) |
| 130 |
printf("%s %d %d %d\n", client_ip, proto, version, fh) |
| 131 |
printf("%d\n", createmode) |
| 132 |
printf("%d %d\n", uid, gid) |
| 133 |
} |
| 134 |
probe nfsd.proc3.create.return, nfsd.proc3.create.return, |
| 135 |
nfsd.proc4.create.return ? |
| 136 |
{ |
| 137 |
printf("%s(%s) %d\n", name, retstr, version) |
| 138 |
} |
| 139 |
|
| 140 |
probe nfsd.proc.create |
| 141 |
{ |
| 142 |
printf("%s(%s)\n", name, argstr) |
| 143 |
} |
| 144 |
probe nfsd.proc.create.return |
| 145 |
{ |
| 146 |
printf("%s(%s)\n", name, retstr) |
| 147 |
} |
| 148 |
|
| 149 |
# |
| 150 |
# nfsd.proc*.remove tests |
| 151 |
# |
| 152 |
|
| 153 |
probe nfsd.proc2.remove ?, nfsd.proc3.remove, nfsd.proc4.remove ? |
| 154 |
{ |
| 155 |
printf("%s(%s)\n", name, argstr) |
| 156 |
printf("%s %d %d %d\n", client_ip, proto, version, fh) |
| 157 |
printf("%d %d\n", uid, gid) |
| 158 |
} |
| 159 |
probe nfsd.proc3.remove.return, nfsd.proc3.remove.return, |
| 160 |
nfsd.proc4.remove.return ? |
| 161 |
{ |
| 162 |
printf("%s(%s) %d\n", name, retstr, version) |
| 163 |
} |
| 164 |
|
| 165 |
probe nfsd.proc.remove |
| 166 |
{ |
| 167 |
printf("%s(%s)\n", name, argstr) |
| 168 |
} |
| 169 |
probe nfsd.proc.remove.return |
| 170 |
{ |
| 171 |
printf("%s(%s)\n", name, retstr) |
| 172 |
} |
| 173 |
|
| 174 |
# |
| 175 |
# nfsd.proc*.rename tests |
| 176 |
# |
| 177 |
|
| 178 |
probe nfsd.proc2.rename ?, nfsd.proc3.rename, nfsd.proc4.rename ? |
| 179 |
{ |
| 180 |
printf("%s(%s)\n", name, argstr) |
| 181 |
printf("%s %d %d %d %d\n", client_ip, proto, version, fh, tfh) |
| 182 |
printf("%d %s\n", filelen, filename) |
| 183 |
printf("%d %s\n", tlen, tname) |
| 184 |
printf("%d %d\n", uid, gid) |
| 185 |
} |
| 186 |
probe nfsd.proc2.rename.return?, nfsd.proc3.rename.return, |
| 187 |
nfsd.proc4.rename.return ? |
| 188 |
{ |
| 189 |
printf("%s(%s) %d\n", name, retstr, version) |
| 190 |
} |
| 191 |
|
| 192 |
probe nfsd.proc.rename |
| 193 |
{ |
| 194 |
printf("%s(%s)\n", name, argstr) |
| 195 |
} |
| 196 |
probe nfsd.proc.rename.return |
| 197 |
{ |
| 198 |
printf("%s(%s)\n", name, retstr) |
| 199 |
} |
| 200 |
|
| 201 |
# |
| 202 |
# nfsd.proc meta tests |
| 203 |
# |
| 204 |
|
| 205 |
probe nfsd.proc.entries |
| 206 |
{ |
| 207 |
printf("%s(%s)\n", name, argstr) |
| 208 |
} |
| 209 |
probe nfsd.proc.return |
| 210 |
{ |
| 211 |
printf("%s(%s)\n", name, retstr) |
| 212 |
} |
| 213 |
|
| 214 |
# |
| 215 |
# nfsd.open tests |
| 216 |
# |
| 217 |
|
| 218 |
probe nfsd.open |
| 219 |
{ |
| 220 |
printf("%s(%s)\n", name, argstr) |
| 221 |
printf("%s %s\n", client_ip, fh) |
| 222 |
} |
| 223 |
probe nfsd.open.return |
| 224 |
{ |
| 225 |
printf("%s(%s)\n", name, retstr) |
| 226 |
} |
| 227 |
|
| 228 |
# |
| 229 |
# nfsd.close tests |
| 230 |
# |
| 231 |
|
| 232 |
probe nfsd.close ? |
| 233 |
{ |
| 234 |
printf("%s(%s)\n", name, argstr) |
| 235 |
printf("%s\n", client_ip) |
| 236 |
} |
| 237 |
probe nfsd.close.return ? |
| 238 |
{ |
| 239 |
printf("%s(%s)\n", name, retstr) |
| 240 |
} |
| 241 |
|
| 242 |
# |
| 243 |
# nfsd.read tests |
| 244 |
# |
| 245 |
|
| 246 |
probe nfsd.read |
| 247 |
{ |
| 248 |
printf("%s(%s)\n", name, argstr) |
| 249 |
printf("%s %s\n", client_ip, fh) |
| 250 |
printf("%d %d %d\n", file, vec, vlen) |
| 251 |
printf("%d %s\n", size, units) |
| 252 |
} |
| 253 |
probe nfsd.read.return |
| 254 |
{ |
| 255 |
printf("%s(%s)\n", name, retstr) |
| 256 |
printf("%s %s\n", client_ip, fh) |
| 257 |
} |
| 258 |
|
| 259 |
# |
| 260 |
# nfsd.write tests |
| 261 |
# |
| 262 |
|
| 263 |
probe nfsd.write |
| 264 |
{ |
| 265 |
printf("%s(%s)\n", name, argstr) |
| 266 |
printf("%s %s\n", client_ip, fh) |
| 267 |
printf("%d %d %d\n", file, vec, vlen) |
| 268 |
printf("%d %s\n", size, units) |
| 269 |
} |
| 270 |
probe nfsd.write.return |
| 271 |
{ |
| 272 |
printf("%s(%s)\n", name, retstr) |
| 273 |
printf("%s %s\n", client_ip, fh) |
| 274 |
} |
| 275 |
|
| 276 |
# |
| 277 |
# nfsd.commit tests |
| 278 |
# |
| 279 |
|
| 280 |
probe nfsd.commit |
| 281 |
{ |
| 282 |
printf("%s(%s)\n", name, argstr) |
| 283 |
printf("%s %s\n", client_ip, fh) |
| 284 |
printf("%d\n", flag) |
| 285 |
printf("%d %s\n", size, units) |
| 286 |
} |
| 287 |
probe nfsd.commit.return |
| 288 |
{ |
| 289 |
printf("%s(%s)\n", name, retstr) |
| 290 |
printf("%s %s\n", client_ip, fh) |
| 291 |
} |
| 292 |
|
| 293 |
# |
| 294 |
# nfsd.lookup tests |
| 295 |
# |
| 296 |
|
| 297 |
probe nfsd.lookup |
| 298 |
{ |
| 299 |
printf("%s(%s)\n", name, argstr) |
| 300 |
printf("%s %s\n", client_ip, fh) |
| 301 |
printf("%d %s\n", filelen, filename) |
| 302 |
} |
| 303 |
probe nfsd.lookup.return |
| 304 |
{ |
| 305 |
printf("%s(%s)\n", name, retstr) |
| 306 |
printf("%s %s\n", client_ip, fh) |
| 307 |
} |
| 308 |
|
| 309 |
# |
| 310 |
# nfsd.create tests |
| 311 |
# |
| 312 |
|
| 313 |
probe nfsd.create |
| 314 |
{ |
| 315 |
printf("%s(%s)\n", name, argstr) |
| 316 |
printf("%s %s\n", client_ip, fh) |
| 317 |
printf("%d %s %d %d %d\n", filelen, filename, type, iap_valid, |
| 318 |
iap_mode) |
| 319 |
} |
| 320 |
probe nfsd.create.return |
| 321 |
{ |
| 322 |
printf("%s(%s)\n", name, retstr) |
| 323 |
printf("%s %s\n", client_ip, fh) |
| 324 |
} |
| 325 |
|
| 326 |
# |
| 327 |
# nfsd.createv3 tests |
| 328 |
# |
| 329 |
|
| 330 |
probe nfsd.createv3 ? |
| 331 |
{ |
| 332 |
printf("%s(%s)\n", name, argstr) |
| 333 |
printf("%s %s\n", client_ip, fh) |
| 334 |
printf("%d %s %d %d\n", filelen, filename, iap_valid, iap_mode) |
| 335 |
printf("%d %d %d\n", truncp, verifier, createmode) |
| 336 |
} |
| 337 |
probe nfsd.createv3.return ? |
| 338 |
{ |
| 339 |
printf("%s(%s)\n", name, retstr) |
| 340 |
printf("%s %s\n", client_ip, fh) |
| 341 |
} |
| 342 |
|
| 343 |
# |
| 344 |
# nfsd.unlink tests |
| 345 |
# |
| 346 |
|
| 347 |
probe nfsd.unlink |
| 348 |
{ |
| 349 |
printf("%s(%s)\n", name, argstr) |
| 350 |
printf("%s %s\n", client_ip, fh) |
| 351 |
printf("%d %s %d\n", filelen, filename, type) |
| 352 |
} |
| 353 |
probe nfsd.unlink.return |
| 354 |
{ |
| 355 |
printf("%s(%s)\n", name, retstr) |
| 356 |
printf("%s %s\n", client_ip, fh) |
| 357 |
} |
| 358 |
|
| 359 |
# |
| 360 |
# nfsd.rename tests |
| 361 |
# |
| 362 |
|
| 363 |
probe nfsd.rename |
| 364 |
{ |
| 365 |
printf("%s(%s)\n", name, argstr) |
| 366 |
printf("%s %s %s\n", client_ip, fh, tfh) |
| 367 |
printf("%d %s\n", filelen, filename) |
| 368 |
printf("%d %s\n", tlen, tname) |
| 369 |
} |
| 370 |
probe nfsd.rename.return |
| 371 |
{ |
| 372 |
printf("%s(%s)\n", name, retstr) |
| 373 |
printf("%s %s\n", client_ip, fh) |
| 374 |
} |
| 375 |
|
| 376 |
# |
| 377 |
# nfsd meta tests |
| 378 |
# |
| 379 |
|
| 380 |
probe nfsd.entries |
| 381 |
{ |
| 382 |
printf("%s(%s)\n", name, argstr) |
| 383 |
} |
| 384 |
probe nfsd.return |
| 385 |
{ |
| 386 |
printf("%s(%s)\n", name, retstr) |
| 387 |
} |