Re: [PATCH] mm: Generalize and rename notify_page_fault() as kprobe_page_fault()

2019-06-13 Thread Anshuman Khandual
On 06/14/2019 01:34 AM, Andrew Morton wrote: > On Thu, 13 Jun 2019 15:37:24 +0530 Anshuman Khandual > wrote: > >> Architectures which support kprobes have very similar boilerplate around >> calling kprobe_fault_handler(). Use a helper function in kprobes.h to unify >> them, based on the x86 co

Re: ARC Assembler: bundle_align_mode directive support

2019-06-13 Thread Vineet Gupta
On 6/13/19 11:14 AM, Eugeniy Paltsev wrote: > BTW: > there is discussion in Linux ML about implementation of static calls. > The idea is to patch immediate operand in jump instruction instead of using > function pointers to optimize hot code. > @vineet I bet you'll like this :) > > Current v3 patc

Re: [PATCH] mm: Generalize and rename notify_page_fault() as kprobe_page_fault()

2019-06-13 Thread Andrew Morton
On Thu, 13 Jun 2019 15:37:24 +0530 Anshuman Khandual wrote: > Architectures which support kprobes have very similar boilerplate around > calling kprobe_fault_handler(). Use a helper function in kprobes.h to unify > them, based on the x86 code. > > This changes the behaviour for other architectu

Re: ARC Assembler: bundle_align_mode directive support

2019-06-13 Thread Eugeniy Paltsev
On Tue, 2019-06-11 at 16:01 -0700, Vineet Gupta wrote: > On 6/11/19 11:47 AM, Eugeniy Paltsev wrote: > > Hi Vineet, > > > > On Mon, 2019-06-10 at 15:55 +, Vineet Gupta wrote: > > > On 6/8/19 11:21 AM, Eugeniy Paltsev wrote: > > > > Hi Cupertino, > > > > > > > > I tried to use ".bundle_align_m

Re: [PATCH] mm: Generalize and rename notify_page_fault() as kprobe_page_fault()

2019-06-13 Thread Vineet Gupta
+CC Masami San On 6/13/19 3:07 AM, Anshuman Khandual wrote: > Questions: > > AFAICT there is no equivalent of erstwhile notify_page_fault() during page > fault handling in arc and mips archs which can call this generic function. > Please let me know if that is not the case. For ARC do_page_fault

[PATCH] mm: Generalize and rename notify_page_fault() as kprobe_page_fault()

2019-06-13 Thread Anshuman Khandual
Architectures which support kprobes have very similar boilerplate around calling kprobe_fault_handler(). Use a helper function in kprobes.h to unify them, based on the x86 code. This changes the behaviour for other architectures when preemption is enabled. Previously, they would have disabled pree