Created
February 18, 2016 21:43
-
-
Save wkz/e439f6cc4a634455cf9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ply | |
/* -*- mode: c -*- */ | |
kprobe:SyS_read | |
{ | |
sizes[arg(2)].count(); | |
dist.quantize(arg(2)); | |
sum.count(); | |
} | |
-- | |
wkz@wkz-box:~/tmp$ sudo ./test.ply | |
1 probe active | |
^Cde-activating probes | |
sizes: | |
8191 1 | |
8192 1 | |
4096 2 | |
8103 2 | |
8152 2 | |
8160 2 | |
7152 3 | |
8176 3 | |
16384 7 | |
8096 12 | |
256 13 | |
1024 14 | |
7176 33 | |
2 41 | |
32752 60 | |
7200 66 | |
16 95 | |
1 288 | |
10 842 | |
8 1240 | |
dist: | |
[ 0, 1] 288 | |
[ 2, 4) 41 | |
[ 8, 16) 2083 | |
[ 16, 32) 95 | |
[ 256, 512) 13 | |
[ 1k, 2k) 14 | |
[ 4k, 8k) 126 | |
[ 8k, 16k) 1 | |
[ 16k, 32k) 67 | |
sum: | |
2725 | |
wkz@wkz-box:~/tmp$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment