From patchwork Sun Jun 21 19:31:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11616689 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CBBDD618 for ; Sun, 21 Jun 2020 19:31:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B355623D51 for ; Sun, 21 Jun 2020 19:31:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="mij5VCPv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730567AbgFUTb2 (ORCPT ); Sun, 21 Jun 2020 15:31:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730555AbgFUTb0 (ORCPT ); Sun, 21 Jun 2020 15:31:26 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FB2EC061794 for ; Sun, 21 Jun 2020 12:31:25 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id q5so2169241wru.6 for ; Sun, 21 Jun 2020 12:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xLoFk+SNurZVpCfpASFCu44pZDZ5n7kdegjD0roxl1w=; b=mij5VCPvXCodJTP2uo5shATOmIQiCQB0wfvNiMxCHnltkxe5m4AZ9hdNJRN7hcwyH2 /Z08yjldl8AyKCtB/1374Kzao+dnNRzLKA+ls6sOx53U+CQYaAh/8w7pCis3nkBylC4B Q5QmX2y7TJrfqO19bPaLqViYFQ/4Pf3VQUyVk3M4Yrc2ExRMO4wWBsA6XHOBbMamgc1a 8nDfahtHbml1o9tOwe+Y3/Fl6zMeiOzHjKhHOzV9X6cW0MwWszQS30L3KLZQGMjeH454 D5XoDZHP3tVpxS7l4UHncQwWaew9/cgvFANpG/1B/+LHOivo946mDzxLlOXpRBJn0LsT /eDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xLoFk+SNurZVpCfpASFCu44pZDZ5n7kdegjD0roxl1w=; b=EvFnggFv1jtXUpcTilFWKGPB/JniDRQxIx7Mv+kscqPYZQjigmlDzkl+asO1yFheSA fGE0s5i59pzkhdmVNEsNNAlWF/uFzfb9Mp8zPdGt4XBysv78nT+C/5T5ChNea8E9jB7I gAVGkWmFvk1oQ9cetxWNbY2+ZYxQLlqKJNzpGpeKLG3Fs2+QubFaYle0vaGYUZfbZ+QD FZhVD2BZWWlb2SJI7Z9tfrM3cYEgqUIfxJ0fEjOMid9AyUiRPl0BUinyk/im8P2Hs+uk l+4ZTzx8nqQBWi/sgg+pn7BOSfu9fDfAhBjiMq2OdV38yD9wSSCimcX4qLPwxL5Xm7x/ yZKw== X-Gm-Message-State: AOAM5316K8PfNkmg4MZ0oROs5jddwJpVTWX03TJG45WMF4gTjajnjgSu CXJzhuNRpWWzvHtsRUbCtrl8Kw== X-Google-Smtp-Source: ABdhPJzi9Xg6EcvR5B/VME215nn87eQCZOUzzRUxyRmN64Era0bJ0FDZPoqUavGgOiROcy7IyHJ15A== X-Received: by 2002:a5d:6a01:: with SMTP id m1mr15891416wru.115.1592767884299; Sun, 21 Jun 2020 12:31:24 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id e3sm16086924wrj.17.2020.06.21.12.31.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Jun 2020 12:31:23 -0700 (PDT) From: Corentin Labbe To: davem@davemloft.net, herbert@gondor.apana.org.au, mripard@kernel.org, wens@csie.org Cc: linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe Subject: [PATCH v3 12/14] crypto: sun8i-ce: Add stat_bytes debugfs Date: Sun, 21 Jun 2020 19:31:05 +0000 Message-Id: <1592767867-35982-13-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1592767867-35982-1-git-send-email-clabbe@baylibre.com> References: <1592767867-35982-1-git-send-email-clabbe@baylibre.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This patch adds a new stat_bytes counter in the sun8i-ce debugfs. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h index 19ced8b1cd89..ef2f1e5aa23a 100644 --- a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h +++ b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h @@ -274,6 +274,7 @@ struct sun8i_ce_hash_reqctx { * @alg: one of sub struct must be used * @stat_req: number of request done on this template * @stat_fb: number of request which has fallbacked + * @stat_bytes: total data size done by this template */ struct sun8i_ce_alg_template { u32 type; @@ -287,6 +288,7 @@ struct sun8i_ce_alg_template { #ifdef CONFIG_CRYPTO_DEV_SUN8I_CE_DEBUG unsigned long stat_req; unsigned long stat_fb; + unsigned long stat_bytes; #endif };