Re: [PATCH v3] rcu/cpu_stall_cputime: fix the hardirq count for x86 architecture

2025-03-05 Thread Boqun Feng
On Sun, Feb 16, 2025 at 06:29:54PM -0800, Boqun Feng wrote: > Hi Yongliang, > > On Sun, Feb 16, 2025 at 04:41:09PM +0800, Yongliang Gao wrote: > > From: Yongliang Gao > > > > When counting the number of hardirqs in the x86 architecture, > > it is essential to add arch_irq_stat_cpu to ensure accu

Re: [PATCH v3] rcu/cpu_stall_cputime: fix the hardirq count for x86 architecture

2025-02-16 Thread Boqun Feng
Hi Yongliang, On Sun, Feb 16, 2025 at 04:41:09PM +0800, Yongliang Gao wrote: > From: Yongliang Gao > > When counting the number of hardirqs in the x86 architecture, > it is essential to add arch_irq_stat_cpu to ensure accuracy. > > For example, a CPU loop within the rcu_read_lock function. > >