Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp992137lqs; Wed, 6 Mar 2024 03:09:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUfCZkPBp2hyKfaG+yF0yrym52ul26pyMlaUjrL4BmSgSJjrbW+AWhEDCwHPO+YOMK7ld3876+DmZguWCpnP+gbwZegVu5SRcBS0ydODw== X-Google-Smtp-Source: AGHT+IGO/y+SgTZO3cm8nDK1uYDBxRbc7vbh7rDyojY+zsg0fucAq77RlFuSpp9IyUA9Bf4jZejV X-Received: by 2002:a17:906:d15a:b0:a45:ab2a:8f01 with SMTP id br26-20020a170906d15a00b00a45ab2a8f01mr2933676ejb.18.1709723383954; Wed, 06 Mar 2024 03:09:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709723383; cv=pass; d=google.com; s=arc-20160816; b=BtiQx69OjkUNv7svspraDih8e2Jp+uyXzW/iQD+mLga45BreCeZkr/W+v3CMqw9Fti jYeGFqRlVbxFvx0sBMmkEgghu/slGt7O5kMnytSb6OneQlDgcslELI0Ox9UyPPfHvyjE YK63I5yaawp55Zipj3eCeCFT7RdILCT+6y7yA+iyamhZmirCENeRml7MZyvnSsIpD6VR YYw9qjtJicgflNobrd369SU9FmWsau4PciodjnSk1M9JKn0NzP2dZT4969QbM2RnVU2z vBL/gZFngOVB8JQUZGsc+ozZJLyy+cdvxqOpY0QQmGf7buyF/TWM8dymFEm0VSPHQWj4 NeAQ== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ceV/dYyY4lcQMo0rvtqY++7MI8S81r5Jn7ui5rksdP4=; fh=ZehyhdcpW6LJtvXfieC77f+TZKG/3Qzb9hvizJ6PGw0=; b=Hf+J83NQxTTzB7+TWTYJLTCkqXXZwiRoLBb4Rv/1gcXCVvUvSf2TaphZqb/lRIr38R F3xBUDaeDAQWUPxkzm1yDSRiOnjx97XixkzvbHH8i0TGWOeplO1C+HS3hAPtw7XJIb7P PAWGjbT3d+2XlO6TaT03WTVwrj6vyl1eGF4+As6nwRnPG6P8DCOSKqa9BGwDTA8ffTSD zxAmZUlAsbr0KmVHHiQjgc0UZSCZQYFgPxIjfdayPTcOqvM7RcC02etsC0fjepilFvQK B9jra+suqn5pVYCs1+TqW8g9A4jUPOGDeN9slXWbawsxnXXOClYpz7J6XYyRZGVvl0BJ rDBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=E5jsxhP5; 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-93834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93834-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 am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n7-20020a1709061d0700b00a44dd34b460si3941065ejh.889.2024.03.06.03.09.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 03:09:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=E5jsxhP5; 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-93834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93834-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 am.mirrors.kernel.org (Postfix) with ESMTPS id AC3541F24E09 for ; Wed, 6 Mar 2024 11:09:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BE12763FC; Wed, 6 Mar 2024 11:09:40 +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="E5jsxhP5" Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) (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 40407745E0; Wed, 6 Mar 2024 11:09:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.113 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709723379; cv=none; b=mQKGJ7wDZytwukixb98SXrN8vWvEhllBvz82K9V5ku2Vjv9vQ+u8/5WMZVEBC9welZfA9pDhejqV7D3rxRpsZLMjWlGcJZregRBsNrNDyWYKOOjm5wvij7BydFhlOE3W857ruSOl54rXjthgDdq1u9TlJx+TW55ssEmbT0vbgFo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709723379; c=relaxed/simple; bh=bsqrALh0inF+TFlRsJEQnmW6pnmcqBx2LnKvjJAweAs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ltNQfIpUAF0qLCUmYUxFA0e+GRSYpNUtGqdFECgZHomQrQFRO4WNjH8LFTw+MtWOCfG2OQFdetNQCYjwLr6k95to9WPvTem4weQOFpsa42HHTFsx/0ENRW42yGuOuM6iQQ5HmMuyLUhZ3n1lIrnOyqCYsqd9OzthV6y5OJ++gV0= 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=E5jsxhP5; arc=none smtp.client-ip=115.124.30.113 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=1709723373; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=ceV/dYyY4lcQMo0rvtqY++7MI8S81r5Jn7ui5rksdP4=; b=E5jsxhP5C/OA6D8VQ9/QQVnVv3DdiyN3eQnRcxkX6GJ7r/JxUTj3RCXzwtTUmhvOGZtnbt69n/b0RGqeL93kA5sHsr9HU0CD4gZMpjU2p7ofVycDyax3kwIdTu4fTSZqohwsx2q1jhEdfNKfI9e0cYZVqRGBXHDbMW+QjUR2pPE= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=yaoma@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0W1xQ1s7_1709723370; Received: from 30.178.67.110(mailfrom:yaoma@linux.alibaba.com fp:SMTPD_---0W1xQ1s7_1709723370) by smtp.aliyun-inc.com; Wed, 06 Mar 2024 19:09:32 +0800 Message-ID: <5ab46413-5810-475a-b8c1-3c9b142ea35c@linux.alibaba.com> Date: Wed, 6 Mar 2024 19:09:29 +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: [PATCHv11 2/4] genirq: Provide a snapshot mechanism for interrupt statistics Content-Language: en-US To: Thomas Gleixner , Doug Anderson Cc: 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, 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: <20240228072216.95130-1-yaoma@linux.alibaba.com> <20240228072216.95130-3-yaoma@linux.alibaba.com> <87plwdwycx.ffs@tglx> <3a89fafb-f62e-472f-b40b-8bf97954e9e3@linux.alibaba.com> <87wmqiulaw.ffs@tglx> <28a24e4b-c322-4631-ad6d-7259ca3d084d@linux.alibaba.com> <87h6hkvcor.ffs@tglx> From: Bitao Hu In-Reply-To: <87h6hkvcor.ffs@tglx> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 2024/3/6 00:57, Thomas Gleixner wrote: > >> diff --git a/kernel/irq/Kconfig b/kernel/irq/Kconfig >> index 2531f3496ab6..a28e5ac5fc79 100644 >> --- a/kernel/irq/Kconfig >> +++ b/kernel/irq/Kconfig >> @@ -108,6 +108,10 @@ config GENERIC_IRQ_MATRIX_ALLOCATOR >> config GENERIC_IRQ_RESERVATION_MODE >> bool >> >> +# Snapshot for interrupt statistics >> +config GENERIC_IRQ_STAT_SNAPSHOT >> + bool >> + >> # Support forced irq threading >> config IRQ_FORCED_THREADING >> bool >> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug >> index 49f652674bd8..899b69fcb598 100644 >> --- a/lib/Kconfig.debug >> +++ b/lib/Kconfig.debug >> @@ -1032,6 +1032,7 @@ config SOFTLOCKUP_DETECTOR >> config SOFTLOCKUP_DETECTOR_INTR_STORM >> bool "Detect Interrupt Storm in Soft Lockups" >> depends on SOFTLOCKUP_DETECTOR && IRQ_TIME_ACCOUNTING >> + select GENERIC_IRQ_STAT_SNAPSHOT > > This goes into the patch which adds the lockup detector parts. > OK, I will implement this in the next version. Best Regards, Bitao Hu