Re: [perfmon2] Counting for child threads

2015-04-27 Thread Yunqi Zhang
Hi Stephane, Thank you for your reply. I understand that I can pass the inherit flag to perf_event_open() on my own. However, it can only apply to the child threads created after the perf_event_open() syscall, and does not apply to the existing child threads. For example, if process 1234 create

Re: [perfmon2] Counting for child threads

2015-04-27 Thread Stephane Eranian
Hi, On Fri, Apr 24, 2015 at 9:33 PM, Yunqi Zhang wrote: > Hi all, > > I'm trying to use libpfm to collect performance counter data for some > multi-threaded applications. I would like to aggregate the data for all the > child threads under the same process. I found that the "inherit" flag does >

[perfmon2] Counting for child threads

2015-04-24 Thread Yunqi Zhang
Hi all, I'm trying to use libpfm to collect performance counter data for some multi-threaded applications. I would like to aggregate the data for all the child threads under the same process. I found that the "inherit" flag does not work for existing children threads as suggested by perf_event_ope