opnsense-src/sys/cddl/dev/dtrace
Mitchell Horne cdfa49f258 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
2023-01-12 11:04:58 -04:00
..
aarch64 dtrace: remove unused defines 2023-01-12 11:04:47 -04:00
amd64 dtrace: Drop illumos ifdefs for CPU register definitions 2022-10-12 16:06:33 -04:00
arm dtrace: remove unused defines 2023-01-12 11:04:47 -04:00
i386 dtrace: Add a "regs" variable 2022-10-04 13:05:54 -04:00
powerpc dtrace: Add a "regs" variable 2022-10-04 13:05:54 -04:00
riscv dtrace: dtrace_getpcstack() tweaks for riscv 2023-01-12 11:04:58 -04:00
x86 dtrace: Drop illumos ifdefs for CPU register definitions 2022-10-12 16:06:33 -04:00
dtrace_anon.c
dtrace_cddl.h kinst: Initial revision 2022-10-11 18:19:08 -04:00
dtrace_debug.c Fix a backwards comparison in the code to dump a DTrace debug buffer. 2017-03-13 18:43:00 +00:00
dtrace_hacks.c Fix DTrace's panic() action. 2015-04-24 03:19:30 +00:00
dtrace_ioctl.c Don't use pcpu_find() to determine if a CPU ID is valid. 2017-11-27 18:42:23 +00:00
dtrace_load.c dtrace: use %zu format specifier for data of size_t type 2021-08-09 00:27:04 +03:00
dtrace_modevent.c
dtrace_sysctl.c dtrace: add a knob to control maximum size of principal buffers 2022-01-11 15:47:50 +02:00
dtrace_test.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
dtrace_unload.c Adjust dtrace_unload() definition to avoid clang 15 warning 2022-07-19 20:48:47 +02:00
dtrace_vtime.c