Add __stack_depot_save(), which provides more fine-grained control over stackdepot's memory allocation behaviour, in case stackdepot runs out of "stack slabs". Normally stackdepot uses alloc_pages() in case it runs out of space; passing can_alloc==false to __stack_depot_save() prohibits this, at the cost of more likely failure to record a stack trace.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -15,6 +15,10 @@ · 14 unmodified lines | |||
| 15 | 15 | ||
| 16 | typedef u32 depot_stack_handle_t; | 16 | typedef u32 depot_stack_handle_t; |
| 17 | 17 | ||
| 18 | depot_stack_handle_t __stack_depot_save(unsigned long *entries, | ||
| 19 | unsigned int nr_entries, | ||
| 20 | gfp_t gfp_flags, bool can_alloc); | ||
| 21 | |||
| 18 | depot_stack_handle_t stack_depot_save(unsigned long *entries, | 22 | depot_stack_handle_t stack_depot_save(unsigned long *entries, |
| 19 | unsigned int nr_entries, gfp_t gfp_flags); | 23 | unsigned int nr_entries, gfp_t gfp_flags); |
| 20 | 24 | ||