Re: [PATCH 3/3] tools/lib/traceevent: Implement new traceevent APIs for accessing struct tep_handler fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 20, 2019 at 6:32 PM Matt Helsley <mhelsley@xxxxxxxxxx> wrote:
>
<snit>
> >
> > static inline int tep_host_bigendian(void)
> > {
>
> Does another series rename this to: tep_is_host_bigendian() ?
>
> Cheers,
>      -Matt
>

This one is a little bit confusing, there are two different APIs:
int tep_host_bigendian(void) - used in perf, checks the byte order of
the local machine
int tep_is_host_bigendian(struct tep_handle *pevent) - checks the
order, stored in the tep_handler

I remember that we discussed this with Steven last year, and decided
to keep both of them. I'm not
aware of all use cases, and what is the purpose of tep_is_host_bigendian() API ?

-- 

Tzvetomir (Ceco) Stoyanov
VMware Open Source Technology Center




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux