[PATCH v7 3.2-rc2 16/30] uprobes: Introduce uprobe_task_arch_info structure.

From: Srikar Dronamraju
Date: Fri Nov 18 2011 - 06:40:46 EST



uprobe_task_arch_info structure helps save and restore architecture
specific artifacts at the probehit/singlestep/original instruction
restore time.

Signed-off-by: Jim Keniston <jkenisto@xxxxxxxxxx>
Signed-off-by: Srikar Dronamraju <srikar@xxxxxxxxxxxxxxxxxx>
---
include/linux/uprobes.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h
index 0882223..c1378a9 100644
--- a/include/linux/uprobes.h
+++ b/include/linux/uprobes.h
@@ -31,6 +31,7 @@ struct vm_area_struct;
#else
typedef u8 uprobe_opcode_t;
struct uprobe_arch_info {};
+struct uprobe_task_arch_info {}; /* arch specific task info */
#define MAX_UINSN_BYTES 4
#endif

@@ -84,6 +85,7 @@ struct uprobe_task {
unsigned long vaddr;

enum uprobe_task_state state;
+ struct uprobe_task_arch_info tskinfo;

struct uprobe *active_uprobe;
};

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/