1/* SPDX-License-Identifier: GPL-2.0+ */
2
3#ifndef _RISCV_KERNEL_KPROBES_DECODE_INSN_H
4#define _RISCV_KERNEL_KPROBES_DECODE_INSN_H
5
6#include <asm/sections.h>
7#include <asm/kprobes.h>
8
9enum probe_insn {
10 INSN_REJECTED,
11 INSN_GOOD_NO_SLOT,
12 INSN_GOOD,
13};
14
15enum probe_insn __kprobes
16riscv_probe_decode_insn(probe_opcode_t *addr, struct arch_probe_insn *asi);
17
18#endif /* _RISCV_KERNEL_KPROBES_DECODE_INSN_H */
19

Provided by KDAB

Privacy Policy
Improve your Profiling and Debugging skills
Find out more

source code of linux/arch/riscv/kernel/probes/decode-insn.h