Messages in this thread | | | Date | Wed, 12 Aug 2009 17:54:56 +0200 | Subject | Re: [PATCH 0/2] perf_counter: fix the group mess | From | stephane eranian <> |
| |
On Wed, Aug 12, 2009 at 5:35 PM, Peter Zijlstra<a.p.zijlstra@chello.nl> 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");
| |