When running magic-trace to trace a process, when SIGKILL is sent to the traced process, the magic-tracer does not stop running, while perf record does stop. I expected the magic tracer to stop running or to take a snapshot immediately upon the process finishing. To reproduce the issue:
- Run
sleep 5000 and get its PID.
- Run
magic-trace attach -p <pid> -o magic-trace.fxt
- Run
kill -9 <pid> to see that perf record stops running while magic-trace does not.
Running version 6.7.0 of perf userspace tools.