diff options
author | Zachary Leaf <zachary.leaf@arm.com> | 2024-07-31 08:23:24 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2024-09-09 16:03:19 +0000 |
commit | f05795e3f65f305cb770ae91d8e9c8f05d267e0d (patch) | |
tree | 3ecc564038e265842f9846fcbeef8ed0ecccead2 /sys/modules/zfs | |
parent | 610348a90467980de0498fab8dfdddf221d7a604 (diff) |
arm64: write PID in CONTEXTIDR_EL1 on ctx switch
Debug and trace features such as Statistical Profiling Extension (SPE)
use the CONTEXTIDR_EL1 register to get the PID of the current process.
Add a sysctl switch to toggle writing the current PID into this register
in the thread switcher.
To make use of the feature, the following sysctl switch must be set:
sysctl machdep.pid_in_contextidr=1
Kernel code can also toggle the sysctl by writing directly to the global
var behind the sysctl arm64_pid_in_contextidr:
extern bool arm64_pid_in_contextidr;
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D46192
Diffstat (limited to 'sys/modules/zfs')
0 files changed, 0 insertions, 0 deletions