Re: How about limiting refresh ioctl to sampling events ?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Franck Bui-Huu
Date: Tuesday, November 23, 2010 - 6:19 am

Peter Zijlstra <a.p.zijlstra@chello.nl> writes:


Ok.

I'm also wondering if you would accept a second patch which will
introduce:

static inline bool is_sampling_event(struct perf_event *event)
{
        return event->attr.sample_period != 0;
}

That would make the code slighlty easier to read IMHO.

-- 
		Franck
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How about limiting refresh ioctl to sampling events ?, Franck Bui-Huu, (Tue Nov 23, 6:01 am)
Re: How about limiting refresh ioctl to sampling events ?, Peter Zijlstra, (Tue Nov 23, 6:07 am)
Re: How about limiting refresh ioctl to sampling events ?, Franck Bui-Huu, (Tue Nov 23, 6:19 am)
Re: How about limiting refresh ioctl to sampling events ?, Peter Zijlstra, (Tue Nov 23, 6:46 am)
Re: How about limiting refresh ioctl to sampling events ?, Francis Moreau, (Wed Nov 24, 3:19 am)