qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Reorg ppc64 pmu insn counting
@ 2021-12-23  3:01 Richard Henderson
  2021-12-23  3:01 ` [PATCH 1/3] target/ppc: Cache per-pmc insn and cycle count settings Richard Henderson
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Richard Henderson @ 2021-12-23  3:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: danielhb413, qemu-ppc, clg, david

In contrast to Daniel's version, the code stays in power8-pmu.c,
but is better organized to not take so much overhead.

Before:

    32.97%  qemu-system-ppc  qemu-system-ppc64   [.] pmc_get_event
    20.22%  qemu-system-ppc  qemu-system-ppc64   [.] helper_insns_inc
     4.52%  qemu-system-ppc  qemu-system-ppc64   [.] hreg_compute_hflags_value
     3.30%  qemu-system-ppc  qemu-system-ppc64   [.] helper_lookup_tb_ptr
     2.68%  qemu-system-ppc  qemu-system-ppc64   [.] tcg_gen_code
     2.28%  qemu-system-ppc  qemu-system-ppc64   [.] cpu_exec
     1.84%  qemu-system-ppc  qemu-system-ppc64   [.] pmu_insn_cnt_enabled

After:

     8.42%  qemu-system-ppc  qemu-system-ppc64   [.] hreg_compute_hflags_value
     6.65%  qemu-system-ppc  qemu-system-ppc64   [.] cpu_exec
     6.63%  qemu-system-ppc  qemu-system-ppc64   [.] helper_insns_inc


r~


Richard Henderson (3):
  target/ppc: Cache per-pmc insn and cycle count settings
  target/ppc: Rewrite pmu_increment_insns
  target/ppc: Use env->pnc_cyc_cnt

 target/ppc/cpu.h         |   3 +
 target/ppc/power8-pmu.h  |  14 +--
 target/ppc/cpu_init.c    |   1 +
 target/ppc/helper_regs.c |   2 +-
 target/ppc/machine.c     |   2 +
 target/ppc/power8-pmu.c  | 230 ++++++++++++++++-----------------------
 6 files changed, 108 insertions(+), 144 deletions(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-01-04 19:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-23  3:01 [PATCH 0/3] Reorg ppc64 pmu insn counting Richard Henderson
2021-12-23  3:01 ` [PATCH 1/3] target/ppc: Cache per-pmc insn and cycle count settings Richard Henderson
2021-12-23  3:01 ` [PATCH 2/3] target/ppc: Rewrite pmu_increment_insns Richard Henderson
2021-12-23  3:01 ` [PATCH 3/3] target/ppc: Use env->pnc_cyc_cnt Richard Henderson
2021-12-23 20:36 ` [PATCH 0/3] Reorg ppc64 pmu insn counting Daniel Henrique Barboza
2021-12-23 21:19   ` Richard Henderson
2021-12-23 22:47     ` Daniel Henrique Barboza
2021-12-30 22:12     ` Daniel Henrique Barboza
2022-01-03  6:48       ` Cédric Le Goater
2022-01-03 11:10         ` Daniel Henrique Barboza
2022-01-03 15:07   ` Alex Bennée
2022-01-03 18:06     ` Daniel Henrique Barboza
2022-01-04 10:32       ` Alex Bennée
2022-01-04 19:56         ` Daniel Henrique Barboza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).