Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp106914pxk; Wed, 30 Sep 2020 19:37:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZDxGfi5RWwd6DHiN194v65iNAg4D+wz6MU7KIJJOSdGxJKtCHVhEBQO/hAGxTshz/4CXk X-Received: by 2002:a50:cf0b:: with SMTP id c11mr5751501edk.87.1601519843689; Wed, 30 Sep 2020 19:37:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601519843; cv=none; d=google.com; s=arc-20160816; b=o58xaPI/EiLp1JB6I/JvEzc5loNFLDTI3E5Vv9OCmrZQ0IfAQgPGGdH9lytF0V4VV8 wgk4JwR3m7gN2rzzGOGgcT7m3AHMzyRcK5Q2sotUeKsFzNDDL5a41nxEzaJIqTyqsFjt khRoiZn94H3+es+eFqcgVw9JGA8536fw09/RIoVYlvUPGQPoi+UusuVq9ZhrZMAHFXsT ZIY26TstYszyHYbHLLHqzwoFZ2FO1HUhKeRdHuSDDv3WiERM7uOOQTNLCbmgAIuqQ6jc 3k419+wH/NxLy8l69lyCa8Ydz1rh2BJJiwbsK7Z2PjBmdGgdmpvoX7Yct6S3oruHYfRM pVrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=szEH88A0/Fe3KCIqfU88gWrIHjPg0MiBPUXzh5BVuQc=; b=IzgLtZ0SwLVZK2Q12fnYqYnef1lXTcn3D6/sIt9ZMvIT7XnU/xTQ/D1x9BMrdTIURB r9z4o4kdojnr1pYHNDBCn9yjSMAfzOQF7aG4icD74jybbW0/QIdt2IdwxHowiSU1Aboo Hc0Bi3likC0lLVZhtiWCc4s0Dtt59ZzmcgtudM7DTDs5nshX7Hl5a2h234/7skkDlTXg h756Y1HN3mYmJ/pUMvcDEruwMG2bQG+7ffwu9UdfHsRssIkMXc8Cv3uJYHJfx+AShq/S 2j8V52Mcbx7y1un+m5IFNl6hB7UDj0AeRFMh5xTO8WesgOnbJOXgwJDJAQHidn+kWb4v dkgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VzI+G1yu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si3412629edj.252.2020.09.30.19.37.00; Wed, 30 Sep 2020 19:37:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VzI+G1yu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730009AbgJACdk (ORCPT + 99 others); Wed, 30 Sep 2020 22:33:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbgJACdk (ORCPT ); Wed, 30 Sep 2020 22:33:40 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59285C061755 for ; Wed, 30 Sep 2020 19:33:40 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id q4so1103298pjh.5 for ; Wed, 30 Sep 2020 19:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=szEH88A0/Fe3KCIqfU88gWrIHjPg0MiBPUXzh5BVuQc=; b=VzI+G1yuJHR6XFfHqWs1mvZ7H3XPFmKhhAuRcY9FJ8aDSAk0c7e5FwsvLHU2jpT2aX jjqScL0TplPzpvqohSCgj7cbX1ur2vD2qocEVP8PWtrPvdzL7vznGq/7BrsySPoMF4gR iPaB+MW43bQg/hICcHDMhkYAyaxmEADQ5ET0V2Ra/yLIWG3O1LVQF1ubTK5bUIabUm5R sehUpacKrvO+m2dE4QWpxlvRYjOqr5QPafrqJTdTBv0GeS4G9axlIIq1Ug5SbV7PbcTZ 0la/b6FfywYgaiPgmxGQ0ougOg3udbbb5f1U2zi+L6n5FKWvG0P+BzuQyp/KfYTaO6QQ N+iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=szEH88A0/Fe3KCIqfU88gWrIHjPg0MiBPUXzh5BVuQc=; b=KkU+CiYMJo9QL1g0r4Jj5GMlfWdxQ1iVujY0996M4cpIfHNbfm94XDLtdgo6g9QwhY ZpYqq8hpac233jZfgWU0cdC92aSO3YCOrJiPRsmqG9LwHbgDIdfmxDTJvvKUolIj6De8 5DxLN+1oDTQli3HPqXOzFD74CQGafqu00UMSDGPgrEQCAMZkDthr+5hu51J5dX7PVDKj u30HMnpB0rQ57LkRCZ+ZHCd6WNe97hzt3H6mnSgXE3A683urGF/gebiHBLg7fuxXoLUV 8gXfaU4wtpClumxeMs8ArxPossJ263Eiho7kgSSChytlB/tcWGDAyAUj6ao9JMjHMr7x NsCQ== X-Gm-Message-State: AOAM5319XBqFzx0slT1vbxdzNA0a1FmJkmhtKMof0auvclqk1826+Hag JsOeOQcnrTtHGKOH/m9d5Uk= X-Received: by 2002:a17:90a:aa8c:: with SMTP id l12mr5011946pjq.114.1601519619789; Wed, 30 Sep 2020 19:33:39 -0700 (PDT) Received: from [10.230.29.112] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id kt18sm3544305pjb.56.2020.09.30.19.33.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Sep 2020 19:33:39 -0700 (PDT) Subject: Re: [PATCH v5 11/15] misc: bcm-vk: add BCM_VK_QSTATS To: Scott Branden , Arnd Bergmann , Greg Kroah-Hartman , Olof Johansson Cc: Kees Cook , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Desmond Yan References: <20201001012810.4172-1-scott.branden@broadcom.com> <20201001012810.4172-12-scott.branden@broadcom.com> From: Florian Fainelli Message-ID: Date: Wed, 30 Sep 2020 19:33:37 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: <20201001012810.4172-12-scott.branden@broadcom.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/30/2020 6:28 PM, Scott Branden wrote: > Add BCM_VK_QSTATS Kconfig option to allow for enabling debug VK > queue statistics. > > These statistics keep track of max, abs_max, and average for the > messages queues. > > Co-developed-by: Desmond Yan > Signed-off-by: Desmond Yan > Signed-off-by: Scott Branden > --- [snip] > +#if defined(CONFIG_BCM_VK_QSTATS) > + /* clear qstats */ > + for (i = 0; i < VK_MSGQ_MAX_NR; i++) { > + memset(&vk->to_v_msg_chan.qstats[i].qcnts, 0, > + sizeof(vk->to_v_msg_chan.qstats[i].qcnts)); > + memset(&vk->to_h_msg_chan.qstats[i].qcnts, 0, > + sizeof(vk->to_h_msg_chan.qstats[i].qcnts)); > + } > +#endif > /* clear 4096 bits of bitmap */ > bitmap_clear(vk->bmap, 0, VK_MSG_ID_BITMAP_SIZE); It was not clear from looking at this patch how are the statistics exposed and how does one actually get them? -- Florian