Re: perfmon3 interface overview

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: stephane eranian
Date: Friday, October 3, 2008 - 4:12 am

David,

Some more thoughts on this.

If we wanted to go even further, we could combine start/stop, attach/detach
into  a single syscall:

   int pfm_control_session(int fd, int flags, int target);
   With flags:
       PFM_CTFL_START  : start monitoring
       PFM_CTFL_STOP    : stop monitoring
       PFM_CTFL_RESTART: resume after overflow notification

       PFM_CTFL_ATTACH: attach to thread or cpu designated by 'target'
       PFM_CTFL_DETACH: detach session

But then, this is a form of ioctl() which people don't like....
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: perfmon3 interface overview, stephane eranian, (Fri Oct 3, 3:58 am)
Re: perfmon3 interface overview, stephane eranian, (Fri Oct 3, 4:12 am)
Re: perfmon3 interface overview, David Gibson, (Fri Oct 3, 11:05 pm)
Re: perfmon3 interface overview, stephane eranian, (Sat Oct 4, 12:20 am)
Re: perfmon3 interface overview, David Gibson, (Sat Oct 4, 10:44 pm)
Re: perfmon3 interface overview, David Gibson, (Sat Oct 4, 10:53 pm)
Re: perfmon3 interface overview, stephane eranian, (Sun Oct 5, 2:23 pm)
Re: perfmon3 interface overview, David Gibson, (Mon Oct 6, 8:56 pm)
Re: [perfmon2] perfmon3 interface overview, Arnd Bergmann, (Tue Oct 7, 2:24 am)
Re: perfmon3 interface overview, stephane eranian, (Tue Oct 7, 2:46 am)
Re: perfmon3 interface overview, David Gibson, (Tue Oct 7, 5:53 pm)
Re: perfmon3 interface overview, stephane eranian, (Wed Oct 8, 3:09 am)