/kernel/ |
H A D | stacktrace.c | 4 * Stack trace management functions 14 void print_stack_trace(struct stack_trace *trace, int spaces) argument 18 if (WARN_ON(!trace->entries)) 21 for (i = 0; i < trace->nr_entries; i++) { 23 print_ip_sym(trace->entries[i]); 34 save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) argument 40 save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace) argument
|
H A D | backtracetest.c | 23 pr_info("The following trace is a kernel self test and not a bug!\n"); 41 pr_info("The following trace is a kernel self test and not a bug!\n"); 51 struct stack_trace trace; local 55 pr_info("The following trace is a kernel self test and not a bug!\n"); 57 trace.nr_entries = 0; 58 trace.max_entries = ARRAY_SIZE(entries); 59 trace.entries = entries; 60 trace.skip = 0; 62 save_stack_trace(&trace); 63 print_stack_trace(&trace, [all...] |
H A D | latencytop.c | 148 struct stack_trace trace; local 150 memset(&trace, 0, sizeof(trace)); 151 trace.max_entries = LT_BACKTRACEDEPTH; 152 trace.entries = &lat->backtrace[0]; 153 save_stack_trace_tsk(tsk, &trace);
|
H A D | context_tracking.c | 25 #include <trace/events/context_tracking.h>
|
H A D | Makefile | 15 # Do not trace debug files and internal ftrace files 82 obj-$(CONFIG_FUNCTION_TRACER) += trace/ 83 obj-$(CONFIG_TRACING) += trace/ 84 obj-$(CONFIG_TRACE_CLOCK) += trace/ 85 obj-$(CONFIG_RING_BUFFER) += trace/ 86 obj-$(CONFIG_TRACEPOINTS) += trace/
|
/kernel/trace/ |
H A D | trace_stat.h | 15 void *(*stat_start)(struct tracer_stat *trace); 30 extern int register_stat_tracer(struct tracer_stat *trace); 31 extern void unregister_stat_tracer(struct tracer_stat *trace);
|
H A D | gpu-traces.c | 20 #include <trace/events/gpu.h>
|
H A D | trace_selftest.c | 1 /* Include in trace.c */ 53 printk(KERN_CONT ".. corrupted trace buffer .. "); 58 * Test the trace buffer to see if all the elements 95 static inline void warn_failed_init_tracer(struct tracer *trace, int init_ret) argument 98 trace->name, init_ret); 206 * Probe 1 will trace function 1. 207 * Probe 2 will trace function 2. 208 * Probe 3 will trace functions 1 and 2. 323 static int trace_selftest_startup_dynamic_tracing(struct tracer *trace, argument 353 ret = tracer_init(trace, t 651 trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr) argument 725 trace_graph_entry_watchdog(struct ftrace_graph_ent *trace) argument 747 trace_selftest_startup_function_graph(struct tracer *trace, struct trace_array *tr) argument 812 trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr) argument 861 trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr) argument 923 trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr) argument 1024 trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr) argument 1076 trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr) argument 1154 trace_selftest_startup_sched_switch(struct tracer *trace, struct trace_array *tr) argument 1186 trace_selftest_startup_branch(struct tracer *trace, struct trace_array *tr) argument [all...] |
H A D | power-traces.c | 2 * Power trace points 14 #include <trace/events/power.h>
|
H A D | rpm-traces.c | 2 * Power trace points 15 #include <trace/events/rpm.h>
|
H A D | trace_benchmark.h | 41 #include <trace/define_trace.h>
|
H A D | trace_stat.c | 17 #include "trace.h" 302 int register_stat_tracer(struct tracer_stat *trace) argument 307 if (!trace) 310 if (!trace->stat_start || !trace->stat_next || !trace->stat_show) 316 if (node->ts == trace) { 328 session->ts = trace; 346 void unregister_stat_tracer(struct tracer_stat *trace) argument 352 if (node->ts == trace) { [all...] |
H A D | trace_irqsoff.c | 2 * trace irqs off critical timings 19 #include "trace.h" 66 /* display latency trace as call graph */ 95 * 0 if the trace is to be ignored, and data->disabled 179 static int irqsoff_graph_entry(struct ftrace_graph_ent *trace) argument 191 ret = __trace_graph_entry(tr, trace, flags, pc); 197 static void irqsoff_graph_return(struct ftrace_graph_ret *trace) argument 208 __trace_graph_return(tr, trace, flags, pc); 270 static int irqsoff_graph_entry(struct ftrace_graph_ent *trace) argument 280 static void irqsoff_graph_return(struct ftrace_graph_ret *trace) { } argument [all...] |
H A D | trace_functions_graph.c | 15 #include "trace.h" 90 /* Use standard trace formatting rather than hierarchical */ 119 /* Add a function return address to the trace stack on thread info.*/ 139 /* The return trace stack is full */ 180 /* Retrieve a function return address to the trace stack on thread info.*/ 182 ftrace_pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret, argument 213 * the function graph trace will fail. This test detects this 236 trace->func = current->ret_stack[index].func; 237 trace->calltime = current->ret_stack[index].calltime; 238 trace 248 struct ftrace_graph_ret trace; local 282 __trace_graph_entry(struct trace_array *tr, struct ftrace_graph_ent *trace, unsigned long flags, int pc) argument 315 trace_graph_entry(struct ftrace_graph_ent *trace) argument 361 trace_graph_thresh_entry(struct ftrace_graph_ent *trace) argument 397 __trace_graph_return(struct trace_array *tr, struct ftrace_graph_ret *trace, unsigned long flags, int pc) argument 420 trace_graph_return(struct ftrace_graph_ret *trace) argument 450 trace_graph_thresh_return(struct ftrace_graph_ret *trace) argument 1159 print_graph_return(struct ftrace_graph_ret *trace, struct trace_seq *s, struct trace_entry *ent, struct trace_iterator *iter, u32 flags) argument [all...] |
H A D | trace_syscalls.c | 1 #include <trace/syscall.h> 2 #include <trace/events/syscalls.h> 12 #include "trace.h" 115 struct syscall_trace_enter *trace; local 119 trace = (typeof(trace))ent; 120 syscall = trace->nr; 144 trace->args[i], 168 struct syscall_trace_exit *trace; local 173 trace 266 struct syscall_trace_enter trace; local 289 struct syscall_trace_exit trace; local [all...] |
H A D | Kconfig | 15 See Documentation/trace/ftrace-design.txt 20 See Documentation/trace/ftrace-design.txt 25 See Documentation/trace/ftrace-design.txt 30 See Documentation/trace/ftrace-design.txt 35 See Documentation/trace/ftrace-design.txt 43 See Documentation/trace/ftrace-design.txt 48 See Documentation/trace/ftrace-design.txt 145 Enable the kernel to trace every kernel function. This is done 160 Enable the kernel to trace a function at both its return 162 Its first purpose is to trace th [all...] |
H A D | trace_events_filter_test.h | 50 #include <trace/define_trace.h>
|
H A D | trace.c | 43 #include "trace.h" 84 * tracing is active, only save the comm when a trace event 206 * a link list of pages that will store trace entries. The 300 * Shows if the global trace has been enabled or not. It uses the 457 * __trace_puts - write a constant string into the trace buffer. 508 * __trace_bputs - write the pointer to a constant string into trace buffer 553 * trace when some condition is triggered, but continue to trace. 576 internal_trace_puts("*** stopping trace here! ***\n"); 660 * trace whe 1771 struct stack_trace trace; local 1899 struct stack_trace trace; local 3496 struct tracer *trace = tr->current_trace; local 3513 struct tracer *trace = tr->current_trace; local [all...] |
H A D | trace_sched_wakeup.c | 2 * trace task wakeup timings 20 #include <trace/events/sched.h> 21 #include "trace.h" 39 static int wakeup_graph_entry(struct ftrace_graph_ent *trace); 40 static void wakeup_graph_return(struct ftrace_graph_ret *trace); 49 /* display latency trace as call graph */ 69 * 0 if the trace is to be ignored, and preemption 226 static int wakeup_graph_entry(struct ftrace_graph_ent *trace) argument 237 ret = __trace_graph_entry(tr, trace, flags, pc); 244 static void wakeup_graph_return(struct ftrace_graph_ret *trace) argument 317 wakeup_graph_entry(struct ftrace_graph_ent *trace) argument 327 wakeup_graph_return(struct ftrace_graph_ret *trace) argument [all...] |
H A D | trace.h | 116 * states when a trace occurs. These are: 137 * The CPU trace array - it consists of thousands of trace entries 139 * the trace, etc.) 171 * The trace array - an array of per-CPU trace arrays. This is the 181 * The max_buffer is used to snapshot the trace when a maximum 183 * Some tracers will use this to store a maximum trace while 227 cpumask_var_t tracing_cpumask; /* only trace on set CPUs */ 248 * The global tracer (top) should be the first trace arra [all...] |
H A D | trace_branch.c | 18 #include "trace.h" 173 .trace = trace_branch_print, 216 * I would love to have a trace point here instead, but the 217 * trace point code is so inundated with unlikely and likely 284 static void *annotated_branch_stat_start(struct tracer_stat *trace) argument 374 static void *all_branch_stat_start(struct tracer_stat *trace) argument
|
H A D | trace_output.c | 403 * @s: trace seq struct to write to 404 * @entry: The trace entry field from the ring buffer 679 * to the trace_type enum in trace.h, to avoid collisions 720 printk(KERN_WARNING "Need to add type to trace.h\n"); 729 if (event->funcs->trace == NULL) 730 event->funcs->trace = trace_nop_print; 860 .trace = trace_fn_trace, 936 .trace = trace_graph_ent_trace, 1022 .trace = trace_graph_ret_trace, 1163 .trace [all...] |
/kernel/rcu/ |
H A D | rcu.h | 26 #include <trace/events/rcu.h> 133 * tracing system such that tools like perf and trace-cmd can
|
/kernel/locking/ |
H A D | lockdep.c | 54 #include <trace/events/lock.h> 377 * Stack-trace: tightly packed array of stack backtrace 392 static int save_trace(struct stack_trace *trace) argument 394 trace->nr_entries = 0; 395 trace->max_entries = MAX_STACK_TRACE_ENTRIES - nr_stack_trace_entries; 396 trace->entries = stack_trace + nr_stack_trace_entries; 398 trace->skip = 3; 400 save_stack_trace(trace); 403 * Some daft arches put -1 at the end to indicate its a full trace. 406 * complete trace tha 856 add_lock_to_list(struct lock_class *class, struct lock_class *this, struct list_head *head, unsigned long ip, int distance, struct stack_trace *trace) argument 1827 static struct stack_trace trace; local [all...] |
/kernel/irq/ |
H A D | handle.c | 19 #include <trace/events/irq.h>
|