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-03-21 21:38:35 +00:00
2015-04-22 14:38:58 +00:00
2016-02-23 23:37:10 +00:00
2016-04-15 17:45:12 +00:00
2015-01-22 11:12:42 +00:00
2016-04-26 12:29:47 +00:00
2015-11-19 05:50:22 +00:00
2016-05-04 13:48:59 +00:00
2016-03-21 21:38:35 +00:00
2016-03-21 21:38:35 +00:00
2016-04-29 22:15:33 +00:00
2015-03-17 14:16:50 +00:00
2016-04-14 17:07:26 +00:00
2016-04-29 21:54:28 +00:00