Re: [PATCH] mm/page_alloc.c: Allow error injection

2018-12-14 Thread Vlastimil Babka
On 12/14/18 8:43 AM, Benjamin Poirier wrote: > Model call chain after should_failslab(). Likewise, we can now use a kprobe > to override the return value of should_fail_alloc_page() and inject > allocation failures into alloc_page*(). I'd be more explicit about both the advantages and

[PATCH] mm/page_alloc.c: Allow error injection

2018-12-13 Thread Benjamin Poirier
Model call chain after should_failslab(). Likewise, we can now use a kprobe to override the return value of should_fail_alloc_page() and inject allocation failures into alloc_page*(). Signed-off-by: Benjamin Poirier --- include/asm-generic/error-injection.h | 1 + mm/page_alloc.c