#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/highmem.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/smp.h>
#include <uapi/linux/idxd.h>
#include <linux/idxd.h>
#include <linux/dmaengine.h>
#include "../../dma/idxd/idxd.h"
#include <linux/debugfs.h>
#include <crypto/internal/acompress.h>
#include "iaa_crypto.h"
#include "iaa_crypto_stats.h"
static atomic64_t total_comp_calls;
static atomic64_t total_decomp_calls;
static atomic64_t total_sw_decomp_calls;
static atomic64_t total_comp_bytes_out;
static atomic64_t total_decomp_bytes_in;
static atomic64_t total_completion_einval_errors;
static atomic64_t total_completion_timeout_errors;
static atomic64_t total_completion_comp_buf_overflow_errors;
static struct dentry *iaa_crypto_debugfs_root;
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)
{ … }
static void reset_iaa_crypto_stats(void)
{ … }
static void reset_wq_stats(struct iaa_wq *wq)
{ … }
static void reset_device_stats(struct iaa_device *iaa_device)
{ … }
static void wq_show(struct seq_file *m, struct iaa_wq *iaa_wq)
{ … }
static void device_stats_show(struct seq_file *m, struct iaa_device *iaa_device)
{ … }
static int global_stats_show(struct seq_file *m, void *v)
{ … }
static int wq_stats_show(struct seq_file *m, void *v)
{ … }
static int iaa_crypto_stats_reset(void *data, u64 value)
{ … }
static int wq_stats_open(struct inode *inode, struct file *file)
{ … }
static const struct file_operations wq_stats_fops = …;
static int global_stats_open(struct inode *inode, struct file *file)
{ … }
static const struct file_operations global_stats_fops = …;
DEFINE_DEBUGFS_ATTRIBUTE(…);
int __init iaa_crypto_debugfs_init(void)
{ … }
void __exit iaa_crypto_debugfs_cleanup(void)
{ … }
MODULE_LICENSE(…) …;