[PATCH v2 4/4] Add fork and exit callback functions into top->perf_tool

2013-02-26 Thread chenggang
From: chenggang Many applications will fork threads on-the-fly, these threads could exit before the main thread exit. The perf top tool should perceive the new forked threads while we profile a special application. If the target process fork a thread or a thread exit, we will get a PERF_RECORD_F

[PATCH v2 4/4] Add fork and exit callback functions into top->perf_tool

2013-02-26 Thread chenggang
From: chenggang Many applications will fork threads on-the-fly, these threads could exit before the main thread exit. The perf top tool should perceive the new forked threads while we profile a special application. If the target process fork a thread or a thread exit, we will get a PERF_RECORD_F