diff options
Diffstat (limited to 'include/linux/stackdepot.h')
| -rw-r--r-- | include/linux/stackdepot.h | 11 | 
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/stackdepot.h b/include/linux/stackdepot.h index 6bb4bc1a5f54..c34b55a6e554 100644 --- a/include/linux/stackdepot.h +++ b/include/linux/stackdepot.h @@ -11,15 +11,24 @@  #ifndef _LINUX_STACKDEPOT_H  #define _LINUX_STACKDEPOT_H +#include <linux/gfp.h> +  typedef u32 depot_stack_handle_t; +depot_stack_handle_t __stack_depot_save(unsigned long *entries, +					unsigned int nr_entries, +					gfp_t gfp_flags, bool can_alloc); +  depot_stack_handle_t stack_depot_save(unsigned long *entries,  				      unsigned int nr_entries, gfp_t gfp_flags);  unsigned int stack_depot_fetch(depot_stack_handle_t handle,  			       unsigned long **entries); -unsigned int filter_irq_stacks(unsigned long *entries, unsigned int nr_entries); +int stack_depot_snprint(depot_stack_handle_t handle, char *buf, size_t size, +		       int spaces); + +void stack_depot_print(depot_stack_handle_t stack);  #ifdef CONFIG_STACKDEPOT  int stack_depot_init(void);  |