summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/lib/traceevent/event-parse-local.h2
-rw-r--r--tools/lib/traceevent/event-parse.c11
-rw-r--r--tools/lib/traceevent/event-parse.h1
3 files changed, 0 insertions, 14 deletions
diff --git a/tools/lib/traceevent/event-parse-local.h b/tools/lib/traceevent/event-parse-local.h
index 6e58ee1fe7c8..cee469803a34 100644
--- a/tools/lib/traceevent/event-parse-local.h
+++ b/tools/lib/traceevent/event-parse-local.h
@@ -81,8 +81,6 @@ struct tep_handle {
81 81
82 /* cache */ 82 /* cache */
83 struct tep_event *last_event; 83 struct tep_event *last_event;
84
85 char *trace_clock;
86}; 84};
87 85
88void tep_free_event(struct tep_event *event); 86void tep_free_event(struct tep_event *event);
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index d1085aab9c43..bb22238debfe 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -393,16 +393,6 @@ int tep_override_comm(struct tep_handle *tep, const char *comm, int pid)
393 return _tep_register_comm(tep, comm, pid, true); 393 return _tep_register_comm(tep, comm, pid, true);
394} 394}
395 395
396int tep_register_trace_clock(struct tep_handle *tep, const char *trace_clock)
397{
398 tep->trace_clock = strdup(trace_clock);
399 if (!tep->trace_clock) {
400 errno = ENOMEM;
401 return -1;
402 }
403 return 0;
404}
405
406struct func_map { 396struct func_map {
407 unsigned long long addr; 397 unsigned long long addr;
408 char *func; 398 char *func;
@@ -7057,7 +7047,6 @@ void tep_free(struct tep_handle *tep)
7057 free_handler(handle); 7047 free_handler(handle);
7058 } 7048 }
7059 7049
7060 free(tep->trace_clock);
7061 free(tep->events); 7050 free(tep->events);
7062 free(tep->sort_events); 7051 free(tep->sort_events);
7063 free(tep->func_resolver); 7052 free(tep->func_resolver);
diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h
index cf7f302eb44a..d438ee44289f 100644
--- a/tools/lib/traceevent/event-parse.h
+++ b/tools/lib/traceevent/event-parse.h
@@ -435,7 +435,6 @@ int tep_set_function_resolver(struct tep_handle *tep,
435void tep_reset_function_resolver(struct tep_handle *tep); 435void tep_reset_function_resolver(struct tep_handle *tep);
436int tep_register_comm(struct tep_handle *tep, const char *comm, int pid); 436int tep_register_comm(struct tep_handle *tep, const char *comm, int pid);
437int tep_override_comm(struct tep_handle *tep, const char *comm, int pid); 437int tep_override_comm(struct tep_handle *tep, const char *comm, int pid);
438int tep_register_trace_clock(struct tep_handle *tep, const char *trace_clock);
439int tep_register_function(struct tep_handle *tep, char *name, 438int tep_register_function(struct tep_handle *tep, char *name,
440 unsigned long long addr, char *mod); 439 unsigned long long addr, char *mod);
441int tep_register_print_string(struct tep_handle *tep, const char *fmt, 440int tep_register_print_string(struct tep_handle *tep, const char *fmt,