summaryrefslogtreecommitdiff
path: root/include/linux/stacktrace.h
blob: 51efbef38fb0e204cfddb61b56619d52cefab623 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef __LINUX_STACKTRACE_H
#define __LINUX_STACKTRACE_H

struct task_struct;

#ifdef CONFIG_STACKTRACE
struct task_struct;

struct stack_trace {
	unsigned int nr_entries, max_entries;
	unsigned long *entries;
	int skip;	/* input argument: How many entries to skip */
};

extern void save_stack_trace(struct stack_trace *trace);
extern void save_stack_trace_bp(struct stack_trace *trace, unsigned long bp);
extern void save_stack_trace_tsk(struct task_struct *tsk,
				struct stack_trace *trace);

extern void print_stack_trace(struct stack_trace *trace, int spaces);

#ifdef CONFIG_USER_STACKTRACE_SUPPORT
extern void save_stack_trace_user(struct stack_trace *trace);
#else
# define save_stack_trace_user(trace)              do { } while (0)
#endif

#else
# define save_stack_trace(trace)			do { } while (0)
# define save_stack_trace_tsk(tsk, trace)		do { } while (0)
# define save_stack_trace_user(trace)			do { } while (0)
# define print_stack_trace(trace, spaces)		do { } while (0)
#endif

#endif
e limits for posix messages queuesAlexey Gladkov 2024-02-22sysctl: allow change system v ipc sysctls inside ipc namespaceAlexey Gladkov 2023-12-20shm: Slim down dependenciesKent Overstreet 2023-12-20sched.h: move pid helpers to pid.hKent Overstreet 2023-11-02Merge tag 'mm-stable-2023-11-01-14-33' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds 2023-10-25mempolicy: alloc_pages_mpol() for NUMA policy without vmaHugh Dickins 2023-10-18ipc: convert to new timestamp accessorsJeff Layton 2023-08-31Merge tag 'x86_shstk_for_6.6-rc1' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds 2023-08-29Merge tag 'sysctl-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds 2023-08-29Merge tag 'mm-nonmm-stable-2023-08-28-22-48' of git://git.kernel.org/pub/scm/...Linus Torvalds 2023-08-18ipc/sem: use flexible array in 'struct sem_undo'Christophe JAILLET 2023-08-15sysctl: Add a size arg to __register_sysctl_tableJoel Granados 2023-07-24mqueue: convert to ctime accessor functionsJeff Layton 2023-07-11mm: Re-introduce vm_flags to do_mmap()Yu-cheng Yu