]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
libtraceevent: Remove tep_register_trace_clock()
authorTzvetomir Stoyanov <tstoyanov@vmware.com>
Mon, 5 Aug 2019 20:43:14 +0000 (16:43 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 1 Sep 2019 01:19:28 +0000 (22:19 -0300)
The tep_register_trace_clock() API is used to instruct the traceevent
library how to print the event time stamps. As event print interface if
redesigned, this API is not needed any more.  The new event print API is
flexible and the user can specify how the time stamps are printed.

Signed-off-by: Tzvetomir Stoyanov <tstoyanov@vmware.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Patrick McLean <chutzpah@gentoo.org>
Cc: linux-trace-devel@vger.kernel.org
Link: http://lore.kernel.org/linux-trace-devel/20190801074959.22023-3-tz.stoyanov@gmail.com
Link: http://lore.kernel.org/lkml/20190805204355.195042846@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse-local.h
tools/lib/traceevent/event-parse.c
tools/lib/traceevent/event-parse.h

index 6e58ee1fe7c868500ae2069978452e208ba3521e..cee469803a34ac63885499c2f64b3de65b371946 100644 (file)
@@ -81,8 +81,6 @@ struct tep_handle {
 
        /* cache */
        struct tep_event *last_event;
-
-       char *trace_clock;
 };
 
 void tep_free_event(struct tep_event *event);
index d1085aab9c436f338758e0b328e9617bc455e2cf..bb22238debfe1f932f2fe48bd4c6647ba726d9cc 100644 (file)
@@ -393,16 +393,6 @@ int tep_override_comm(struct tep_handle *tep, const char *comm, int pid)
        return _tep_register_comm(tep, comm, pid, true);
 }
 
-int tep_register_trace_clock(struct tep_handle *tep, const char *trace_clock)
-{
-       tep->trace_clock = strdup(trace_clock);
-       if (!tep->trace_clock) {
-               errno = ENOMEM;
-               return -1;
-       }
-       return 0;
-}
-
 struct func_map {
        unsigned long long              addr;
        char                            *func;
@@ -7057,7 +7047,6 @@ void tep_free(struct tep_handle *tep)
                free_handler(handle);
        }
 
-       free(tep->trace_clock);
        free(tep->events);
        free(tep->sort_events);
        free(tep->func_resolver);
index cf7f302eb44a048e5a2302dd18fed044fa72f8ad..d438ee44289f53dd045f3831ba90ae44ef45996b 100644 (file)
@@ -435,7 +435,6 @@ int tep_set_function_resolver(struct tep_handle *tep,
 void tep_reset_function_resolver(struct tep_handle *tep);
 int tep_register_comm(struct tep_handle *tep, const char *comm, int pid);
 int tep_override_comm(struct tep_handle *tep, const char *comm, int pid);
-int tep_register_trace_clock(struct tep_handle *tep, const char *trace_clock);
 int tep_register_function(struct tep_handle *tep, char *name,
                          unsigned long long addr, char *mod);
 int tep_register_print_string(struct tep_handle *tep, const char *fmt,