On 06/11/2012 04:15 PM, Vince Weaver wrote:
> On Mon, 11 Jun 2012, William Cohen wrote:
> 
>> Hi Phil,
>>
>> I notice that papi encounters a similar problem.  What would be requirement 
>> for the autoconf check? Use the struct siginfo if it exists and siginfo_t if 
>> no struct siginfo?
>>
>> -Will
> 
> 
> From what I gather the siginfo_t / struct siginfo stuff was only broken in 
> Linux 2.4.  I don't think PAPI really supports anything that old anymore.
> 
> It looks like all of our architectures besides Linux (at least the ones 
> that don't just have a dummy hwd_siginfo_t) are using siginfo_t already.
> 
> The change is just a one line fix in linux-context.h.  I'm willing to 
> commit it and back it out if it breaks anything.
> 
> Vince
> 

Hi Vince,

I have a one line fix that allow papi to compile with the siginfo_t. The patch 
is attached.

-Will


diff -up papi-4.4.0/src/linux-context.h.siginfo papi-4.4.0/src/linux-context.h
--- papi-4.4.0/src/linux-context.h.siginfo	2012-06-11 15:40:00.389999991 -0400
+++ papi-4.4.0/src/linux-context.h	2012-06-11 15:40:12.423000001 -0400
@@ -4,7 +4,7 @@
 /* Signal handling functions */
 
 #undef hwd_siginfo_t
-typedef struct siginfo hwd_siginfo_t;
+typedef siginfo_t hwd_siginfo_t;
 
 #undef hwd_ucontext_t
 typedef ucontext_t hwd_ucontext_t;
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to