[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hppa and sigaction



On Sat, May 14, 2005 at 02:46:23PM -0400, Carlos O'Donell wrote:
> The void* is ucontext_t.
> To get at sc_ioaq you must look in ucontext_t->uc_mcontext->sc_iaoq.

This is what I've been doing, but it's always zero...

static void catcher (int sig, siginfo_t* sip, void* mystery) {
        ucontext_t* ucp = (ucontext_t*)mystery;
        printf("ping: %x\n", ucp->uc_mcontext.sc_iaoq[0]);
}

Repeatedly prints "ping: 0" with each profiler tick.

> If you are using an older 64-bit kernel all this information may be
> wrong, and require a kernel update.

Linux paer 2.4.26-64-smp #1 SMP Tue Aug 24 21:59:09 CEST 2004 parisc64 unknown

Is this "too old"?

-- 
Wesley W. Terpstra <wesley@terpstra.ca>



Reply to: