XenevaOS
Loading...
Searching...
No Matches
stacktrace.h
Go to the documentation of this file.
1/*
2 * DCL stacktrace.h -- stack_trace_save() records nothing.
3 *
4 * drm_mm.c/drm_modeset_lock.c ask for call stacks when debug printing;
5 * returning 0 entries makes their dump loops print an empty stack, which is
6 * the honest answer without CONFIG_STACKTRACE.
7 */
8#ifndef _LINUX_STACKTRACE_H
9#define _LINUX_STACKTRACE_H
10
11#include <linux/types.h>
12
14 unsigned int nr_entries;
15 unsigned int max_entries;
16 unsigned long *entries;
17 int skip;
18};
19
20static inline unsigned int stack_trace_save(unsigned long *entries,
21 unsigned int size,
22 unsigned int skip)
23{
24 (void)entries; (void)size; (void)skip;
25 return 0;
26}
27
28static inline int stack_trace_snprint(char *buf, size_t size,
29 const unsigned long *entries,
30 unsigned int nr_entries,
31 unsigned int skip)
32{
33 (void)buf; (void)size; (void)entries; (void)nr_entries; (void)skip;
34 return 0;
35}
36
37#endif /* _LINUX_STACKTRACE_H */
size_t size
Definition drm_bridge.h:1299
Definition stacktrace.h:13
unsigned int nr_entries
Definition stacktrace.h:14
int skip
Definition stacktrace.h:17
unsigned int max_entries
Definition stacktrace.h:15
unsigned long * entries
Definition stacktrace.h:16