From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755776AbcIIXVi (ORCPT ); Fri, 9 Sep 2016 19:21:38 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:50365 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755721AbcIIXVh (ORCPT ); Fri, 9 Sep 2016 19:21:37 -0400 Date: Sat, 10 Sep 2016 01:19:11 +0200 (CEST) From: Thomas Gleixner To: Craig Gallek cc: David Decotigny , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] genirq: Machine-parsable version of /proc/interrupts In-Reply-To: <1473438501-22278-1-git-send-email-kraigatgoog@gmail.com> Message-ID: References: <1473356083-14601-1-git-send-email-kraigatgoog@gmail.com> <1473438501-22278-1-git-send-email-kraigatgoog@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Sep 2016, Craig Gallek wrote: > +What: /sys/kernel/irq//per_cpu_count > +Date: September 2016 > +KernelVersion: 4.9 > +Contact: Craig Gallek > +Description: The number of times the interrupt has fired since boot. This > + is a comma-separated list of counters; one per online CPU in > + CPU id order. NOTE: If the set of online CPUs changes, the > + counter positions in this list will also change and counters > + for offline CPUs will not be available. More thoughts: We could easily print all possible cpus here instead of restricting it to online cpus. The per cpu counters are still available. That way you can even observe the affinity change after a online or offline and a tool which is interrested in more than the sum wouldn't have to cope with changing positions. Thanks, tglx