This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 07/10] Add __pthread_set_abort_hook export
On Thu, 2013-01-10 at 12:19 -0800, Andi Kleen wrote:
> From: Andi Kleen <ak@linux.intel.com>
>
> For some debugging scenarios it is useful to catch aborts. Looking
> at the abort code can be the only way to get information out of a
> memory transaction.
If it's purely for debugging purposes through external debugging tools,
a systemtap probe or something similar might also be sufficient (or
better).
> This exports an __pthread_set_abort_hook function that can set
> this abort hook.
If we'll have this function, it should at least be called
__pthread_set_hle_abort_hook or similar (otherwise, which "abort"?).
> +typedef void (*__pthread_abort_hook_t) (unsigned);
If this is to be used for "debugging"/testing/logging code inside of
programs, is just the TSX abort code sufficient? I suppose the lock
being touched would be useful too (if this abort hook is just used for
HLE).
Torvald