diff options
Diffstat (limited to 'trace-cmd.h')
-rw-r--r-- | trace-cmd.h | 14 |
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 | ||
43 | char **tracecmd_add_list(char **list, const char *name, int len); | 43 | char **tracecmd_add_list(char **list, const char *name, int len); |
44 | void tracecmd_free_list(char **list); | 44 | void tracecmd_free_list(char **list); |
45 | int *tracecmd_add_id(int *list, int id, int len); | ||
45 | 46 | ||
46 | enum { | 47 | enum { |
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 | ||
57 | void tracecmd_record_ref(struct record *record); | ||
56 | void free_record(struct record *record); | 58 | void free_record(struct record *record); |
57 | 59 | ||
58 | struct tracecmd_input; | 60 | struct tracecmd_input; |
@@ -76,6 +78,13 @@ enum { | |||
76 | TRACECMD_OPTION_DONE, | 78 | TRACECMD_OPTION_DONE, |
77 | }; | 79 | }; |
78 | 80 | ||
81 | struct 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 | |||
79 | struct tracecmd_input *tracecmd_alloc(const char *file); | 88 | struct tracecmd_input *tracecmd_alloc(const char *file); |
80 | struct tracecmd_input *tracecmd_alloc_fd(int fd); | 89 | struct tracecmd_input *tracecmd_alloc_fd(int fd); |
81 | struct tracecmd_input *tracecmd_open(const char *file); | 90 | struct tracecmd_input *tracecmd_open(const char *file); |
@@ -137,7 +146,7 @@ int tracecmd_set_cursor(struct tracecmd_input *handle, | |||
137 | unsigned long long | 146 | unsigned long long |
138 | tracecmd_get_cursor(struct tracecmd_input *handle, int cpu); | 147 | tracecmd_get_cursor(struct tracecmd_input *handle, int cpu); |
139 | 148 | ||
140 | int tracecmd_ftrace_overrides(struct tracecmd_input *handle); | 149 | int tracecmd_ftrace_overrides(struct tracecmd_input *handle, struct tracecmd_ftrace *finfo); |
141 | struct pevent *tracecmd_get_pevent(struct tracecmd_input *handle); | 150 | struct 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; | |||
151 | struct tracecmd_output *tracecmd_create_file_latency(const char *output_file, int cpus); | 160 | struct tracecmd_output *tracecmd_create_file_latency(const char *output_file, int cpus); |
152 | struct tracecmd_output *tracecmd_create_file(const char *output_file, | 161 | struct 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); |
154 | struct tracecmd_output *tracecmd_create_init_fd(int fd, int cpus); | 163 | struct tracecmd_output *tracecmd_create_init_fd(int fd); |
164 | struct tracecmd_output *tracecmd_create_init_file(const char *output_file); | ||
155 | void tracecmd_output_close(struct tracecmd_output *handle); | 165 | void tracecmd_output_close(struct tracecmd_output *handle); |
156 | struct tracecmd_output *tracecmd_copy(struct tracecmd_input *ihandle, | 166 | struct tracecmd_output *tracecmd_copy(struct tracecmd_input *ihandle, |
157 | const char *file); | 167 | const char *file); |