aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ftrace.h4
-rw-r--r--include/linux/ring_buffer.h5
2 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index afba918c623c..469ceb3e85ba 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -371,11 +371,13 @@ struct ftrace_graph_ret {
371#define FTRACE_RETSTACK_ALLOC_SIZE 32 371#define FTRACE_RETSTACK_ALLOC_SIZE 32
372/* Type of the callback handlers for tracing function graph*/ 372/* Type of the callback handlers for tracing function graph*/
373typedef void (*trace_func_graph_ret_t)(struct ftrace_graph_ret *); /* return */ 373typedef void (*trace_func_graph_ret_t)(struct ftrace_graph_ret *); /* return */
374typedef void (*trace_func_graph_ent_t)(struct ftrace_graph_ent *); /* entry */ 374typedef int (*trace_func_graph_ent_t)(struct ftrace_graph_ent *); /* entry */
375 375
376extern int register_ftrace_graph(trace_func_graph_ret_t retfunc, 376extern int register_ftrace_graph(trace_func_graph_ret_t retfunc,
377 trace_func_graph_ent_t entryfunc); 377 trace_func_graph_ent_t entryfunc);
378 378
379extern void ftrace_graph_stop(void);
380
379/* The current handlers in use */ 381/* The current handlers in use */
380extern trace_func_graph_ret_t ftrace_graph_return; 382extern trace_func_graph_ret_t ftrace_graph_return;
381extern trace_func_graph_ent_t ftrace_graph_entry; 383extern trace_func_graph_ent_t ftrace_graph_entry;
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h
index 3bb87a753fa3..1a350a847edd 100644
--- a/include/linux/ring_buffer.h
+++ b/include/linux/ring_buffer.h
@@ -124,6 +124,11 @@ void tracing_on(void);
124void tracing_off(void); 124void tracing_off(void);
125void tracing_off_permanent(void); 125void tracing_off_permanent(void);
126 126
127void *ring_buffer_alloc_read_page(struct ring_buffer *buffer);
128void ring_buffer_free_read_page(struct ring_buffer *buffer, void *data);
129int ring_buffer_read_page(struct ring_buffer *buffer,
130 void **data_page, int cpu, int full);
131
127enum ring_buffer_flags { 132enum ring_buffer_flags {
128 RB_FL_OVERWRITE = 1 << 0, 133 RB_FL_OVERWRITE = 1 << 0,
129}; 134};