XenevaOS
Loading...
Searching...
No Matches
stackdepot.h
Go to the documentation of this file.
1/*
2 * DCL stackdepot.h -- lockdep/debug backtraces that are never kept.
3 *
4 * drm_mm.c (CONFIG_DRM_DEBUG_MM) and drm_modeset_lock.c save stacks into
5 * depot handles when debugging allocations; the store is a fixed handle of
6 * 0 and the fetch reports an empty stack, so dump paths print "no stack"
7 * and nothing is allocated.
8 */
9#ifndef _LINUX_STACKDEPOT_H
10#define _LINUX_STACKDEPOT_H
11
12#include <linux/types.h>
13#include <linux/gfp.h>
14
16
17static inline depot_stack_handle_t stack_depot_save(unsigned long *entries,
18 unsigned int nr_entries,
19 gfp_t gfp_flags)
20{
21 (void)entries; (void)nr_entries; (void)gfp_flags;
22 return 0;
23}
24
25static inline void stack_depot_init(void) { }
26
27static inline int stack_depot_fetch(depot_stack_handle_t handle,
28 unsigned long ***entries)
29{
30 (void)handle;
31 *entries = 0;
32 return 0;
33}
34
35static inline int stack_depot_snprint(depot_stack_handle_t handle, char *buf,
36 size_t size, unsigned int skip)
37{
38 (void)handle; (void)buf; (void)size; (void)skip;
39 return 0;
40}
41
42static inline void stack_depot_print(depot_stack_handle_t handle)
43{
44 (void)handle;
45}
46
47#endif /* _LINUX_STACKDEPOT_H */
size_t size
Definition drm_bridge.h:1299
unsigned int gfp_t
Definition kernel.h:56
uint32_t u32
Definition kernel.h:16
u32 depot_stack_handle_t
Definition stackdepot.h:15