Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tools: traceevent API cleanup, remove __tep_data2host*()

In order to make libtraceevent into a proper library, its API should be
straightforward. The __tep_data2host*() functions are going to no longer
be available as a libtraceevent API, tep_read_number() should be used
instead. This patch replaces __tep_data2host*() usage with
tep_read_number() in perf.

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>
Link: http://lkml.kernel.org/r/20181130154647.743979275@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Tzvetomir Stoyanov and committed by
Arnaldo Carvalho de Melo
f0bba09c fc39851c

+2 -2
+2 -2
tools/perf/util/trace-event-read.c
··· 102 102 103 103 if (do_read(&data, 4) < 0) 104 104 return 0; 105 - return __tep_data2host4(pevent, data); 105 + return tep_read_number(pevent, &data, 4); 106 106 } 107 107 108 108 static unsigned long long read8(struct tep_handle *pevent) ··· 111 111 112 112 if (do_read(&data, 8) < 0) 113 113 return 0; 114 - return __tep_data2host8(pevent, data); 114 + return tep_read_number(pevent, &data, 8); 115 115 } 116 116 117 117 static char *read_string(void)