The comp/decomp delay statistics currently have no callers; somehow they were dropped during refactoring. There originally were also two sets, one for the async algorithm, the other for the synchronous version. Because the synchronous algorithm was dropped, one set should be removed. To keep it consistent with the rest of the stats, and since there's no ambiguity, remove the acomp/adecomp versions. Also add back the callers. Reported-by: Rex Zhang <rex.zhang@intel.com> Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
54 lines
2.1 KiB
C
54 lines
2.1 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_max_comp_delay_ns(u64 start_time_ns);
|
|
void update_max_decomp_delay_ns(u64 start_time_ns);
|
|
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);
|
|
|
|
static inline u64 iaa_get_ts(void) { return ktime_get_ns(); }
|
|
|
|
#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_max_comp_delay_ns(u64 start_time_ns) {}
|
|
static inline void update_max_decomp_delay_ns(u64 start_time_ns) {}
|
|
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) {}
|
|
|
|
static inline u64 iaa_get_ts(void) { return 0; }
|
|
|
|
#endif // CONFIG_CRYPTO_DEV_IAA_CRYPTO_STATS
|
|
|
|
#endif
|