diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2020-12-14 20:02:31 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-01-03 08:41:36 +1100 |
commit | b1f578b85a13c4228d7862a203b428e774f87653 (patch) | |
tree | 442eaa2c6e195c4aad93a9e818c1d7fc9533e56a /drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h | |
parent | 9bc3dd24e7dccd50757db743a3635ad5b0497e6e (diff) | |
download | linux-b1f578b85a13c4228d7862a203b428e774f87653.tar.gz linux-b1f578b85a13c4228d7862a203b428e774f87653.tar.bz2 linux-b1f578b85a13c4228d7862a203b428e774f87653.zip |
crypto: sun4i-ss - enabled stats via debugfs
This patch enable to access usage stats for each algorithm.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h')
-rw-r--r-- | drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h index c242fccb2ab6..0fee6f4e2d90 100644 --- a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h +++ b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h @@ -154,6 +154,8 @@ struct sun4i_ss_ctx { #ifdef CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG u32 seed[SS_SEED_LEN / BITS_PER_LONG]; #endif + struct dentry *dbgfs_dir; + struct dentry *dbgfs_stats; }; struct sun4i_ss_alg_template { @@ -165,6 +167,10 @@ struct sun4i_ss_alg_template { struct rng_alg rng; } alg; struct sun4i_ss_ctx *ss; + unsigned long stat_req; + unsigned long stat_fb; + unsigned long stat_bytes; + unsigned long stat_opti; }; struct sun4i_tfm_ctx { |