commit | 41ab5266c3622354353433618edb92ab278025fa | [log] [tgz] |
---|---|---|
author | Ananth N Mavinakayanahalli <ananth@in.ibm.com> | Thu Aug 23 21:27:09 2012 +0000 |
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | Wed Sep 05 15:19:36 2012 +1000 |
tree | 5e1313a104ae877a174a88a2c93eb010f1bd5861 | |
parent | 7118e7e648e0a902bf4f38c55a25fcff730f33d7 [diff] |
powerpc: Add trap_nr to thread_struct Add thread_struct.trap_nr and use it to store the last exception the thread experienced. In this patch, we populate the field at various places where we force_sig_info() to the process. This is also used in uprobes to determine if the probed instruction caused an exception. Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>