[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v9 01/13] accel/tcg: introduce TBStatistics structure
From: |
Richard Henderson |
Subject: |
Re: [PATCH v9 01/13] accel/tcg: introduce TBStatistics structure |
Date: |
Tue, 8 Oct 2019 08:35:59 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 10/7/19 11:28 AM, Alex Bennée wrote:
> From: "Vanderson M. do Rosario" <address@hidden>
>
> To store statistics for each TB, we created a TBStatistics structure
> which is linked with the TBs. TBStatistics can stay alive after
> tb_flush and be relinked to a regenerated TB. So the statistics can
> be accumulated even through flushes.
>
> The goal is to have all present and future qemu/tcg statistics and
> meta-data stored in this new structure.
>
> Reviewed-by: Alex Bennée <address@hidden>
> Signed-off-by: Vanderson M. do Rosario <address@hidden>
> Message-Id: <address@hidden>
> [AJB: fix git author, review comments]
> Signed-off-by: Alex Bennée <address@hidden>
>
> ---
> AJB
> - move tcg_collect_tb_stats inside tb-stats.c
> - add spdx header
> - drop tb from tbstats and associated functions
> ---
The only quibble I have is with
> +void init_tb_stats_htable_if_not(void);
If not what?
I can only imagine that this phrase is intended to finish "if not initialized".
But I think it's clearer to just call this "init_tb_stats_htable".
> +void enable_collect_tb_stats(void)
> +{
> + init_tb_stats_htable_if_not();
Why do we need to do this again, since we did this in tb_htable_init?
r~
- [PATCH v9 00/13] TCG code quality tracking and perf integration, Alex Bennée, 2019/10/07
- [PATCH v9 02/13] accel: collecting TB execution count, Alex Bennée, 2019/10/07
- [PATCH v9 03/13] accel: collecting JIT statistics, Alex Bennée, 2019/10/07
- [PATCH v9 01/13] accel/tcg: introduce TBStatistics structure, Alex Bennée, 2019/10/07
- Re: [PATCH v9 01/13] accel/tcg: introduce TBStatistics structure,
Richard Henderson <=
- [PATCH v9 06/13] debug: add -d tb_stats to control TBStatistics collection:, Alex Bennée, 2019/10/07
- [PATCH v9 07/13] monitor: adding tb_stats hmp command, Alex Bennée, 2019/10/07
- [PATCH v9 04/13] accel: replacing part of CONFIG_PROFILER with TBStats, Alex Bennée, 2019/10/07
- [PATCH v9 08/13] tb-stats: reset the tracked TBs on a tb_flush, Alex Bennée, 2019/10/07