Skip to content

Commit 5d6552a

Browse files
tzstoyanovacmel
authored andcommitted
libtraceevent: Remove tep_register_trace_clock()
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>
1 parent 38847db commit 5d6552a

3 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎tools/lib/traceevent/event-parse-local.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ struct tep_handle {
8181

8282
/* cache */
8383
struct tep_event *last_event;
84-
85-
char *trace_clock;
8684
};
8785

8886
void tep_free_event(struct tep_event *event);

‎tools/lib/traceevent/event-parse.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -393,16 +393,6 @@ int tep_override_comm(struct tep_handle *tep, const char *comm, int pid)
393393
return _tep_register_comm(tep, comm, pid, true);
394394
}
395395

396-
int 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-
406396
struct func_map {
407397
unsigned long long addr;
408398
char *func;
@@ -7057,7 +7047,6 @@ void tep_free(struct tep_handle *tep)
70577047
free_handler(handle);
70587048
}
70597049

7060-
free(tep->trace_clock);
70617050
free(tep->events);
70627051
free(tep->sort_events);
70637052
free(tep->func_resolver);

‎tools/lib/traceevent/event-parse.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ int tep_set_function_resolver(struct tep_handle *tep,
435435
void tep_reset_function_resolver(struct tep_handle *tep);
436436
int tep_register_comm(struct tep_handle *tep, const char *comm, int pid);
437437
int tep_override_comm(struct tep_handle *tep, const char *comm, int pid);
438-
int tep_register_trace_clock(struct tep_handle *tep, const char *trace_clock);
439438
int tep_register_function(struct tep_handle *tep, char *name,
440439
unsigned long long addr, char *mod);
441440
int tep_register_print_string(struct tep_handle *tep, const char *fmt,

0 commit comments

Comments
 (0)