mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Steven Rostedt (VMware) <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
ca3958b1c0
commit
eed14f4b07
1 changed files with 3 additions and 1 deletions
|
|
@ -6762,8 +6762,10 @@ struct tep_handle *tep_alloc(void)
|
|||
{
|
||||
struct tep_handle *pevent = calloc(1, sizeof(*pevent));
|
||||
|
||||
if (pevent)
|
||||
if (pevent) {
|
||||
pevent->ref_count = 1;
|
||||
pevent->host_bigendian = tep_host_bigendian();
|
||||
}
|
||||
|
||||
return pevent;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue