stacktrace.h (cdd38c5f1ce4398ec58fec95904b75824daab7b5) stacktrace.h (44b979fa302cab91bdd2cc982823e5c13202cd4e)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 1991, 1992 Linus Torvalds
4 * Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs
5 */
6
7#ifndef _ASM_X86_STACKTRACE_H
8#define _ASM_X86_STACKTRACE_H

--- 24 unchanged lines hidden (view full) ---

33
34bool in_entry_stack(unsigned long *stack, struct stack_info *info);
35
36int get_stack_info(unsigned long *stack, struct task_struct *task,
37 struct stack_info *info, unsigned long *visit_mask);
38bool get_stack_info_noinstr(unsigned long *stack, struct task_struct *task,
39 struct stack_info *info);
40
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 1991, 1992 Linus Torvalds
4 * Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs
5 */
6
7#ifndef _ASM_X86_STACKTRACE_H
8#define _ASM_X86_STACKTRACE_H

--- 24 unchanged lines hidden (view full) ---

33
34bool in_entry_stack(unsigned long *stack, struct stack_info *info);
35
36int get_stack_info(unsigned long *stack, struct task_struct *task,
37 struct stack_info *info, unsigned long *visit_mask);
38bool get_stack_info_noinstr(unsigned long *stack, struct task_struct *task,
39 struct stack_info *info);
40
41static __always_inline
42bool get_stack_guard_info(unsigned long *stack, struct stack_info *info)
43{
44 /* make sure it's not in the stack proper */
45 if (get_stack_info_noinstr(stack, current, info))
46 return false;
47 /* but if it is in the page below it, we hit a guard */
48 return get_stack_info_noinstr((void *)stack + PAGE_SIZE, current, info);
49}
50
41const char *stack_type_name(enum stack_type type);
42
43static inline bool on_stack(struct stack_info *info, void *addr, size_t len)
44{
45 void *begin = info->begin;
46 void *end = info->end;
47
48 return (info->type != STACK_TYPE_UNKNOWN &&

--- 56 unchanged lines hidden ---
51const char *stack_type_name(enum stack_type type);
52
53static inline bool on_stack(struct stack_info *info, void *addr, size_t len)
54{
55 void *begin = info->begin;
56 void *end = info->end;
57
58 return (info->type != STACK_TYPE_UNKNOWN &&

--- 56 unchanged lines hidden ---