linux/drivers/hwtracing/stm/ftrace.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Simple kernel driver to link kernel Ftrace and an STM device
 * Copyright (c) 2016, Linaro Ltd.
 *
 * STM Ftrace will be registered as a trace_export.
 */

#include <linux/module.h>
#include <linux/stm.h>
#include <linux/trace.h>

#define STM_FTRACE_NR_CHANNELS
#define STM_FTRACE_CHAN

static int stm_ftrace_link(struct stm_source_data *data);
static void stm_ftrace_unlink(struct stm_source_data *data);

static struct stm_ftrace {} stm_ftrace =;

/**
 * stm_ftrace_write() - write data to STM via 'stm_ftrace' source
 * @buf:	buffer containing the data packet
 * @len:	length of the data packet
 */
static void notrace
stm_ftrace_write(struct trace_export *export, const void *buf, unsigned int len)
{}

static int stm_ftrace_link(struct stm_source_data *data)
{}

static void stm_ftrace_unlink(struct stm_source_data *data)
{}

static int __init stm_ftrace_init(void)
{}

static void __exit stm_ftrace_exit(void)
{}

module_init();
module_exit(stm_ftrace_exit);

MODULE_LICENSE();
MODULE_DESCRIPTION();
MODULE_AUTHOR();