-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'csky-for-linus-5.7-rc1' of git://github.com/c-sky/csky-linux
Pull csky updates from Guo Ren: - Add kproobes/uprobes support - Add lockdep, rseq, gcov support - Fixup init_fpu - Fixup ftrace_modify deadlock - Fixup speculative execution on IO area * tag 'csky-for-linus-5.7-rc1' of git://github.com/c-sky/csky-linux: csky: Fixup cpu speculative execution to IO area csky: Add uprobes support csky: Add kprobes supported csky: Enable LOCKDEP_SUPPORT csky: Enable the gcov function csky: Fixup get wrong psr value from phyical reg csky/ftrace: Fixup ftrace_modify_code deadlock without CPU_HAS_ICACHE_INS csky: Implement ftrace with regs csky: Add support for restartable sequence csky: Implement ptrace regs and stack API csky: Fixup init_fpu compile warning with __init
- Loading branch information
Showing
34 changed files
with
1,807 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
|
||
#ifndef __ASM_CSKY_KPROBES_H | ||
#define __ASM_CSKY_KPROBES_H | ||
|
||
#include <asm-generic/kprobes.h> | ||
|
||
#ifdef CONFIG_KPROBES | ||
#include <linux/types.h> | ||
#include <linux/ptrace.h> | ||
#include <linux/percpu.h> | ||
|
||
#define __ARCH_WANT_KPROBES_INSN_SLOT | ||
#define MAX_INSN_SIZE 1 | ||
|
||
#define flush_insn_slot(p) do { } while (0) | ||
#define kretprobe_blacklist_size 0 | ||
|
||
#include <asm/probes.h> | ||
|
||
struct prev_kprobe { | ||
struct kprobe *kp; | ||
unsigned int status; | ||
}; | ||
|
||
/* Single step context for kprobe */ | ||
struct kprobe_step_ctx { | ||
unsigned long ss_pending; | ||
unsigned long match_addr; | ||
}; | ||
|
||
/* per-cpu kprobe control block */ | ||
struct kprobe_ctlblk { | ||
unsigned int kprobe_status; | ||
unsigned long saved_sr; | ||
struct prev_kprobe prev_kprobe; | ||
struct kprobe_step_ctx ss_ctx; | ||
}; | ||
|
||
void arch_remove_kprobe(struct kprobe *p); | ||
int kprobe_fault_handler(struct pt_regs *regs, unsigned int trapnr); | ||
int kprobe_breakpoint_handler(struct pt_regs *regs); | ||
int kprobe_single_step_handler(struct pt_regs *regs); | ||
void kretprobe_trampoline(void); | ||
void __kprobes *trampoline_probe_handler(struct pt_regs *regs); | ||
|
||
#endif /* CONFIG_KPROBES */ | ||
#endif /* __ASM_CSKY_KPROBES_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
|
||
#ifndef __ASM_CSKY_PROBES_H | ||
#define __ASM_CSKY_PROBES_H | ||
|
||
typedef u32 probe_opcode_t; | ||
typedef void (probes_handler_t) (u32 opcode, long addr, struct pt_regs *); | ||
|
||
/* architecture specific copy of original instruction */ | ||
struct arch_probe_insn { | ||
probe_opcode_t *insn; | ||
probes_handler_t *handler; | ||
/* restore address after simulation */ | ||
unsigned long restore; | ||
}; | ||
|
||
#ifdef CONFIG_KPROBES | ||
typedef u32 kprobe_opcode_t; | ||
struct arch_specific_insn { | ||
struct arch_probe_insn api; | ||
}; | ||
#endif | ||
|
||
#endif /* __ASM_CSKY_PROBES_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.