Re: [PATCH 1/3] perf, core: Introduce attrs to count in either hostor guest mode

From: Avi Kivity
Date: Wed May 11 2011 - 11:36:52 EST


On 05/11/2011 02:44 PM, Avi Kivity wrote:
On 05/10/2011 05:35 PM, Joerg Roedel wrote:
The two new attributes exclude_guest and exclude_host can
bes used by user-space to tell the kernel to setup
performance counter to either only count while the CPU is in
guest or in host mode.
An additional check is also introduced to make sure
user-space does not try to exclude guest and host mode from
counting.

@@ -217,7 +217,10 @@ struct perf_event_attr {
mmap_data : 1, /* non-exec mmap data */
sample_id_all : 1, /* sample_type all events */

- __reserved_1 : 45;
+ exclude_host : 1, /* don't count in host */
+ exclude_guest : 1, /* don't count in guest */
+
+ __reserved_1 : 43;


We have exclude_hv a few lines up, so only exclude_guest is needed.


Well, actually, that depends on the meaning of exclude_hv.

--
error compiling committee.c: too many arguments to function

--
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/