On Tue, 7 Aug 2012 15:47:32 -0400, Vince Weaver wrote:
> Hello

Hello Vince,

>
> I'm trying to figure out the difference between the "inherit" and
> "inherit_stat" bitfields in the perf_event_attr structure.
>
> Both seem to have similar functionality, and the code in core.c
> is hard to follow.
>
> Does anyone have any idea?

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.

Thanks,
Namhyung
--
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