linux/kernel/trace/trace_nop.c

// SPDX-License-Identifier: GPL-2.0
/*
 * nop tracer
 *
 * Copyright (C) 2008 Steven Noonan <[email protected]>
 *
 */

#include <linux/module.h>
#include <linux/ftrace.h>

#include "trace.h"

/* Our two options */
enum {};

/* Options for the tracer (see trace_options file) */
static struct tracer_opt nop_opts[] =;

static struct tracer_flags nop_flags =;

static struct trace_array	*ctx_trace;

static void start_nop_trace(struct trace_array *tr)
{}

static void stop_nop_trace(struct trace_array *tr)
{}

static int nop_trace_init(struct trace_array *tr)
{}

static void nop_trace_reset(struct trace_array *tr)
{}

/* It only serves as a signal handler and a callback to
 * accept or refuse the setting of a flag.
 * If you don't implement it, then the flag setting will be
 * automatically accepted.
 */
static int nop_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set)
{}


struct tracer nop_trace __read_mostly =;