3 # Aggregate system or process malloc size
5 # only tested in x86-64 system,
6 # if you run this script in x86_32, change the libc path and register name.
10 # ktap malloc_size_hist.kp
11 # ktap malloc_size_hist.kp -- ls
15 trace probe:/lib64/libc.so.6:malloc size=%di {
16 #arg2 is argument "size" of malloc function