| 75081b9e | 20-Apr-2023 |
Christos Margiolis <christos@FreeBSD.org> |
dtrace: use dtrace_instr_size() in the riscv dtrace_subr.c
No functional change intended.
Reviewed by: mhorne, markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: ht
dtrace: use dtrace_instr_size() in the riscv dtrace_subr.c
No functional change intended.
Reviewed by: mhorne, markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39652
show more ...
|
| c6943b44 | 06-Feb-2023 |
Mitchell Horne <mhorne@FreeBSD.org> |
dtrace: implement riscv dtrace_getustackdepth()
Pretty trivial following other implementations. The existing dtrace_getustack_common() does most of the work.
Reviewed by: markj MFC after: 1 week Sp
dtrace: implement riscv dtrace_getustackdepth()
Pretty trivial following other implementations. The existing dtrace_getustack_common() does most of the work.
Reviewed by: markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38303
show more ...
|
| 38720107 | 06-Feb-2023 |
Jessica Clarke <jrtc27@FreeBSD.org> |
dtrace: Fix RISC-V user stack unwinder
The unwind logic was copied from AArch64 which follows the peculiar AACPS (where, unlike typical RISC architectures, its frame pointer follows an x86/stack mac
dtrace: Fix RISC-V user stack unwinder
The unwind logic was copied from AArch64 which follows the peculiar AACPS (where, unlike typical RISC architectures, its frame pointer follows an x86/stack machine-like convention where the frame pointer points at the bottom of the frame record, not the top). Delete the pointless riscv_frame struct and fix this.
Reviewed by: mhorne MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28054
show more ...
|
| 06faad1d | 06-Feb-2023 |
Mitchell Horne <mhorne@FreeBSD.org> |
dtrace: handle page faults in riscv dtrace_trap()
We must detect the correct amount to increment sepc, as it may have been a compressed instruction that triggered the fault.
Reviewed by: markj MFC
dtrace: handle page faults in riscv dtrace_trap()
We must detect the correct amount to increment sepc, as it may have been a compressed instruction that triggered the fault.
Reviewed by: markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38299
show more ...
|
| cdfa49f2 | 11-Jan-2023 |
Mitchell Horne <mhorne@FreeBSD.org> |
dtrace: dtrace_getpcstack() tweaks for riscv
Backtraces for fbt probes are missing the caller's frame. Despite what the inherited comment claims, we do need to insert this manually on riscv. In fbt_
dtrace: dtrace_getpcstack() tweaks for riscv
Backtraces for fbt probes are missing the caller's frame. Despite what the inherited comment claims, we do need to insert this manually on riscv. In fbt_invop(), set cpu_dtrace_caller to be the return address, not addr.
We should not increment aframes within this function, since we begin the main loop by unwinding past the current frame.
Plus some very small comment/style tweaks.
MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37661
show more ...
|