diff options
Diffstat (limited to 'tools/perf/util/trace-event-read.c')
| -rw-r--r-- | tools/perf/util/trace-event-read.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/trace-event-read.c b/tools/perf/util/trace-event-read.c index 8a01af783310..1162c49b8082 100644 --- a/tools/perf/util/trace-event-read.c +++ b/tools/perf/util/trace-event-read.c @@ -11,12 +11,14 @@  #include <sys/stat.h>  #include <sys/wait.h>  #include <sys/mman.h> +#include <traceevent/event-parse.h>  #include <fcntl.h>  #include <unistd.h>  #include <errno.h>  #include "trace-event.h"  #include "debug.h" +#include "util.h"  static int input_fd; @@ -414,7 +416,7 @@ ssize_t trace_report(int fd, struct trace_event *tevent, bool __repipe)  		return -1;  	}  	file_bigendian = buf[0]; -	host_bigendian = bigendian(); +	host_bigendian = host_is_bigendian() ? 1 : 0;  	if (trace_event__init(tevent)) {  		pr_debug("trace_event__init failed");  | 
