#include <linux/stop_machine.h>
#include <linux/clocksource.h>
#include <linux/kallsyms.h>
#include <linux/seq_file.h>
#include <linux/suspend.h>
#include <linux/debugfs.h>
#include <linux/hardirq.h>
#include <linux/kthread.h>
#include <linux/uaccess.h>
#include <linux/bsearch.h>
#include <linux/module.h>
#include <linux/ftrace.h>
#include <linux/sysctl.h>
#include <linux/slab.h>
#include <linux/ctype.h>
#include <linux/sort.h>
#include <linux/list.h>
#include <linux/hash.h>
#include <linux/rcupdate.h>
#include <trace/events/sched.h>
#include <asm/setup.h>
#include "trace_output.h"
#include "trace_stat.h"
Go to the source code of this file.
#define FL_GLOBAL_CONTROL_MASK (FTRACE_OPS_FL_GLOBAL | FTRACE_OPS_FL_CONTROL) |
#define FTRACE_HASH_BITS 7 |
#define FTRACE_HASH_DEFAULT_BITS 10 |
#define FTRACE_HASH_MAX_BITS 12 |
#define ftrace_ops_list_func ((ftrace_func_t)ftrace_ops_no_ops) |
#define ftrace_shutdown |
( |
|
ops, |
|
|
|
command |
|
) |
| do { } while (0) |
#define ftrace_shutdown_sysctl |
( |
| ) |
do { } while (0) |
Value:({ \
(
ops)->
flags |= FTRACE_OPS_FL_ENABLED; \
0; \
})
Definition at line 4063 of file ftrace.c.
#define ftrace_startup_sysctl |
( |
| ) |
do { } while (0) |
#define FTRACE_WARN_ON |
( |
|
cond | ) |
|
Value:({ \
ftrace_kill(); \
___r; \
})
Definition at line 43 of file ftrace.c.
#define FTRACE_WARN_ON_ONCE |
( |
|
cond | ) |
|
Value:({ \
ftrace_kill(); \
___r; \
})
Definition at line 51 of file ftrace.c.
clear_ftrace_function - reset the ftrace function
This NULLs the ftrace function and in essence stops tracing. There may be lag
Definition at line 182 of file ftrace.c.
device_initcall |
( |
ftrace_nodyn_init |
| ) |
|
fs_initcall |
( |
ftrace_init_debugfs |
| ) |
|
Test if ftrace is dead or not.
Definition at line 4446 of file ftrace.c.
ftrace_kill - kill ftrace
This function should be used by panic code. It stops ftrace but in a not so nice way. If you need to simply kill ftrace from a non-atomic section, use ftrace_kill.
Definition at line 4436 of file ftrace.c.
int ftrace_nr_registered_ops |
( |
void |
| ) |
|
ftrace_nr_registered_ops - return number of ops registered
Returns the number of ftrace_ops registered and tracing functions
Definition at line 119 of file ftrace.c.
int register_ftrace_function |
( |
struct ftrace_ops * |
ops | ) |
|
register_ftrace_function - register a function for profiling - ops structure that holds the function for profiling.
Register a function to be called by all functions in the kernel.
Note: ->func and all the functions it calls must be labeled with "notrace", otherwise it will go into a recursive loop.
Definition at line 4462 of file ftrace.c.
int unregister_ftrace_function |
( |
struct ftrace_ops * |
ops | ) |
|
unregister_ftrace_function - unregister a function for profiling. - ops structure that holds the function to unregister
Unregister a function that was added to be called by ftrace profiling.
Definition at line 4484 of file ftrace.c.