On Tue, 4 Sep 2012, Namhyung Kim wrote:
> 
> AFAIK the "inherit" field determines whether the event is inherited to a
> child process/thread.  The "inherit_stat" is only meaningful when the
> "inherit" field is also set and it'll preserve (saved) event counts
> between context switch of the inherited processes/threads.

Thank you for taking the time to answer!

I'm still trying to construct a test case that shows the difference but 
I'm failing.

Aren't the stats *always* saved on context switch?

Does this affect what happens when you read the perf_event fd in the 
inherited threads, or only from the master thread?

What is the expected behavior if you set inherit_thread but do not set 
inherit?

Thanks for any clarifications you can provide,

Vince


--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to