// SPDX-License-Identifier: GPL-2.0-only // Copyright 2014 Cisco Systems, Inc. All rights reserved. #include <linux/module.h> #include <linux/mempool.h> #include <linux/errno.h> #include <linux/vmalloc.h> #include "snic_io.h" #include "snic.h" /* * snic_get_trc_buf : Allocates a trace record and returns. */ struct snic_trc_data * snic_get_trc_buf(void) { … } /* end of snic_get_trc_buf */ /* * snic_fmt_trc_data : Formats trace data for printing. */ static int snic_fmt_trc_data(struct snic_trc_data *td, char *buf, int buf_sz) { … } /* end of snic_fmt_trc_data */ /* * snic_get_trc_data : Returns a formatted trace buffer. */ int snic_get_trc_data(char *buf, int buf_sz) { … } /* end of snic_get_trc_data */ /* * snic_trc_init() : Configures Trace Functionality for snic. */ int snic_trc_init(void) { … } /* end of snic_trc_init */ /* * snic_trc_free : Releases the trace buffer and disables the tracing. */ void snic_trc_free(void) { … } /* end of snic_trc_free */