RE: [RFC PATCH] New SA_NOPRNOTIF sigaction flag

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

 



> > Okay, I'll come up with an alternative patch that enhances 
> the ptrace
> > interface so the debugger can guide the kernel to NOT 
> context switch and
> > bother it about signal x from task y.
> > 
> > Would you be amenable to such a patch?
> 
> Yes, definitely.  I just hadn't found a chance to think about what the
> interface should look like.
> 
> [For the record, I'm pretty sure that the Solaris procfs debug
> interface offers a similar feature.]
> 
> -- 
> Daniel Jacobowitz
> CodeSourcery, LLC
> 


How about 2 new PTRACE requests: PTRACE_SET_SIGIGN_MASK,
PTRACE_GET_SIGIGN_MASK

Both taking a "sigset_t *mask" as a parameter? The mask would be filled
by the debugger as usual using sigemptyset(), sigfillset(), sigaddset(),
etc.

Of course, the implementation would do error checking for legal values
of signals to mask, etc.

And this might require augmenting task_struct {} to store this mask,
kind of like last_siginfo which is already used by the
PTRACE_SETSIGINFO/PTRACE_GETSIGINFO ptrace requests.

- Bhavesh


Bhavesh P. Davda | Distinguished Member of Technical Staff | Avaya |
1300 West 120th Avenue | B3-B03 | Westminster, CO 80234 | U.S.A. |
Voice/Fax: 303.538.4438 | [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux