opnsense-src/sys/cddl/dev
Mark Johnston 3ba8e9dc4a dtrace/amd64: Implement emulation of call instructions
Here, the provider is responsible for updating the trapframe to redirect
control flow and for computing the return address.  Once software-saved
registers are restored, the emulation shifts the remaining context down
on the stack to make space for the return address, then copies the
address provided by the invop handler.  dtrace_invop() is modified to
allocate temporary storage space on the stack for use by the provider to
return the return address.

This is to support a new provider for amd64 which can instrument
arbitrary instructions, not just function entry and exit instructions as
FBT does.

In collaboration with:	christos
Sponsored by:	Google, Inc. (GSoC 2022)
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2022-08-09 18:34:01 -04:00
..
dtmalloc Adjust dtmalloc_unload() definition to avoid clang 15 warning 2022-07-19 20:37:08 +02:00
dtrace dtrace/amd64: Implement emulation of call instructions 2022-08-09 18:34:01 -04:00
fbt fbt/x86: Extract arg1 for return probes from the trapframe 2022-08-09 18:34:01 -04:00
profile Adjust profile_unload() definition to avoid clang 15 warning 2022-07-19 20:42:52 +02:00
sdt sdt: Create providers and probes in separate passes when loading sdt.ko 2020-12-03 17:10:00 +00:00
systrace kern: drop remaining references to removed makesyscalls.sh 2021-09-09 19:40:54 -05:00
prototype.c Adjust prototype_unload() definition to avoid clang 15 warning 2022-07-20 17:13:49 +02:00