pt: Switch to swi(9)The pt hwt(4) backend uses NMIs to receive updates about the latest tracing buffer offsets from the tracing hardware. However, it usestaskqueue(9) to schedule the bottom-half
pt: Switch to swi(9)The pt hwt(4) backend uses NMIs to receive updates about the latest tracing buffer offsets from the tracing hardware. However, it usestaskqueue(9) to schedule the bottom-half handler. This can lead toa panic since the taskqueue(9) code isn't aware it's being calledfrom an NMI context and uses the regular scheduling interfaces.Fix this by scheduling the bottom-half handler using swi(9) and theSWI_FROMNMI flag.Fixes: 310162ea218aMFC after: 3 daysDifferential Revision: https://reviews.freebsd.org/D52491
show more ...
pt: Include missing sys/lock.h headerFixes: 310162ea218a
hwt(4): Add Intel Processor Trace backendDifferential Revision: https://reviews.freebsd.org/D46397Reviewed by: kib, markj, br