aboutsummaryrefslogtreecommitdiffstats
path: root/trace-cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'trace-cmd.h')
-rw-r--r--trace-cmd.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/trace-cmd.h b/trace-cmd.h
index cbd563e..b77b8e6 100644
--- a/trace-cmd.h
+++ b/trace-cmd.h
@@ -42,6 +42,7 @@ char **tracecmd_local_plugins(const char *tracing_dir);
42 42
43char **tracecmd_add_list(char **list, const char *name, int len); 43char **tracecmd_add_list(char **list, const char *name, int len);
44void tracecmd_free_list(char **list); 44void tracecmd_free_list(char **list);
45int *tracecmd_add_id(int *list, int id, int len);
45 46
46enum { 47enum {
47 RINGBUF_TYPE_PADDING = 29, 48 RINGBUF_TYPE_PADDING = 29,
@@ -53,6 +54,7 @@ enum {
53#define TS_SHIFT 27 54#define TS_SHIFT 27
54#endif 55#endif
55 56
57void tracecmd_record_ref(struct record *record);
56void free_record(struct record *record); 58void free_record(struct record *record);
57 59
58struct tracecmd_input; 60struct tracecmd_input;
@@ -76,6 +78,13 @@ enum {
76 TRACECMD_OPTION_DONE, 78 TRACECMD_OPTION_DONE,
77}; 79};
78 80
81struct tracecmd_ftrace {
82 struct tracecmd_input *handle;
83 struct event_format *fgraph_ret_event;
84 int fgraph_ret_id;
85 int long_size;
86};
87
79struct tracecmd_input *tracecmd_alloc(const char *file); 88struct tracecmd_input *tracecmd_alloc(const char *file);
80struct tracecmd_input *tracecmd_alloc_fd(int fd); 89struct tracecmd_input *tracecmd_alloc_fd(int fd);
81struct tracecmd_input *tracecmd_open(const char *file); 90struct tracecmd_input *tracecmd_open(const char *file);
@@ -137,7 +146,7 @@ int tracecmd_set_cursor(struct tracecmd_input *handle,
137unsigned long long 146unsigned long long
138tracecmd_get_cursor(struct tracecmd_input *handle, int cpu); 147tracecmd_get_cursor(struct tracecmd_input *handle, int cpu);
139 148
140int tracecmd_ftrace_overrides(struct tracecmd_input *handle); 149int tracecmd_ftrace_overrides(struct tracecmd_input *handle, struct tracecmd_ftrace *finfo);
141struct pevent *tracecmd_get_pevent(struct tracecmd_input *handle); 150struct pevent *tracecmd_get_pevent(struct tracecmd_input *handle);
142 151
143#ifndef SWIG 152#ifndef SWIG
@@ -151,7 +160,8 @@ extern __thread struct tracecmd_input *tracecmd_curr_thread_handle;
151struct tracecmd_output *tracecmd_create_file_latency(const char *output_file, int cpus); 160struct tracecmd_output *tracecmd_create_file_latency(const char *output_file, int cpus);
152struct tracecmd_output *tracecmd_create_file(const char *output_file, 161struct tracecmd_output *tracecmd_create_file(const char *output_file,
153 int cpus, char * const *cpu_data_files); 162 int cpus, char * const *cpu_data_files);
154struct tracecmd_output *tracecmd_create_init_fd(int fd, int cpus); 163struct tracecmd_output *tracecmd_create_init_fd(int fd);
164struct tracecmd_output *tracecmd_create_init_file(const char *output_file);
155void tracecmd_output_close(struct tracecmd_output *handle); 165void tracecmd_output_close(struct tracecmd_output *handle);
156struct tracecmd_output *tracecmd_copy(struct tracecmd_input *ihandle, 166struct tracecmd_output *tracecmd_copy(struct tracecmd_input *ihandle,
157 const char *file); 167 const char *file);