History

lib/stackdepot: introduce __stack_depot_save()

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.

Marco Elver committed 5 years ago

Commit 11ac25c1 parent 7f2b8812 files · +41 −6Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/stackdepot.h+4−0
@@ -15,6 +15,10 @@ · 14 unmodified lines
1515
1616 typedef u32 depot_stack_handle_t;
1717
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+
1822 depot_stack_handle_t stack_depot_save(unsigned long *entries,
1923 unsigned int nr_entries, gfp_t gfp_flags);
2024

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t