Merge ~r41k0u/ubuntu/+source/libtraceevent:fix-endian into ubuntu/+source/libtraceevent:ubuntu/devel
Proposed by
Pragyansh Chaturvedi
Status: | Merged | ||||
---|---|---|---|---|---|
Merge reported by: | Andreas Hasenack | ||||
Merged at revision: | ac0f12e9ccf08150026ba8ab152a690c1980630c | ||||
Proposed branch: | ~r41k0u/ubuntu/+source/libtraceevent:fix-endian | ||||
Merge into: | ubuntu/+source/libtraceevent:ubuntu/devel | ||||
Diff against target: |
73 lines (+42/-1) 4 files modified
debian/changelog (+8/-0) debian/control (+2/-1) debian/patches/0002-fix-file-endianness.patch (+31/-0) debian/patches/series (+1/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Sponsors | Pending | ||
git-ubuntu import | Pending | ||
Review via email: mp+477042@code.launchpad.net |
Commit message
Set default file_bigendian in struct tep_handle
tep_alloc() creates a tep_handle object and sets the host_bigendian.
But it does not account for file_bigendian, which is set as TEP_LITTLE_ENDIAN
by default.
It is a safe assumption to set file_bigendian to the same value as
host_bigendian by default. If these are different, the user can set it using
event-parse-api
This fixes libtracefs on big-endian architectures, which depends on
libtraceevent. Without this fix, libtracefs would segfault on big-endian
architectures as host_bigendian would be set, but not file_bigendian.
To post a comment you must log in.
Hi adrien
Thank you for reviewing! I have addressed your comments and rebased the branch