projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca3958b
)
tools lib traceevent: Initialize host_bigendian at tep_handle allocation
author
Tzvetomir Stoyanov
<
[email protected]
>
Sat, 1 Dec 2018 04:08:08 +0000
(23:08 -0500)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Tue, 8 Jan 2019 16:28:13 +0000
(13:28 -0300)
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]
>
tools/lib/traceevent/event-parse.c
patch
|
blob
|
history
diff --git
a/tools/lib/traceevent/event-parse.c
b/tools/lib/traceevent/event-parse.c
index 156e513074b25da6c1a2c9b7e891c56e1f24cf9a..44b80471b024c007641f0ac4c9518776b04b8485 100644
(file)
--- a/
tools/lib/traceevent/event-parse.c
+++ b/
tools/lib/traceevent/event-parse.c
@@
-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;
}