[PATCH -v2] perf, ibs: Check syscall attribute flags

From: Robert Richter
Date: Mon Sep 10 2012 - 05:30:39 EST


On 07.09.12 18:56:27, Peter Zijlstra wrote:
> > @@ -215,6 +215,14 @@ static int perf_ibs_init(struct perf_event *event)
> > struct perf_ibs *perf_ibs;
> > u64 max_cnt, config;
> > int ret;
> > + struct perf_event_attr notsupp = {
>
> static const ?
>
> > + .exclude_user = 1,
> > + .exclude_kernel = 1,
> > + .exclude_hv = 1,
> > + .exclude_idle = 1,
> > + .exclude_host = 1,
> > + .exclude_guest = 1,

Version 2 below with static const used.

-Robert