Re: perf: is PERF_COUNT_SW_CONTEXT_SWITCHES a kernel or userevent?

From: Vince Weaver
Date: Tue Jun 28 2011 - 13:36:04 EST


On Mon, 27 Jun 2011, Frederic Weisbecker wrote:
>
> If you consider the strict meaning of exclude_user/exclude_kernel, they exclude
> events that _happen_ in user/kernel space. And context switches happen in kernel
> space.

I can see that it's somewhat arbitrary how context switches are
classified.

I just want some assurances that now that it's moved to being
a kernel event it stays that way.

As it is, people upgrading from 2.6.32 to 2.6.34 and using the "cs:u"
event will suddently start getting "0" results.

Possibly perf_events should just ignore exclude_kernel/exclude_user on an
event like this where there is no real distinction.

Vince
vweaver1@xxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/