3 ms·
The author describes using eBPF to trace malloc/free refs as a solution to the program properly freeing all heap objects before exiting, which was enlightening
by matt123456789 5y ago
The author describes using eBPF to trace malloc/free refs as a solution to the program properly freeing all heap objects before exiting, which was enlightening to me. Would it have been possible to issue a kill -9 to the program in the middle of execution while using valgrind to see this info as well? Or is it more to the point that eBPF is cleaner and allows you to see many more snapshots of memory allocations while the program is still running?
- xerxes901 5y agoOff the top of my head I don't think this would work, because Valgrind needs the atexit hooks to run? Probably some other signal that has a default action of terminate the program that our app isn't handling might've worked though.