nfsclienttime (246e7a2b6494cd991b08ac669ed761ecea0cc98c) nfsclienttime (c1eb4109f3b1d90a9c1538179ea6a52a191899b2)
1#!/usr/sbin/dtrace -s
2/*
3 * Copyright (c) 2012 Robert N. M. Watson
4 * All rights reserved.
5 *
6 * This software was developed at the University of Cambridge Computer
7 * Laboratory with support from a grant from Google, Inc.
8 *

--- 39 unchanged lines hidden (view full) ---

48}
49
50syscall:::entry
51{
52
53 self->count = 0;
54}
55
1#!/usr/sbin/dtrace -s
2/*
3 * Copyright (c) 2012 Robert N. M. Watson
4 * All rights reserved.
5 *
6 * This software was developed at the University of Cambridge Computer
7 * Laboratory with support from a grant from Google, Inc.
8 *

--- 39 unchanged lines hidden (view full) ---

48}
49
50syscall:::entry
51{
52
53 self->count = 0;
54}
55
56nfsclient:nfs3::start
56nfscl:nfs3::start
57{
58
59 self->timestamp = timestamp;
60}
61
57{
58
59 self->timestamp = timestamp;
60}
61
62nfsclient:nfs3::done
62nfscl:nfs3::done
63{
64
65 self->count += (timestamp - self->timestamp);
66}
67
68syscall:::return
69/self->count != 0/ {
70
71 @syscalls[probefunc] = quantize(self->count);
72}
63{
64
65 self->count += (timestamp - self->timestamp);
66}
67
68syscall:::return
69/self->count != 0/ {
70
71 @syscalls[probefunc] = quantize(self->count);
72}