Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
46 lines
1.8 KiB
C
46 lines
1.8 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright(c) 2021 Intel Corporation. All rights rsvd. */
|
|
|
|
#ifndef __CRYPTO_DEV_IAA_CRYPTO_STATS_H__
|
|
#define __CRYPTO_DEV_IAA_CRYPTO_STATS_H__
|
|
|
|
#if defined(CONFIG_CRYPTO_DEV_IAA_CRYPTO_STATS)
|
|
int iaa_crypto_debugfs_init(void);
|
|
void iaa_crypto_debugfs_cleanup(void);
|
|
|
|
void update_total_comp_calls(void);
|
|
void update_total_comp_bytes_out(int n);
|
|
void update_total_decomp_calls(void);
|
|
void update_total_sw_decomp_calls(void);
|
|
void update_total_decomp_bytes_in(int n);
|
|
void update_completion_einval_errs(void);
|
|
void update_completion_timeout_errs(void);
|
|
void update_completion_comp_buf_overflow_errs(void);
|
|
|
|
void update_wq_comp_calls(struct idxd_wq *idxd_wq);
|
|
void update_wq_comp_bytes(struct idxd_wq *idxd_wq, int n);
|
|
void update_wq_decomp_calls(struct idxd_wq *idxd_wq);
|
|
void update_wq_decomp_bytes(struct idxd_wq *idxd_wq, int n);
|
|
|
|
#else
|
|
static inline int iaa_crypto_debugfs_init(void) { return 0; }
|
|
static inline void iaa_crypto_debugfs_cleanup(void) {}
|
|
|
|
static inline void update_total_comp_calls(void) {}
|
|
static inline void update_total_comp_bytes_out(int n) {}
|
|
static inline void update_total_decomp_calls(void) {}
|
|
static inline void update_total_sw_decomp_calls(void) {}
|
|
static inline void update_total_decomp_bytes_in(int n) {}
|
|
static inline void update_completion_einval_errs(void) {}
|
|
static inline void update_completion_timeout_errs(void) {}
|
|
static inline void update_completion_comp_buf_overflow_errs(void) {}
|
|
|
|
static inline void update_wq_comp_calls(struct idxd_wq *idxd_wq) {}
|
|
static inline void update_wq_comp_bytes(struct idxd_wq *idxd_wq, int n) {}
|
|
static inline void update_wq_decomp_calls(struct idxd_wq *idxd_wq) {}
|
|
static inline void update_wq_decomp_bytes(struct idxd_wq *idxd_wq, int n) {}
|
|
|
|
#endif // CONFIG_CRYPTO_DEV_IAA_CRYPTO_STATS
|
|
|
|
#endif
|