Messages in this thread | | | Subject | Re: [PATCH 1/7] perf: introduce raw_type attribute to specify the type of a raw sample | From | Peter Zijlstra <> | Date | Thu, 20 May 2010 19:16:35 +0200 |
| |
On Thu, 2010-05-20 at 19:07 +0200, Robert Richter wrote: > On 20.05.10 12:55:01, Ingo Molnar wrote: > > Not really, fds are really cheap on Linux, and in any case it's only needed > > when the event is created - can be closed afterwards. > > I was wondering if we could get the perf event fd directly with the > open("/sys/...") command? This would be really easy to set up.
I guess we could sorta do that, but then we'd need a ioctl to change the perf_event_attr.
| |