1802d0beec
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 655 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070034.575739538@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
48 lines
1.1 KiB
C
48 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* arch/arm/probes/kprobes/checkers.h
|
|
*
|
|
* Copyright (C) 2014 Huawei Inc.
|
|
*/
|
|
#ifndef _ARM_KERNEL_PROBES_CHECKERS_H
|
|
#define _ARM_KERNEL_PROBES_CHECKERS_H
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/types.h>
|
|
#include "../decode.h"
|
|
|
|
extern probes_check_t checker_stack_use_none;
|
|
extern probes_check_t checker_stack_use_unknown;
|
|
#ifdef CONFIG_THUMB2_KERNEL
|
|
extern probes_check_t checker_stack_use_imm_0xx;
|
|
#else
|
|
extern probes_check_t checker_stack_use_imm_x0x;
|
|
#endif
|
|
extern probes_check_t checker_stack_use_imm_xxx;
|
|
extern probes_check_t checker_stack_use_stmdx;
|
|
|
|
enum {
|
|
STACK_USE_NONE,
|
|
STACK_USE_UNKNOWN,
|
|
#ifdef CONFIG_THUMB2_KERNEL
|
|
STACK_USE_FIXED_0XX,
|
|
STACK_USE_T32STRD,
|
|
#else
|
|
STACK_USE_FIXED_X0X,
|
|
#endif
|
|
STACK_USE_FIXED_XXX,
|
|
STACK_USE_STMDX,
|
|
NUM_STACK_USE_TYPES
|
|
};
|
|
|
|
extern const union decode_action stack_check_actions[];
|
|
|
|
#ifndef CONFIG_THUMB2_KERNEL
|
|
extern const struct decode_checker arm_stack_checker[];
|
|
extern const struct decode_checker arm_regs_checker[];
|
|
#else
|
|
#endif
|
|
extern const struct decode_checker t32_stack_checker[];
|
|
extern const struct decode_checker t16_stack_checker[];
|
|
#endif
|