[PATCHv12 1/4] genirq: Provide a snapshot mechanism for interrupt statistics
Bitao Hu
yaoma at linux.alibaba.com
Wed Apr 10 16:45:02 AEST 2024
Hi,
On 2024/4/9 17:58, Thomas Gleixner wrote:
>
> This does not apply anymore.
OK, I will update this patch based on the latest kernel code.
>
> Also can you please split this apart to convert kstat_irqs to a struct
> with just the count in it and then add the snapshot mechanics on top.
>
OK, I will split this patch into two. The changelog for the first patch
will be as follows.
genirq: Convert kstat_irqs to a struct
The irq_desc::kstat_irqs member is a per-CPU variable of type int, and
it is only capable of counting. The snapshot mechanism for interrupt
statistics will be added soon, which requires an additional variable to
store snapshot. To facilitate expansion, convert kstat_irqs here to
a struct containing only the count.
By the way, what do you think of my reason for using printk() instead of
pr_crit()? Should I change this part of the code in v13?
Besides, are there any other issues with this set of patches? I hope we
can resolve all points of contention in v13.
Best Regards,
Bitao Hu
More information about the Linuxppc-dev
mailing list