All of lore.kernel.org
 help / color / mirror / Atom feed
* Perf counters on SiFive FU540-C000
@ 2019-03-31 14:37 Wladimir J. van der Laan
  2019-04-02 17:57 ` Palmer Dabbelt
  0 siblings, 1 reply; 7+ messages in thread
From: Wladimir J. van der Laan @ 2019-03-31 14:37 UTC (permalink / raw)
  To: linux-riscv; +Cc: Alan Kao

Hello,

I'm planning on doing some optimization work for RISC-V, so I'd like to add
perf support for the performance counters on the FU540-C000—as described in
Section 4.10 of the "SiFive FU540-C000 Manual".

These are very basic: CSRs mhpmevent3 and mhpmevent4 can be used to choose a category
(Instruction Commit Events, Microarchitectural Events, Memory System Events), then
from these categories a bitmask of events can be set that will increase the associated
counter when they happen. I don't understand the rationale for counting multiple
kinds of events in one register, so from what I understand, two counters can be
supported at once in the perf interface.

I found some documentation about platform specfic counters in Documentation/riscv/pmu.txt,
hopefully this is enough to get me started.
(If someone started work on this, please let me know)

Kind regards,
Wladimir van der Laan

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

end of thread, other threads:[~2019-04-03 22:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-31 14:37 Perf counters on SiFive FU540-C000 Wladimir J. van der Laan
2019-04-02 17:57 ` Palmer Dabbelt
2019-04-03  1:04   ` Alan Kao
2019-04-03  8:42     ` Wladimir J. van der Laan
2019-04-03  9:27       ` Alan Kao
2019-04-03  9:58         ` Wladimir J. van der Laan
2019-04-03 22:15       ` Palmer Dabbelt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.