Re: [PATCH 0/3] kprobes: add new dma insn slot cache for s390

2013-08-23 Thread Masami Hiramatsu
(2013/08/23 17:09), Heiko Carstens wrote: > On Fri, Aug 23, 2013 at 01:31:23PM +0900, Masami Hiramatsu wrote: >> (2013/08/22 14:52), Heiko Carstens wrote: >>> Therefore I need to different insn slot caches, where the slots are either >>> allocated with __get_free_page(GFP_KERNEL | GFP_DMA) (for the

Re: Re: [PATCH 0/3] kprobes: add new dma insn slot cache for s390

2013-08-23 Thread Heiko Carstens
On Fri, Aug 23, 2013 at 01:31:23PM +0900, Masami Hiramatsu wrote: > (2013/08/22 14:52), Heiko Carstens wrote: > > Therefore I need to different insn slot caches, where the slots are either > > allocated with __get_free_page(GFP_KERNEL | GFP_DMA) (for the kernel image) > > or module_alloc(PAGE_SIZE)

Re: Re: [PATCH 0/3] kprobes: add new dma insn slot cache for s390

2013-08-22 Thread Masami Hiramatsu
(2013/08/22 14:52), Heiko Carstens wrote: > Hi Masami, > >> (2013/08/21 21:01), Heiko Carstens wrote: >>> The current kpropes insn caches allocate memory areas for insn slots with >>> module_alloc(). The assumption is that the kernel image and module area >>> are both within the same +/- 2GB memor

Re: [PATCH 0/3] kprobes: add new dma insn slot cache for s390

2013-08-21 Thread Heiko Carstens
Hi Masami, > (2013/08/21 21:01), Heiko Carstens wrote: > > The current kpropes insn caches allocate memory areas for insn slots with > > module_alloc(). The assumption is that the kernel image and module area > > are both within the same +/- 2GB memory area. > > This however is not true for s390 w

Re: [PATCH 0/3] kprobes: add new dma insn slot cache for s390

2013-08-21 Thread Masami Hiramatsu
Hi Heiko, (2013/08/21 21:01), Heiko Carstens wrote: > The current kpropes insn caches allocate memory areas for insn slots with > module_alloc(). The assumption is that the kernel image and module area > are both within the same +/- 2GB memory area. > This however is not true for s390 where the ke

[PATCH 0/3] kprobes: add new dma insn slot cache for s390

2013-08-21 Thread Heiko Carstens
The current kpropes insn caches allocate memory areas for insn slots with module_alloc(). The assumption is that the kernel image and module area are both within the same +/- 2GB memory area. This however is not true for s390 where the kernel image resides within the first 2GB (DMA memory area), bu