3 cat monitor.conf |
grep -v callocOffset
> monitor.conf.temp
4 mv monitor.conf.temp monitor.conf
6 echo -n 'set callocOffset=' >> monitor.conf
7 nm
-D `cat /proc/self/maps | grep libc-2 | head -n 1 | awk '{print $6}'` |
grep ' calloc' |
awk '{print $1}' |
sed 's/^0*/0x/' >> monitor.conf