Solaris 11.4 got a new
I have saved this script into a file called
In a second window i just started a
fileops
provider. This provider is independent from the filesystem you are using. So you can easily trace filesystem accesses with it. For example so see all filenames of accesses on your system, you can just use such a short scriptfileops:::read
{
@[args[0]->fi_name] =
quantize(args[1]);
}
I have saved this script into a file called
writeops
. The script should show me write latencies for each file i'm writing to. root@batou:~# dtrace -s writeops
dtrace: script 'writeops' matched 1 probe
In a second window i just started a
echo "test" > narf
. After terminating the dtrace command, it yielded the following result:^C
narf
value ------------- Distribution ------------- count
8192 | 0
16384 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1
32768 | 0
Nan Xiao
fileops:::write
{
@[args[0]->fi_name] =
quantize(args[1]);
}
Not "fileops:::read", thanks!