[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH 0/5] stop collection of instruction usage statistics
From: |
Luis Fernando Fujita Pires |
Subject: |
RE: [PATCH 0/5] stop collection of instruction usage statistics |
Date: |
Thu, 27 May 2021 15:39:10 +0000 |
From: Alex Bennée <alex.bennee@linaro.org>
> Ahh OK. If you wanted to you could probably re-create that information using
> the howvec plugin (see contrib/plugins/howvec) if the decode tables where
> added for PPC.
Interesting. I hadn't looked at the plugin mechanism before. In this
hypothetical case, if we wanted to get the execution count for each
instruction, we could also automatically generate the instruction decoding code
based on decodetree. Then it would work for any architecture that uses
decodetree.
I just realized that the ppc code wasn't counting instruction executions, but
translations. A slightly modified version of howvec would also take care of
that by counting the instructions directly in vcpu_tb_trans(), without even
registering execution callbacks. Again, all hypothetical - but neat. :)
--
Luis Pires
Instituto de Pesquisas ELDORADO <http://www.eldorado.org.br>
Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>
- Re: [PATCH 4/5] monitor: removed cpustats command, (continued)