3 #only tested in x86-64 system,
4 #if you run this script in x86_32, change the libc path.
6 trace probe:/lib64/libc.so.6:malloc {
7 print("malloc entry:", execname())
10 trace probe:/lib64/libc.so.6:malloc%return {
11 print("malloc exit:", execname())
14 trace probe:/lib64/libc.so.6:free {
15 print("free entry:", execname())
18 trace probe:/lib64/libc.so.6:free%return {
19 print("free exit:", execname())