From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECF0BC3A5A2 for ; Fri, 23 Aug 2019 07:26:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BCB5D22CEC for ; Fri, 23 Aug 2019 07:26:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732161AbfHWH0x (ORCPT ); Fri, 23 Aug 2019 03:26:53 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5204 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730918AbfHWH0x (ORCPT ); Fri, 23 Aug 2019 03:26:53 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id F3E65474774D532B667D; Fri, 23 Aug 2019 15:26:50 +0800 (CST) Received: from [127.0.0.1] (10.133.211.147) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Fri, 23 Aug 2019 15:26:46 +0800 Subject: Re: [PATCH V2] cpustat: print watchdog time and statistics of soft and hard interrupts in soft lockup scenes To: Peter Zijlstra References: <60319e82-3c2b-ff24-4ba7-4d58048130ff@huawei.com> <20190820110430.GL2332@hirez.programming.kicks-ass.net> <4eb6b499-b6b0-602a-ae89-0c1dceaa5088@huawei.com> <20190821104643.GA2349@hirez.programming.kicks-ass.net> <40d9fb6d-ac9f-5af2-1726-f824c4d56fa2@huawei.com> <20190822161412.GV2369@hirez.programming.kicks-ass.net> CC: , , , , From: c00423981 Message-ID: Date: Fri, 23 Aug 2019 15:26:45 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20190822161412.GV2369@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.211.147] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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_iowait_time(kcs, cpu); > > I'm confused; isn't that still reporting per-cpu iowait, which is still > complete garbage? > > Yes, I understand that these two interfaces(nr_iowait_cpu and nr_iowait) will use nonsensical data. Thanks for your answer very much. By the way, are there an alternative about these two interfaces? Looking forward to your reply.