Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp601252ybl; Thu, 23 Jan 2020 04:37:06 -0800 (PST) X-Google-Smtp-Source: APXvYqw50SOk6o2qxLQq/Se05W4CnHBxtg9WfggoDy8aZW2l8VIK/WTG/LbBSbD8kfkviCm4AaFt X-Received: by 2002:a9d:6e03:: with SMTP id e3mr11194599otr.46.1579783026816; Thu, 23 Jan 2020 04:37:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579783026; cv=none; d=google.com; s=arc-20160816; b=Mhlp7wzIw69e8zKK4GiBdf3dI57AIdRpplpC/RViG492EsNL+JKHgxCKdRJx9i3UWd I/13/E5dcXjbi4ZgwMHc1GPk7lRQkpH8f7/vXjtWqcFwga0PWRXY+bxP4NsqYzK3g1fq azZ4LLs2kIqVHFGWI1iAGsupwT0u/FzGi/6x5goSV9s0UN03/nx1YKEVvoWn7abjfjYK IQamZRegLj/qRKYuwvWk96eR/U3lGu5MoUM+lI/Ih9Y3eU6NwQty8UDoFJtWCPLWIn79 bSlyX5VsI+n0ELgYm6MLNg59lZBOu521HrKo7IwsP3IuMS451mz2sqFqKzfktdYfH3TW WiBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=byE2hNSaem6JDxZl8/qYdWy0FMb6zo/IxfV8O2l09NA=; b=DUt/B5YtN3+CwNmB86aG2e7b90lDPPni8oSgid4LaVH79dK0FJlq1QRzK3qxL/fPls D4Gr63Kd9jsIxDoujj3Vdn+BsRsQE9JxMcyFud2tq2AKtahPB+88e1C+oJ/GhIDPp4si Q3xxWnFLVEloidAjCl0ja6p7VwsI7qIDvSg6HhLsE+1O/qTxqcO51aVG4rH53y/GvEZk U6gvZ/IwUZZlVMWWxO0x7ccTvXIn8r/ZhKwj/5GBr7jC2D9upQ1NMRy7J9EsYR6rSHOE iZkwey4JEJ5ckHVpyuYi1LCZbojVUKra4+PlhtocFqBkV1WUdLO3sU4V1KXobpk6uZQw rm5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si784994oic.116.2020.01.23.04.36.53; Thu, 23 Jan 2020 04:37:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726811AbgAWMeq (ORCPT + 99 others); Thu, 23 Jan 2020 07:34:46 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:39887 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726204AbgAWMep (ORCPT ); Thu, 23 Jan 2020 07:34:45 -0500 Received: from [5.158.153.53] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iubgv-00088U-Ou; Thu, 23 Jan 2020 13:34:33 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 4C8331017FA; Thu, 23 Jan 2020 13:34:33 +0100 (CET) From: Thomas Gleixner To: "liuchao \(CR\)" , Neil Horman Cc: linfeilong , Hushiyuan , "linux-kernel\@vger.kernel.org" Subject: Re: =?utf-8?B?562U5aSNOg==?= [RFC] irq: Skip printing irq when desc->action is null even if any_count is not zero In-Reply-To: <7966953BB2EC794AA37DF0A21FAD8A34021318DA@DGGEMA503-MBX.china.huawei.com> References: <20200121130959.22589-1-liuchao173@huawei.com> <87k15jek6v.fsf@nanos.tec.linutronix.de> <20200122192856.GA2852@localhost.localdomain> <7966953BB2EC794AA37DF0A21FAD8A34021318DA@DGGEMA503-MBX.china.huawei.com> Date: Thu, 23 Jan 2020 13:34:33 +0100 Message-ID: <87pnfatkpy.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Chao, "liuchao (CR)" writes: > On Thu, Jan 23, 2020 at 03:29AM +0800, Neil Horman wrote: >> > I'm not opposed to suppress the output, but I really want the opinion >> > of the irqbalance maintainers on that. > > Irqbalance is an example. I mean, when this happens, users who cat /proc/interrupts > may be confused about where the interrupt came from and what it was used for. > People who use Linux may not understand the principle of this. They are not sure > whether this is a problem of the system or not. Well, this has been that way for 20+ years and so far nobody got confused. If it's not documented then we should do so. >> Actually, irqbalance ignores the trailing irq name (or it should at least), so you >> should be able to drop that portion of /proc/irqbalance, though I cant speak for >> any other users of it. > > If irq isn't removed from /proc/interrups, it will still be parsed in > collect_full_irq_list and parse_proc_interrupts. Sure, and why is that a problem? Again, this is really historic behaviour. > irq_name is used in guess_arm_irq_hints. That's a problem of guess_arm_irq_hints() then. Again, I'm not against supressing such lines in general, but I want to make sure that no tool depends on that information. Thanks, tglx