Merge tag 'v3.14.25' into backport/v3.14.24-ltsi-rc1+v3.14.25/snapshot-merge.wip
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / staging / ktap / samples / userspace / malloc_free.kp
1 #!/usr/bin/env ktap
2
3 #only tested in x86-64 system,
4 #if you run this script in x86_32, change the libc path.
5
6 trace probe:/lib64/libc.so.6:malloc {
7         print("malloc entry:", execname())
8 }
9
10 trace probe:/lib64/libc.so.6:malloc%return {
11         print("malloc exit:", execname())
12 }
13
14 trace probe:/lib64/libc.so.6:free {
15         print("free entry:", execname())
16 }
17
18 trace probe:/lib64/libc.so.6:free%return {
19         print("free exit:", execname())
20 }