aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/zfs
diff options
context:
space:
mode:
authorZachary Leaf <zachary.leaf@arm.com>2024-07-31 08:23:24 +0000
committerAndrew Turner <andrew@FreeBSD.org>2024-09-09 16:03:19 +0000
commitf05795e3f65f305cb770ae91d8e9c8f05d267e0d (patch)
tree3ecc564038e265842f9846fcbeef8ed0ecccead2 /sys/modules/zfs
parent610348a90467980de0498fab8dfdddf221d7a604 (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