[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120118090232.GE15447@linux.vnet.ibm.com>
Date: Wed, 18 Jan 2012 14:32:32 +0530
From: Srikar Dronamraju <srikar@...ux.vnet.ibm.com>
To: Anton Arapov <anton@...hat.com>
Cc: Peter Zijlstra <peterz@...radead.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Oleg Nesterov <oleg@...hat.com>, Ingo Molnar <mingo@...e.hu>,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>,
Linux-mm <linux-mm@...ck.org>, Andi Kleen <andi@...stfloor.org>,
Christoph Hellwig <hch@...radead.org>,
Steven Rostedt <rostedt@...dmis.org>,
Roland McGrath <roland@...k.frob.com>,
Thomas Gleixner <tglx@...utronix.de>,
Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>,
Arnaldo Carvalho de Melo <acme@...radead.org>,
Ananth N Mavinakayanahalli <ananth@...ibm.com>,
Jim Keniston <jkenisto@...ux.vnet.ibm.com>,
Stephen Rothwell <sfr@...b.auug.org.au>,
Mike Frysinger <vapier@...too.org>
Subject: Re: [PATCH v9 3.2 2/9] uprobes: handle breakpoint and signal step
exception.
> Srikar,
>
> Can we use existing SET_IP() instead of set_instruction_pointer() ?
>
Oleg had already commented about this in one his uprobes reviews.
The GET_IP/SET_IP available in include/asm-generic/ptrace.h doesnt work
on all archs. Atleast it doesnt work on powerpc when I tried it.
Also most archs define instruction_pointer(). So I thought (rather Peter
Zijlstra suggested the name set_instruction_pointer())
set_instruction_pointer was a better bet than SET_IP. I
Also I dont see any usage for SET_IP/GET_IP.
May be we should have something like this in
include/asm-generic/ptrace.h
#ifdef instruction_pointer
#define GET_IP(regs) (instruction_pointer(regs))
#define set_instruction_pointer(regs, val) (instruction_pointer(regs) = (val))
#define SET_IP(regs, val) (set_instruction_pointer(regs,val))
#endif
or should we do away with GET_IP/SET_IP esp since there are no many
users?
--
Thanks and Regards
Srikar
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists