tools lib traceevent: Initialize host_bigendian at tep_handle allocation
authorTzvetomir Stoyanov <tstoyanov@vmware.com>
Sat, 1 Dec 2018 04:08:08 +0000 (23:08 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 8 Jan 2019 16:28:13 +0000 (13:28 -0300)
commiteed14f4b075ec594ac09921b998bf3dd61f5886b
tree064d967bd183f88e8884c50e9197e4d74e6b2885
parentca3958b1c0968a6f3105e211355f128ce871e796
tools lib traceevent: Initialize host_bigendian at tep_handle allocation

This patch initializes the host_bigendian member of the tep_handle
structure with the byte order of the current host, when this handler is
created - in tep_alloc() API. We need this in order to remove the
tep_set_host_bigendian() API.

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/20181201040852.216292134@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.c