@@ -551,7 +551,7 @@ int tep_get_long_size(struct tep_handle *pevent);
void tep_set_long_size(struct tep_handle *pevent, int long_size);
int tep_get_page_size(struct tep_handle *pevent);
void tep_set_page_size(struct tep_handle *pevent, int _page_size);
-int tep_is_file_bigendian(struct tep_handle *pevent);
+int tep_file_bigendian(struct tep_handle *pevent);
void tep_set_file_bigendian(struct tep_handle *pevent, enum tep_endian endian);
int tep_is_host_bigendian(struct tep_handle *pevent);
void tep_set_host_bigendian(struct tep_handle *pevent, enum tep_endian endian);
@@ -1619,7 +1619,7 @@ tracecmd_translate_data(struct tracecmd_input *handle,
memset(record, 0, sizeof(*record));
record->ref_count = 1;
- if (tep_is_host_bigendian(pevent) == tep_is_file_bigendian(pevent))
+ if (tep_is_host_bigendian(pevent) == tep_file_bigendian(pevent))
swap = 0;
record->data = kbuffer_translate_data(swap, ptr, &length);
record->size = length;
@@ -1661,7 +1661,7 @@ tracecmd_read_page_record(struct tep_handle *pevent, void *page, int size,
enum kbuffer_endian endian;
void *ptr;
- if (tep_is_file_bigendian(pevent))
+ if (tep_file_bigendian(pevent))
endian = KBUFFER_ENDIAN_BIG;
else
endian = KBUFFER_ENDIAN_LITTLE;
@@ -2266,7 +2266,7 @@ static int read_cpu_data(struct tracecmd_input *handle)
else
long_size = KBUFFER_LSIZE_4;
- if (tep_is_file_bigendian(handle->pevent))
+ if (tep_file_bigendian(handle->pevent))
endian = KBUFFER_ENDIAN_BIG;
else
endian = KBUFFER_ENDIAN_LITTLE;
@@ -2475,7 +2475,7 @@ int tracecmd_make_pipe(struct tracecmd_input *handle, int cpu, int fd, int cpus)
else
long_size = KBUFFER_LSIZE_4;
- if (tep_is_file_bigendian(handle->pevent))
+ if (tep_file_bigendian(handle->pevent))
endian = KBUFFER_ENDIAN_BIG;
else
endian = KBUFFER_ENDIAN_LITTLE;
@@ -250,13 +250,13 @@ void tep_set_page_size(struct tep_handle *pevent, int _page_size)
}
/**
- * tep_is_file_bigendian - get if the file is in big endian order
+ * tep_file_bigendian - get if the file is in big endian order
* @pevent: a handle to the tep_handle
*
* This returns if the file is in big endian order
* If @pevent is NULL, 0 is returned.
*/
-int tep_is_file_bigendian(struct tep_handle *pevent)
+int tep_file_bigendian(struct tep_handle *pevent)
{
if (pevent)
return pevent->file_bigendian;
@@ -386,7 +386,7 @@ static int kvm_mmu_print_role(struct trace_seq *s, struct tep_record *record,
* We can only use the structure if file is of the same
* endianness.
*/
- if (tep_is_file_bigendian(event->pevent) ==
+ if (tep_file_bigendian(event->pevent) ==
tep_is_host_bigendian(event->pevent)) {
trace_seq_printf(s, "%u/%u q%u%s %s%s %spge %snxe",
@@ -166,7 +166,7 @@ class PEvent(object):
@cached_property
def file_endian(self):
- if tep_is_file_bigendian(self._pevent):
+ if tep_file_bigendian(self._pevent):
return '>'
return '<'
@@ -808,7 +808,7 @@ create_file_fd(int fd, struct tracecmd_input *ihandle,
/* Use the pevent of the ihandle for later writes */
handle->pevent = tracecmd_get_pevent(ihandle);
tep_ref(pevent);
- if (tep_is_file_bigendian(pevent))
+ if (tep_file_bigendian(pevent))
buf[0] = 1;
else
buf[0] = 0;
@@ -1700,8 +1700,8 @@ void trace_report (int argc, char **argv)
if (show_endian) {
printf("file is %s endian and host is %s endian\n",
- tep_is_file_bigendian(pevent) ? "big" : "little",
- tep_is_host_bigendian(pevent) ? "big" : "little");
+ tep_file_bigendian(pevent) ? "big" : "little",
+ tep_is_host_bigendian(pevent) ? "big" : "little");
return;
}
@@ -64,7 +64,7 @@ static int create_type_len(struct tep_handle *pevent, int time, int len)
bigendian = 1;
}
- if (tep_is_file_bigendian(pevent))
+ if (tep_file_bigendian(pevent))
time |= (len << 27);
else
time = (time << 5) | len;