// SPDX-License-Identifier: GPL-2.0 /* * kdb helper for dumping the ftrace buffer * * Copyright (C) 2010 Jason Wessel <[email protected]> * * ftrace_dump_buf based on ftrace_dump: * Copyright (C) 2007-2008 Steven Rostedt <[email protected]> * Copyright (C) 2008 Ingo Molnar <[email protected]> * */ #include <linux/init.h> #include <linux/kgdb.h> #include <linux/kdb.h> #include <linux/ftrace.h> #include "trace.h" #include "trace_output.h" static struct trace_iterator iter; static struct ring_buffer_iter *buffer_iter[CONFIG_NR_CPUS]; static void ftrace_dump_buf(int skip_entries, long cpu_file) { … } /* * kdb_ftdump - Dump the ftrace log buffer */ static int kdb_ftdump(int argc, const char **argv) { … } static kdbtab_t ftdump_cmd = …; static __init int kdb_ftrace_register(void) { … } late_initcall(kdb_ftrace_register);