Re: [PATCH 0/2] perf_counter: fix the group mess

From: stephane eranian
Date: Wed Aug 12 2009 - 12:00:55 EST


On Wed, Aug 12, 2009 at 5:35 PM, Peter Zijlstra<a.p.zijlstra@xxxxxxxxx> wrote:
>
> With these two patches the below proglet gives:
>
> # ./test
> EVNT: 0xffffffff811c0f4c scale: nan ID: 37 CNT: 1006180 ID: 38 CNT: 1010230 ID: 39 CNT: 1010332 ID: 40 CNT: 1010420
>
> I can't seem to catch the SIGIO thing, but at least all the counters report

I think it's because you are missing this fcntl() call to get async
notification:

ret = fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) | O_ASYNC);
if (ret == -1)
err(1, "cannot set ASYNC");
--
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/