mmacy 33d22ed3f8 hwpmc: simplify calling convention for hwpmc interrupt handling
pmc_process_interrupt takes 5 arguments when only 3 are needed.
cpu is always available in curcpu and inuserspace can always be
derived from the passed trapframe.

While facially a reasonable cleanup this change was motivated
by the need to workaround a compiler bug.

core2_intr(cpu, tf) ->
  pmc_process_interrupt(cpu, ring, pmc, tf, inuserspace) ->
    pmc_add_sample(cpu, ring, pm, tf, inuserspace)

In the process of optimizing the tail call the tf pointer was getting
clobbered:

(kgdb) up
    at /storage/mmacy/devel/freebsd/sys/dev/hwpmc/hwpmc_mod.c:4709
4709                                pmc_save_kernel_callchain(ps->ps_pc,
(kgdb) up
1205                    error = pmc_process_interrupt(cpu, PMC_HR, pm, tf,

resulting in a crash in pmc_save_kernel_callchain.
2018-06-08 04:58:03 +00:00
..
2018-06-01 19:42:59 +00:00
2017-09-14 15:34:45 +00:00
2018-05-24 17:06:00 +00:00
2018-05-06 00:45:41 +00:00
2018-05-22 15:49:23 +00:00
2018-04-13 20:30:49 +00:00
2018-05-28 02:34:38 +00:00
2018-05-15 13:30:59 +00:00
2017-12-30 19:27:22 +00:00
2018-05-17 10:13:18 +00:00
2018-03-14 18:27:06 +00:00
2018-03-28 07:59:16 +00:00
2017-11-30 20:33:45 +00:00
2018-06-07 13:57:34 +00:00
2018-05-25 19:00:28 +00:00
2017-11-30 20:33:45 +00:00
2018-04-08 22:59:34 +00:00
2018-05-25 03:34:33 +00:00
2018-06-05 15:05:26 +00:00
2017-10-21 07:23:45 +00:00
2017-11-30 20:33:45 +00:00
2018-04-13 20:30:49 +00:00
2018-04-28 17:43:20 +00:00
2018-04-23 16:38:27 +00:00
2018-06-05 09:52:38 +00:00
2018-01-03 00:56:30 +00:00
2018-01-13 16:31:07 +00:00
2018-05-24 10:20:42 +00:00