riscv: fix kernel buildA more complete fix for this function is being worked on in D28054. Fixthe uninitialized variable error so that builds can at least proceed.Reported by: several
Changes that improve DTrace FBT reliability on freebsd/arm64:- Implement a dtrace_getnanouptime(), matching the existing dtrace_getnanotime(), to avoid DTrace calling out to a potentially instr
Changes that improve DTrace FBT reliability on freebsd/arm64:- Implement a dtrace_getnanouptime(), matching the existing dtrace_getnanotime(), to avoid DTrace calling out to a potentially instrumentable function. (These should probably both be under KDTRACE_HOOKS. Also, it's not clear to me that they are correct implementations for the DTrace thread time functions they are used in .. fixes for another commit.)- Don't allow FBT to instrument functions involved in EL1 exception handling that are involved in FBT trap processing: handle_el1h_sync() and do_el1h_sync().- Don't allow FBT to instrument DDB and KDB functions, as that makes it rather harder to debug FBT problems.Prior to these changes, use of FBT on FreeBSD/arm64 rapidly led to kernelpanics due to recursion in DTrace.Reliable FBT on FreeBSD/arm64 is reliant on another change from @andrew tohave the aarch64 instrumentor more carefully check that instructions itreplaces are against the stack pointer, which can otherwise lead to memorycorruption. That change remains under review.MFC after: 2 weeksReviewed by: andrew, kp, markj (earlier version), jrtc27 (earlier version)Differential revision: https://reviews.freebsd.org/D27766
show more ...
Stack unwinding robustness fixes for RISC-V.- Push the kstack_contains check down into unwind_frame() so that it is honored by DDB and DTrace.- Check that the trapframe for an exception frame i
Stack unwinding robustness fixes for RISC-V.- Push the kstack_contains check down into unwind_frame() so that it is honored by DDB and DTrace.- Check that the trapframe for an exception frame is contained in the traced thread's kernel stack for DDB traces.Reviewed by: markjObtained from: CheriBSDSponsored by: DARPADifferential Revision: https://reviews.freebsd.org/D27357
Use uintptr_t for pointers in stack frames.This catches up to the changes made to struct unwind_state in r364180.Reviewed by: mhorneObtained from: CheriBSDSponsored by: DARPADifferential Revis
Use uintptr_t for pointers in stack frames.This catches up to the changes made to struct unwind_state in r364180.Reviewed by: mhorneObtained from: CheriBSDSponsored by: DARPADifferential Revision: https://reviews.freebsd.org/D27360
Fix build after r367020DTrace also relies on these definitions.Reported by: jenkins
dtrace: fix fbt return probes on RISC-VReturn values are passed in a0, so read it from there. We also pass a1 throughto userspace, as the ABI allows small structs to be returned in registersa0/a1
dtrace: fix fbt return probes on RISC-VReturn values are passed in a0, so read it from there. We also pass a1 throughto userspace, as the ABI allows small structs to be returned in registersa0/a1. While here read the register values directly from the trapframe ratherthan rtval, and remove the now unneeded argument from dtrace_invop().Set fbtp_roffset so that we get the correct return location in arg0.Reviewed by: markjSponsored by: AxiadoDifferential Revision: https://reviews.freebsd.org/D26389
Fix entering KDB with dtrace-enabled kernel.Reviewed by: markj, jhbDifferential Revision: https://reviews.freebsd.org/D24018
Add support for 'C'-compressed ISA extension to DTrace FBT provider.Approved by: re (kib)Sponsored by: DARPA, AFRL
Rename assym.s to assym.incassym is only to be included by other .s files, and should neveractually be assembled by itself.Reviewed by: imp, bdrewery (earlier)Sponsored by: The FreeBSD Foundati
Rename assym.s to assym.incassym is only to be included by other .s files, and should neveractually be assembled by itself.Reviewed by: imp, bdrewery (earlier)Sponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D14180
Corrected misspelled versions of rendezvous.The MFC will include a compat definition of smp_no_rendevous_barrier()that calls smp_no_rendezvous_barrier().Reviewed by: gnn, kibMFC after: 1 weekD
Corrected misspelled versions of rendezvous.The MFC will include a compat definition of smp_no_rendevous_barrier()that calls smp_no_rendezvous_barrier().Reviewed by: gnn, kibMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D10313
Fix improper use of "its".Sponsored by: Dell EMC Isilon
Update RISC-V port to Privileged Architecture Version 1.9.Sponsored by: DARPA, AFRLSponsored by: HEIF5
Correct the implementation of dtrace_interrupt_disable/enable.Pointed out by: andrewSponsored by: DARPA, AFRLSponsored by: HEIF5
Add initial DTrace support for RISC-V.Sponsored by: DARPA, AFRLSponsored by: HEIF5