Re: [perfmon2] About per-thread monitoring

2009-08-07 Thread stephane eranian
On Wed, Jul 22, 2009 at 8:29 PM, Corey J Ashford wrote: > I know for a fact that it's possible to ptrace attach to threads (tasks). > We have a tool which relies on that + perfmon2 for per-thread performance > monitoring. > > If you are really curious, you could start digging into the kernel code t

Re: [perfmon2] About per-thread monitoring

2009-07-22 Thread Corey J Ashford
could be the problem. May be ptrace does not allow > > threadID as parameter. When will the version 2.6.30 be available? > > > > Thanks > > Tanima. > > > > From: Corey J Ashford > > To: Tanima Dey > > Cc: Corey Ashford ; Perfmon > de...@l

Re: [perfmon2] About per-thread monitoring

2009-07-22 Thread Corey J Ashford
; Cc: Corey Ashford ; Perfmon de...@lists.sourceforge.net> > Sent: Tuesday, July 21, 2009 12:12:15 AM > Subject: Re: [perfmon2] About per-thread monitoring > Hi Tanima, > > Does the " fprintf(stdout, "apptid %d gettid(): %d \n",apptid, > gettid());" at l

Re: [perfmon2] About per-thread monitoring

2009-07-22 Thread Tanima Dey
a Dey Cc: Corey Ashford ; Perfmon Sent: Tuesday, July 21, 2009 12:12:15 AM Subject: Re: [perfmon2] About per-thread monitoring Hi Tanima, Does the " fprintf(stdout, "apptid %d gettid(): %d \n",apptid, gettid());" at line 136 print correct looking task ids? If the apptid is

Re: [perfmon2] About per-thread monitoring

2009-07-20 Thread Corey J Ashford
, Perfmon de...@lists.sourceforge.net> > > Subject > > Re: [perfmon2] About per-thread monitoring>, > > Hi, > I am attaching the code. > Thank you very much. > Tanima.> > > From: Corey J Ashford > To: Tanima Dey > Cc: Corey Ashford ; Perfmon de...@li

Re: [perfmon2] About per-thread monitoring

2009-07-20 Thread Tanima Dey
Hi, I am attaching the code. Thank you very much. Tanima. From: Corey J Ashford To: Tanima Dey Cc: Corey Ashford ; Perfmon Sent: Saturday, July 18, 2009 10:26:11 PM Subject: Re: [perfmon2] About per-thread monitoring Can you post the code where you are

Re: [perfmon2] About per-thread monitoring

2009-07-18 Thread stephane eranian
gt;> Tanima Dey >> 07/18/2009 03:55 PM >> >> To > >> >> Corey Ashford >> >> cc >> >> Perfmon >> >> Subject >> >> Re: [perfmon2] About per-thread monitoring >> >> Hi, >> Yes, I have studied that exampl

Re: [perfmon2] About per-thread monitoring

2009-07-18 Thread Corey J Ashford
working... it takes task ids, rather than pthread ids. - Corey Tanima Dey wrote on 07/18/2009 03:55:02 PM: > Tanima Dey > 07/18/2009 03:55 PM > > To > > Corey Ashford > > cc > > Perfmon > > Subject > > Re: [perfmon2] About per-thread monitoring >

Re: [perfmon2] About per-thread monitoring

2009-07-18 Thread Tanima Dey
s not permitted" Can you help? Thanks Tanima. From: Corey Ashford To: Tanima Dey Cc: Perfmon Sent: Friday, July 17, 2009 6:20:09 PM Subject: Re: [perfmon2] About per-thread monitoring On 07/16/2009 04:33 PM, Tanima Dey wrote: > > Hi, > > Thanks

Re: [perfmon2] About per-thread monitoring

2009-07-17 Thread Corey Ashford
On 07/16/2009 04:33 PM, Tanima Dey wrote: > > Hi, > > Thanks for the reply. > > It is mentioned in the manual that the thread to which the context is > attached is the monitored thread, in my case then it is the application > thread to which the context should be loaded, right? If it is so, I am >

Re: [perfmon2] About per-thread monitoring

2009-07-16 Thread Tanima Dey
monitoring using threads? Regards Tanima. From: stephane eranian To: Tanima Dey Cc: Perfmon Sent: Thursday, July 16, 2009 3:08:22 PM Subject: Re: [perfmon2] About per-thread monitoring Hi, On Thu, Jul 16, 2009 at 6:24 PM, Tanima Dey wrote: > Hi, >

Re: [perfmon2] About per-thread monitoring

2009-07-16 Thread stephane eranian
Hi, On Thu, Jul 16, 2009 at 6:24 PM, Tanima Dey wrote: > Hi, > I am trying to read the performance counters for the per-thread non-self > monitoring session. There will be two threads, application and the monitor > thread.  The application will be running itself and the monitor thread will > read

Re: [perfmon2] About per-thread monitoring

2009-07-16 Thread Tanima Dey
nt to attach or read the counts, but ptrace is used only to stop a process, but not a specific thread. Can you help? Thanks Regards Tanima. From: stephane eranian To: Tanima Dey Cc: Perfmon Sent: Wednesday, July 15, 2009 2:07:32 PM Subject: Re: [perfmo

Re: [perfmon2] About per-thread monitoring

2009-07-15 Thread stephane eranian
Tamina, On Wed, Jul 15, 2009 at 4:40 PM, Tanima Dey wrote: > Hi, > > Perfmon supports both system-wide and per-thread monitoring session. I have > a conceptual question regarding the per-thread monitoring. > > Consider we have two threads, application thread and monitoring thread. The > appThread