Commit eba7181d56da7e8198f0c70e3d7074bab47a5910

Authored by David Ahern
Committed by Arnaldo Carvalho de Melo
1 parent 0d7f5b57a4

perf tools: Remove unused tracing functions

Leftovers from before libtraceevent integration.

Signed-off-by: David Ahern <dsahern@gmail.com>
Link: http://lkml.kernel.org/r/1363151248-16674-3-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

Showing 2 changed files with 0 additions and 41 deletions Side-by-side Diff

tools/perf/util/trace-event-parse.c
... ... @@ -183,43 +183,6 @@
183 183 trace_seq_do_printf(&s);
184 184 }
185 185  
186   -void print_trace_event(struct pevent *pevent, int cpu, void *data, int size)
187   -{
188   - int type = trace_parse_common_type(pevent, data);
189   - struct event_format *event = pevent_find_event(pevent, type);
190   -
191   - if (!event) {
192   - warning("ug! no event found for type %d", type);
193   - return;
194   - }
195   -
196   - event_format__print(event, cpu, data, size);
197   -}
198   -
199   -void print_event(struct pevent *pevent, int cpu, void *data, int size,
200   - unsigned long long nsecs, char *comm)
201   -{
202   - struct pevent_record record;
203   - struct trace_seq s;
204   - int pid;
205   -
206   - pevent->latency_format = latency_format;
207   -
208   - record.ts = nsecs;
209   - record.cpu = cpu;
210   - record.size = size;
211   - record.data = data;
212   - pid = pevent_data_pid(pevent, &record);
213   -
214   - if (!pevent_pid_is_registered(pevent, pid))
215   - pevent_register_comm(pevent, comm, pid);
216   -
217   - trace_seq_init(&s);
218   - pevent_print_event(pevent, &s, &record);
219   - trace_seq_do_printf(&s);
220   - printf("\n");
221   -}
222   -
223 186 void parse_proc_kallsyms(struct pevent *pevent,
224 187 char *file, unsigned int size __maybe_unused)
225 188 {
tools/perf/util/trace-event.h
... ... @@ -30,12 +30,8 @@
30 30 int bigendian(void);
31 31  
32 32 struct pevent *read_trace_init(int file_bigendian, int host_bigendian);
33   -void print_trace_event(struct pevent *pevent, int cpu, void *data, int size);
34 33 void event_format__print(struct event_format *event,
35 34 int cpu, void *data, int size);
36   -
37   -void print_event(struct pevent *pevent, int cpu, void *data, int size,
38   - unsigned long long nsecs, char *comm);
39 35  
40 36 int parse_ftrace_file(struct pevent *pevent, char *buf, unsigned long size);
41 37 int parse_event_file(struct pevent *pevent,