On Mon, Feb 8, 2010 at 10:44 AM, J K Rai <jk.anu...@yahoo.com> wrote:
>> > I use perfmon2 with linux-2.6.30, libpfm-3.9 on intel
>> xeon x5482.
>> >
>> > I am trying to get asynchronous overflow notification
>> (instrn retired) in my controlling process, (for child
>> process ls) by doing fcntl on perfmon2 context fd. (sampling
>> period = 1000)
>> >
>> > I do standard signal handler installation for SIGIO
>> (tried with SIGPOLL also)
>> >
>> > I do following after creating the perfmon2 context.
>> >
>> > fcntl(fd, F_SETFL, O_ASYNC);
>> > fcntl(fd, F_SETOWN, getpid());
>> > fcntl(fd, F_SETSIG, SIGPOLL); //have tried with
>> commenting this i.e. with
>> >                              //default
>> SIGIO also
>> > fcntl(fd, F_SETFD, FD_CLOEXEC);
>> >
>> > In my signal handler I perform read, but get unknown
>> message type: 10.
>> >
>
>> Where do you get the fd from in the handler?
>
> I collect fd from siginfo->si_fd in the signal handler.
>
>>
>> Are you doing self-monitoring or monitoring of another
>> process?
>
> I am monitoring the child from parent.
>
I need to see more of your program.

> Regards,
> Jitendra
>
>
>      Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! 
> http://downloads.yahoo.com/in/internetexplorer/
>

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to