Re: [PATCH v14 03/10] accel: collecting TB execution count

2023-06-01 Thread Richard Henderson
On 6/1/23 18:54, Wu, Fei wrote: We are not *checking* the tb->tb_stats->stats_enabled bit except at code generation time, not code execution time.  Therefore nothing ever reads the TB_PAUSED bit (or, correspondingly, the clearing of the other bits).  The setting of the bit is permanent. At

Re: [PATCH v14 03/10] accel: collecting TB execution count

2023-06-01 Thread Wu, Fei
On 6/1/2023 10:03 PM, Richard Henderson wrote: > On 5/31/23 22:44, Wu, Fei wrote: >> On 6/1/2023 8:05 AM, Richard Henderson wrote: >>> On 5/30/23 01:35, Fei Wu wrote: From: "Vanderson M. do Rosario" If a TB has a TBS (TBStatistics) with the TB_EXEC_STATS enabled, then we

Re: [PATCH v14 03/10] accel: collecting TB execution count

2023-06-01 Thread Richard Henderson
On 5/31/23 22:44, Wu, Fei wrote: On 6/1/2023 8:05 AM, Richard Henderson wrote: On 5/30/23 01:35, Fei Wu wrote: From: "Vanderson M. do Rosario" If a TB has a TBS (TBStatistics) with the TB_EXEC_STATS enabled, then we instrument the start code of this TB to atomically count the number of times

Re: [PATCH v14 03/10] accel: collecting TB execution count

2023-05-31 Thread Wu, Fei
On 6/1/2023 8:05 AM, Richard Henderson wrote: > On 5/30/23 01:35, Fei Wu wrote: >> From: "Vanderson M. do Rosario" >> >> If a TB has a TBS (TBStatistics) with the TB_EXEC_STATS >> enabled, then we instrument the start code of this TB >> to atomically count the number of times it is executed. >>

Re: [PATCH v14 03/10] accel: collecting TB execution count

2023-05-31 Thread Richard Henderson
On 5/30/23 01:35, Fei Wu wrote: From: "Vanderson M. do Rosario" If a TB has a TBS (TBStatistics) with the TB_EXEC_STATS enabled, then we instrument the start code of this TB to atomically count the number of times it is executed. We count both the number of "normal" executions and atomic

[PATCH v14 03/10] accel: collecting TB execution count

2023-05-30 Thread Fei Wu
From: "Vanderson M. do Rosario" If a TB has a TBS (TBStatistics) with the TB_EXEC_STATS enabled, then we instrument the start code of this TB to atomically count the number of times it is executed. We count both the number of "normal" executions and atomic executions of a TB. The execution