Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp241261lqe; Tue, 9 Apr 2024 23:59:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCHJr/k8FS496LsVwlNCpU3nanoTHOOEymtJCYoGyiJxu0tC0/ndbdo6wiFSZkEjqTAZOM3fkG2MB+lKdSCw9qoY+ByHLZBXLRxdIbNg== X-Google-Smtp-Source: AGHT+IHfY3bW+MudC2CubbNeLL1xSX7J/DTh0Nkqnkadz6LTyo4Vm153dsAeXpOPTnhl+hda7lkA X-Received: by 2002:a05:6830:98:b0:6ea:21a1:d00d with SMTP id a24-20020a056830009800b006ea21a1d00dmr1681107oto.11.1712732354348; Tue, 09 Apr 2024 23:59:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712732354; cv=pass; d=google.com; s=arc-20160816; b=PRCtTp25M+tWF82VvI0XT6L6pwJtdm8aVNCzjtylfgi2tGAmXCzBgOLyK9Z3BaXHfP lgXl2cLDsmLvEhWvPGvOP/AwNOdKnYbQgOMMhAuSGVpPeL+wLoVfqmmIS+3+UxtRyx/a LqfS6pqQGkcnu4DUX9866gy9yPJYkPssQaLPXQU2YeRKHqD5Be2bpNT4w/PwnewyZTrN 7UN5vjPJytvTDxoTc7hXfmANTOI7CuNTLnU1B4o7d5AH1j8IAwNyXqOyzfl5A2LKwsC5 6k4MCe3PHcU0siufuuy/GX93qc6v5hvBw0/3RSKIxgDlDaHHstw29pQjEqI9Ds354Xwj xO6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ebzbpFm8mKtEwX879U96DPZbzdY2iwe+NayJYElOkPM=; fh=UyRWar5gypakcxE9qFDy60Lixhg02or2e+hUVbYt3Y4=; b=pB9igMKjRrmvvd++GoiQrpKjJkQPJESwh8VBEca7Dc1m1db3f/8SqTkt6EUOB1bSpO j2cMYYPoCHYVPv/YPkHiSS5bxXC3VpSBUjpIciLLiR5qfTPY/xkLXo9zHWQkn4OWwbjd IFxRfXvbl1Xztx0bevih3C0t6WaZoDpg79hoh/DfysCY5qAhj7H1pYdk3vEw7mKjLBA9 EDXsr1hhgr7QTYJxVIVaF7QPJgSYQjNt1YiIgd5OSpOkC/XV7M1q09kCkSoAwn+Xz7pT HhtO62ckLivPYMK1vYqJsWeLcX41q08lxzCcnhK/NlqpoNRj408pWV0YKwxl+izVMvMC g6sg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=Asj7+RZD; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-138025-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m76-20020a633f4f000000b005e4a7a59ed8si10355594pga.548.2024.04.09.23.59.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 23:59:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138025-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=Asj7+RZD; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-138025-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9AA20B22046 for ; Wed, 10 Apr 2024 06:46:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F9D42C695; Wed, 10 Apr 2024 06:45:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="Asj7+RZD" Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 688BA524A; Wed, 10 Apr 2024 06:45:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712731511; cv=none; b=Fs47zeNsosy9B5CMTGiTwRasRyhKXMeQzqPIj6x1o8dU216vv364UdR7vgiEIYpMj+Pb4DEBcoyQx+nmWlA9om7QmiJDjs4NdogthsKK0Xj9mZmCgBaASrAAJcDYicMHe1H2PsIZ9tetQbsVZaGqk88X/pPDav5mQobpW+/md+s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712731511; c=relaxed/simple; bh=RNjTiw+z2UXgWb291KUYhTrh7oCU2XpYJTpoXJoJ2Ps=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MGDIno2L0xoeVYQ4Frrw3h5TFsS55vWuyKAEoXkzHN93samR4FTisMCrgLkCRoHzWm3ERZIO4dfvaTK/48m/i9y0fcbKQNTMPRxmCFN0SyJlCsK+5/9eia1OJ3zwJonMgPXHGqqnH5SrkYAWWRcZDNUf4IC7+XYCo/Xk283OphU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=Asj7+RZD; arc=none smtp.client-ip=115.124.30.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1712731506; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=ebzbpFm8mKtEwX879U96DPZbzdY2iwe+NayJYElOkPM=; b=Asj7+RZD2qJ3sk6kwrOGu/K8WACsgX4zQ/QnqQtLILH+U2iD9p19DDk+0mOnW/oklBThk5AI4z1MOorrcyXMNXUw7GLF6c9SN5gkXoJD0tFDaHt4nfwWIlWqU4joGLO/HjZxwvLcQJLpndBh9KPxU5llzB+d7hRcqatQjbraZF8= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=yaoma@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0W4GtVHI_1712731503; Received: from 30.178.67.212(mailfrom:yaoma@linux.alibaba.com fp:SMTPD_---0W4GtVHI_1712731503) by smtp.aliyun-inc.com; Wed, 10 Apr 2024 14:45:04 +0800 Message-ID: Date: Wed, 10 Apr 2024 14:45:02 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCHv12 1/4] genirq: Provide a snapshot mechanism for interrupt statistics To: Thomas Gleixner , dianders@chromium.org, liusong@linux.alibaba.com, akpm@linux-foundation.org, pmladek@suse.com, kernelfans@gmail.com, deller@gmx.de, npiggin@gmail.com, tsbogend@alpha.franken.de, James.Bottomley@HansenPartnership.com, jan.kiszka@siemens.com Cc: linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, yaoma@linux.alibaba.com References: <20240306125208.71803-1-yaoma@linux.alibaba.com> <20240306125208.71803-2-yaoma@linux.alibaba.com> <87frvu7t85.ffs@tglx> Content-Language: en-US From: Bitao Hu In-Reply-To: <87frvu7t85.ffs@tglx> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 2024/4/9 17:58, Thomas Gleixner wrote: > > This does not apply anymore. OK, I will update this patch based on the latest kernel code. > > Also can you please split this apart to convert kstat_irqs to a struct > with just the count in it and then add the snapshot mechanics on top. > OK, I will split this patch into two. The changelog for the first patch will be as follows. genirq: Convert kstat_irqs to a struct The irq_desc::kstat_irqs member is a per-CPU variable of type int, and it is only capable of counting. The snapshot mechanism for interrupt statistics will be added soon, which requires an additional variable to store snapshot. To facilitate expansion, convert kstat_irqs here to a struct containing only the count. By the way, what do you think of my reason for using printk() instead of pr_crit()? Should I change this part of the code in v13? Besides, are there any other issues with this set of patches? I hope we can resolve all points of contention in v13. Best Regards, Bitao Hu