Re: [PATCH] cpustat: print watchdog time and statistics of soft and hard interrupts in soft lockup scenes

2019-08-21 Thread c00423981
, Aug 19, 2019 at 03:12:24PM +0800, c00423981 wrote: >> +static u64 cpustat_curr_cputime(int cpu, int index) >> +{ >> +u64 time; >> + >> +if (index == CPUTIME_IDLE) >> +time = get_idle_time(cpu); >> +else if (index == CPUTIME_

[PATCH V2] cpustat: print watchdog time and statistics of soft and hard interrupts in soft lockup scenes

2019-08-22 Thread c00423981
Currently we cannot determine quickly if a soft lockup occurrs, and do not know what the cpu is doing in soft lockup scenes neither. The new feature adds a new interface(/proc/cpuirqstat) to view the statistics of interrupts in real time on a certain cpu, as well as the time occupancy of user spac

Re: [PATCH V2] cpustat: print watchdog time and statistics of soft and hard interrupts in soft lockup scenes

2019-08-23 Thread c00423981
On 2019/8/23 0:14, Peter Zijlstra wrote: > On Thu, Aug 22, 2019 at 07:58:37PM +0800, c00423981 wrote: > >> V1->V2 >> - fix the broken interfaces: get_idle_time and get_iowait_time > >> +else if (index == CPUTIME_IOWAIT) >> +time = get_iowa

[PATCH] cpustat: print watchdog time and statistics of soft and hard interrupts in soft lockup scenes

2019-08-19 Thread c00423981
Currently we cannot determine quickly if a soft lockup occurrs, and do not know what the cpu is doing in soft lockup scenes neither. The new feature adds a new interface(/proc/cpuirqstat) to view the statistics of interrupts in real time on a certain cpu, as well as the time occupancy of user spac