[PATCH 12/13] tracing/uprobes: Add more fetch functions

2013-08-27 Thread Namhyung Kim
From: Namhyung Kim Implement uprobe-specific stack and memory fetch functions and add them to the uprobes_fetch_type_table. Other fetch fucntions will be shared with kprobes. Original-patch-by: Hyeoncheol Lee Cc: Masami Hiramatsu Cc: Srikar Dronamraju Cc: Oleg Nesterov Cc: zhangwei(Jovi) C

[PATCH 12/13] tracing/uprobes: Add more fetch functions

2013-10-28 Thread Namhyung Kim
From: Namhyung Kim Implement uprobe-specific stack and memory fetch functions and add them to the uprobes_fetch_type_table. Other fetch fucntions will be shared with kprobes. Original-patch-by: Hyeoncheol Lee Reviewed-by: Masami Hiramatsu Cc: Srikar Dronamraju Cc: Oleg Nesterov Cc: zhangwei

[PATCH 12/13] tracing/uprobes: Add more fetch functions

2013-09-02 Thread Namhyung Kim
From: Namhyung Kim Implement uprobe-specific stack and memory fetch functions and add them to the uprobes_fetch_type_table. Other fetch fucntions will be shared with kprobes. Original-patch-by: Hyeoncheol Lee Reviewed-by: Masami Hiramatsu Cc: Srikar Dronamraju Cc: Oleg Nesterov Cc: zhangwei

[PATCH 12/13] tracing/uprobes: Add more fetch functions

2013-08-09 Thread Namhyung Kim
From: Namhyung Kim Implement uprobe-specific stack and memory fetch functions and add them to the uprobes_fetch_type_table. Other fetch fucntions will be shared with kprobes. Original-patch-by: Hyeoncheol Lee Cc: Masami Hiramatsu Cc: Srikar Dronamraju Cc: Oleg Nesterov Cc: zhangwei(Jovi) C

Re: [PATCH 12/13] tracing/uprobes: Add more fetch functions

2013-08-27 Thread Masami Hiramatsu
(2013/08/27 17:48), Namhyung Kim wrote: > From: Namhyung Kim > > Implement uprobe-specific stack and memory fetch functions and add > them to the uprobes_fetch_type_table. Other fetch fucntions will be > shared with kprobes. > > Original-patch-by: Hyeoncheol Lee > Cc: Masami Hiramatsu > Cc: S

Re: [PATCH 12/13] tracing/uprobes: Add more fetch functions

2013-08-27 Thread Namhyung Kim
Hi Masami, On Tue, 27 Aug 2013 21:03:32 +0900, Masami Hiramatsu wrote: > (2013/08/27 17:48), Namhyung Kim wrote: >> From: Namhyung Kim >> >> Implement uprobe-specific stack and memory fetch functions and add >> them to the uprobes_fetch_type_table. Other fetch fucntions will be >> shared with k

Re: [PATCH 12/13] tracing/uprobes: Add more fetch functions

2013-11-04 Thread Namhyung Kim
On Thu, 31 Oct 2013 19:22:18 +0100, Oleg Nesterov wrote: > On 10/29, Namhyung Kim wrote: >> >> +static void __user *get_user_vaddr(unsigned long addr, struct trace_uprobe >> *tu) >> +{ >> +unsigned long pgoff = addr >> PAGE_SHIFT; >> +struct vm_area_struct *vma; >> +struct address_spac

Re: [PATCH 12/13] tracing/uprobes: Add more fetch functions

2013-11-04 Thread Oleg Nesterov
On 11/04, Namhyung Kim wrote: > > On Thu, 31 Oct 2013 19:22:18 +0100, Oleg Nesterov wrote: > > On 10/29, Namhyung Kim wrote: > >> > >> +static void __user *get_user_vaddr(unsigned long addr, struct > >> trace_uprobe *tu) > >> +{ > >> + unsigned long pgoff = addr >> PAGE_SHIFT; > >> + struct vm_a

Re: [PATCH 12/13] tracing/uprobes: Add more fetch functions

2013-11-04 Thread Steven Rostedt
On Mon, 4 Nov 2013 17:44:31 +0100 Oleg Nesterov wrote: > On 11/04, Namhyung Kim wrote: > > > > On Thu, 31 Oct 2013 19:22:18 +0100, Oleg Nesterov wrote: > > > On 10/29, Namhyung Kim wrote: > > >> > > >> +static void __user *get_user_vaddr(unsigned long addr, struct > > >> trace_uprobe *tu) > > >>

Re: [PATCH 12/13] tracing/uprobes: Add more fetch functions

2013-11-04 Thread Namhyung Kim
On Mon, 4 Nov 2013 17:44:31 +0100, Oleg Nesterov wrote: > On 11/04, Namhyung Kim wrote: >> >> On Thu, 31 Oct 2013 19:22:18 +0100, Oleg Nesterov wrote: >> > On 10/29, Namhyung Kim wrote: >> >> >> >> +static void __user *get_user_vaddr(unsigned long addr, struct >> >> trace_uprobe *tu) >> >> +{ >> >

Re: [PATCH 12/13] tracing/uprobes: Add more fetch functions

2013-11-04 Thread Namhyung Kim
Hi Steve, On Mon, 4 Nov 2013 12:17:06 -0500, Steven Rostedt wrote: > On Mon, 4 Nov 2013 17:44:31 +0100 > Oleg Nesterov wrote: > >> On 11/04, Namhyung Kim wrote: >> > >> > On Thu, 31 Oct 2013 19:22:18 +0100, Oleg Nesterov wrote: >> > > On 10/29, Namhyung Kim wrote: >> > >> >> > >> +static void __u

Re: [PATCH 12/13] tracing/uprobes: Add more fetch functions

2013-10-31 Thread Oleg Nesterov
On 10/29, Namhyung Kim wrote: > > +static void __user *get_user_vaddr(unsigned long addr, struct trace_uprobe > *tu) > +{ > + unsigned long pgoff = addr >> PAGE_SHIFT; > + struct vm_area_struct *vma; > + struct address_space *mapping; > + unsigned long vaddr = 0; > + > + if (tu

Re: [PATCH 12/13] tracing/uprobes: Add more fetch functions

2013-11-01 Thread Oleg Nesterov
On 10/29, Namhyung Kim wrote: > > +static unsigned long get_user_stack_nth(struct pt_regs *regs, unsigned int n) > +{ > + struct vm_area_struct *vma; > + unsigned long addr = user_stack_pointer(regs); > + bool valid = false; > + unsigned long ret = 0; > + > + down_read(¤t->mm->m