[0/5] perf intel-pt: Use of get_unaligned_le16() etc

Message ID 20231005190451.175568-1-adrian.hunter@intel.com
Headers
Series perf intel-pt: Use of get_unaligned_le16() etc |

Message

Adrian Hunter Oct. 5, 2023, 7:04 p.m. UTC
  Hi

Ian sent a patch for this, but using get_unaligned_le16() etc seems nicer.


Adrian Hunter (5):
      perf tools: Add get_unaligned_leNN()
      perf intel-pt: Simplify intel_pt_get_vmcs()
      perf intel-pt: Use existing definitions of le16_to_cpu() etc
      perf intel-pt: Use of get_unaligned_le16() etc
      perf intel-pt: Prefer get_unaligned_le64 to memcpy_le64

 tools/include/asm-generic/unaligned.h              | 20 ++++++++++
 .../util/intel-pt-decoder/intel-pt-pkt-decoder.c   | 43 +++++++++-------------
 2 files changed, 37 insertions(+), 26 deletions(-)


Regards
Adrian