Andrew Turner 974692e3bf Limit calling pmc_hook to when the interrupt comes while running userspace.
We may enable interrupts from within the callback, e.g. in a data abort
during copyin. If we receive an interrupt at that time pmc_hook will be
called again and, as it is handling userspace stack tracing, will hit a
KASSERT as it checks if the trapframe is from userland.

With this I can run hwpmc with intrng on a ThunderX and have it trace all
CPUs.

Obtained from:	ABT Systems Ltd
Sponsored by:	The FreeBSD Foundation
2016-05-24 12:06:56 +00:00
..
2016-05-23 20:13:17 +00:00
2016-05-20 03:22:41 +00:00
2016-05-03 21:51:52 +00:00
2016-05-10 20:14:11 +00:00
2016-05-23 13:59:48 +00:00
2016-05-03 18:05:43 +00:00
2016-04-29 16:07:25 +00:00
2016-05-17 12:52:31 +00:00
2016-05-06 01:49:46 +00:00
2016-05-17 12:52:31 +00:00