Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp503062rdb; Thu, 5 Oct 2023 12:07:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/yoElqUukDOCM2JxbG4wcozc8qRIy/4qXrac/QjAc4ypyowDAFBFTqa5I0gSqBiVGVbVQ X-Received: by 2002:a05:6e02:1c08:b0:34f:6dcf:4100 with SMTP id l8-20020a056e021c0800b0034f6dcf4100mr6653056ilh.11.1696532827118; Thu, 05 Oct 2023 12:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696532827; cv=none; d=google.com; s=arc-20160816; b=hvBt95t8rDBkRdCZDr1B7TIiscGTI3biO+16jJv6kKCLzCj49yDCsEmfoV2wBIDUuU MSApiVOGLZ6f0r6YCWimwxoNUN3De+oPgX7WVPiV6CB5eovt6xjSBR6mA5Sgy9QUEphE q7je5QaA6EW4riHxR9IYTU1qVUBm0dWojKm/1JAUczf5lJt9QjpDGoK5QOpv5QAYFaUZ YRspbuDvqNP5VQmiCQ067xdwS/eJnoJ3n6+5gdwQGMcHSn/z/Qia5JGLyXFCoC4SOLKz dNex6l8ZptEXHw8CH8tELnVrsl7c1OuK2rerAjRCuLj9oRhXsWg9aa8ToZ8LlMwz909R Vfiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=XM/M15gj4sJHdingcjSVoDa8snjOeSg0JnZSh8BXU0g=; fh=7ueK1huCq2Lf3LMjc8i3Ob70zhQl+8ZRdqYzG6swRYY=; b=bzRlATcMaT8xy+CONYIoQMWzdOqAwcFRWMeRIZk5fApaWipQQrQVxua1gFQiBQX7jz CerbgeLUJAGyVFieFwH93z/p3zrgxxt4EzyVLJWCjfYjhPwvqj+4AG0eHjSbHRNBtrbK Jh56nxJ/dxigryD4qHvuWMbuefCIJ3hSMyv9iF7x19SVWcvNp5BnY1JwOpH0N5zFXTEo tMPMK7VmP2UbTKYI7DIpQAbDDwhucPq+7K51YzF24l2mrQIb3/dpOcBwhfSs3DFcVABj Jq+5SkxJdj8XvXN6N8URDEpBuAqSRUWjDwIOEaEhMBVxWKudyhUbpcvqspDW2djEmqAt wEqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M6QeXN2B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id m1-20020a656a01000000b00585adc52bd5si2276531pgu.730.2023.10.05.12.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 12:07:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M6QeXN2B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0579A875EA0E; Thu, 5 Oct 2023 12:07:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229939AbjJETGi (ORCPT + 99 others); Thu, 5 Oct 2023 15:06:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbjJETGe (ORCPT ); Thu, 5 Oct 2023 15:06:34 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33DDEE5; Thu, 5 Oct 2023 12:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696532793; x=1728068793; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=uzxlgwZ8x82LLBnZJSRnVgezJ3VH2Oj0pq6ma9njLKg=; b=M6QeXN2BAP3+PlLzrPkQADIWKOqpGL5h9tKExZ5pZvoLuF0dDtVrcnrM t5DwyEqYcAYhjNkGL5zvP/oC+Qp1psE40YAG8mzhOLA7GVDsiwCahKpHU uhFIIO/aHEDp/YB4RjdPuv1xlwDiPB2ch9x2uJif0OvAJzz0ayTvZHK66 Y+l3wABxr4haUmOCNJyLk5GvPu+wlgWtfnRzjVFYY5R9P6eSyeCKtnRhG M3zbv7XFddQhXfB/MXLm7LWlk8cxvmJGzChqR5fPcgndm8mMBmSt3Z1S+ Y1NISb5YLksLr8s5q6H7DhUC6VDZp2Kjf0gvDGm2uv25L/QMP31axzae4 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="383488218" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="383488218" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 12:05:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="999055066" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="999055066" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO ahunter-VirtualBox.home\044ger.corp.intel.com) ([10.249.35.8]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 12:05:08 -0700 From: Adrian Hunter To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Namhyung Kim , Ian Rogers , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH 0/5] perf intel-pt: Use of get_unaligned_le16() etc Date: Thu, 5 Oct 2023 22:04:46 +0300 Message-Id: <20231005190451.175568-1-adrian.hunter@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 12:07:00 -0700 (PDT) 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