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

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 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 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

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

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_area_struct *vma; +

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 o...@redhat.com 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) +{ + unsigned long pgoff =

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 o...@redhat.com 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

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_space *mapping; +

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; > + > +

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; + +

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

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 == NULL) {

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

2013-10-29 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:

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

2013-10-29 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com 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 cheol@lge.com Reviewed-by: Masami Hiramatsu

[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:

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

2013-09-02 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com 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 cheol@lge.com Reviewed-by: Masami Hiramatsu

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

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:

[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)

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

2013-08-27 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com 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 cheol@lge.com Cc: Masami Hiramatsu

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 namhyung@lge.com 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 cheol@lge.com

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 namhyung@lge.com Implement uprobe-specific stack and memory fetch functions and add them to the uprobes_fetch_type_table. Other fetch fucntions will be

[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)

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

2013-08-09 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com 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 cheol@lge.com Cc: Masami Hiramatsu