Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v6.15-rc2 45 lines 1.8 kB view raw
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright(c) 2021 Intel Corporation. All rights rsvd. */ 3 4#ifndef __CRYPTO_DEV_IAA_CRYPTO_STATS_H__ 5#define __CRYPTO_DEV_IAA_CRYPTO_STATS_H__ 6 7#if defined(CONFIG_CRYPTO_DEV_IAA_CRYPTO_STATS) 8int iaa_crypto_debugfs_init(void); 9void iaa_crypto_debugfs_cleanup(void); 10 11void update_total_comp_calls(void); 12void update_total_comp_bytes_out(int n); 13void update_total_decomp_calls(void); 14void update_total_sw_decomp_calls(void); 15void update_total_decomp_bytes_in(int n); 16void update_completion_einval_errs(void); 17void update_completion_timeout_errs(void); 18void update_completion_comp_buf_overflow_errs(void); 19 20void update_wq_comp_calls(struct idxd_wq *idxd_wq); 21void update_wq_comp_bytes(struct idxd_wq *idxd_wq, int n); 22void update_wq_decomp_calls(struct idxd_wq *idxd_wq); 23void update_wq_decomp_bytes(struct idxd_wq *idxd_wq, int n); 24 25#else 26static inline int iaa_crypto_debugfs_init(void) { return 0; } 27static inline void iaa_crypto_debugfs_cleanup(void) {} 28 29static inline void update_total_comp_calls(void) {} 30static inline void update_total_comp_bytes_out(int n) {} 31static inline void update_total_decomp_calls(void) {} 32static inline void update_total_sw_decomp_calls(void) {} 33static inline void update_total_decomp_bytes_in(int n) {} 34static inline void update_completion_einval_errs(void) {} 35static inline void update_completion_timeout_errs(void) {} 36static inline void update_completion_comp_buf_overflow_errs(void) {} 37 38static inline void update_wq_comp_calls(struct idxd_wq *idxd_wq) {} 39static inline void update_wq_comp_bytes(struct idxd_wq *idxd_wq, int n) {} 40static inline void update_wq_decomp_calls(struct idxd_wq *idxd_wq) {} 41static inline void update_wq_decomp_bytes(struct idxd_wq *idxd_wq, int n) {} 42 43#endif // CONFIG_CRYPTO_DEV_IAA_CRYPTO_STATS 44 45#endif