Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp940363iob; Fri, 13 May 2022 17:10:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBY7aJDKxqvZaMtSTGxj9R6tGe1YAoYyjZ7tLSXjhXsQUJFYdBAPGJ39UhITQHBVF4ybS1 X-Received: by 2002:a05:600c:1986:b0:394:867f:984c with SMTP id t6-20020a05600c198600b00394867f984cmr17096657wmq.20.1652487040400; Fri, 13 May 2022 17:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652487040; cv=none; d=google.com; s=arc-20160816; b=xXk/fm77Mve21o7fBaFsR9gKFWDALIvEo65owEqTu3qONojDsf/oD9Qu4hUZhZXfjj ruD+GM/Zr0orqfU4PDwFcoDtFH8UjoZPjX10ykATJJlIyJcarjuDhqZmbTCq2RVaGV4s y/jFtjg+NDOxp3DgVVIhW2B6EutFk9IX+8HLNlkHxZC189lmcwvDpbd6GXzf2Zi5z+mh Qx8hZutgQhgn7YkSQPuNaopwBqHHIlvdj7hBYy1unRd0X+nmjrSrST5AWa/uPp1BfOoH 8rFKgj73ODxHxEj3oazfO63gb09JTHX5hrTXlZKGj8O54QBpSy9tUC/mdB0fKjrh5bXW MLbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:message-id:date:subject:cc:to:from:dkim-signature; bh=YxSsqhpX+wgjFIKM/tn5dXPSovmIR/+q5RF5CVnF2Hs=; b=lD5AVHQX0HbFI6X29uZwXJu+9qGM0HTRpz/ceH+/ggSXeIVtqcwKEkpvetmVHQy2En 8niUrkX2nVIRHDTd2Wuwmt3fmAOOioscwQAF7TXAU+AoM9wXpYJDhPPW/QmFcg0OHh0T MT69lsm8okCS+w6CloC89LtGOoiULxNDu+A2R87UnS1k/DfcURjQIN4b52ltNiqmcs8e Zr3O/LDW7FGCIMG4KVDguFSLMF2Wwf4fPNC/40JG5IBqKaRokhNt/CPBxzxPsrYG4Pu8 4kR6UPnNexTRqlCdUsQeYnOOP2CAGxPp4IiEiBAKe7PLR4Cy7Zo5Q4u45W4ixkDO+GS8 Gtpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AnJn6sLq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j12-20020a5d604c000000b0020609ef0490si3016642wrt.78.2022.05.13.17.10.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:10:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AnJn6sLq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DEC052FAACE; Fri, 13 May 2022 16:12:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378805AbiEMJC6 (ORCPT + 99 others); Fri, 13 May 2022 05:02:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244217AbiEMJCz (ORCPT ); Fri, 13 May 2022 05:02:55 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F0788FD6D; Fri, 13 May 2022 02:02:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652432574; x=1683968574; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=45+/AEx1UDTyL/FaFySGemKP+J4KpV7f3tcTiOxPaOQ=; b=AnJn6sLq24OSb5GELbIFg0uTfn2hlTU8E5gRy2vzWVkgVxVmmERVMPuv zzQ3pvhjVMsk7IGBHFdwzEVmwSVKUH4EOb5f6ExnhJ5gG3ddIE+bUGY4M 3edkZDVifCpDvZLNJjZulhuRyoKd7bX/SWuRGHdz9wdxx3ePstx4lyawl qGIjfyHDaqHZzsJD8MdBiCW6rTSEPWYK01n/cuc3UqJmgM46pPqkj35nY tFSFmwHcokCrGWcx8KbWmp4quHHTQIXibOrql0xUjo5B88Icv4zFDqCcZ iBFd9Xb7+UUL3Qeby83GF0ZpwKeHSUbTomcnEt0JnXaaJz7jjPzCuBPVQ w==; X-IronPort-AV: E=McAfee;i="6400,9594,10345"; a="330856451" X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="330856451" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2022 02:02:53 -0700 X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="595129522" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO ahunter-VirtualBox.home\044ger.corp.intel.com) ([10.252.36.190]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2022 02:02:49 -0700 From: Adrian Hunter To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Namhyung Kim , Ian Rogers , Leo Yan , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH 0/6] perf intel-pt: Add support for tracing KVM test programs Date: Fri, 13 May 2022 12:02:31 +0300 Message-Id: <20220513090237.10444-1-adrian.hunter@intel.com> X-Mailer: git-send-email 2.25.1 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi A common case for KVM test programs is that the guest object code can be found in the hypervisor process (i.e. the test program running on the host). Add support for that. For some more details refer the 3rd patch "perf tools: Add guest_code support" For an example, see the last patch "perf intel-pt: Add guest_code support" For more information about Perf tools support for IntelĀ® Processor Trace refer: https://perf.wiki.kernel.org/index.php/Perf_tools_support_for_Intel%C2%AE_Processor_Trace Adrian Hunter (6): perf tools: Add machine to machines back pointer perf tools: Factor out thread__set_guest_comm() perf tools: Add guest_code support perf script: Add guest_code support perf kvm report: Add guest_code support perf intel-pt: Add guest_code support tools/perf/Documentation/perf-intel-pt.txt | 67 ++++++++++++++++++++++++ tools/perf/Documentation/perf-kvm.txt | 3 ++ tools/perf/Documentation/perf-script.txt | 4 ++ tools/perf/builtin-kvm.c | 2 + tools/perf/builtin-script.c | 5 +- tools/perf/util/event.c | 7 ++- tools/perf/util/intel-pt.c | 20 ++++++- tools/perf/util/machine.c | 84 ++++++++++++++++++++++++++++-- tools/perf/util/machine.h | 4 ++ tools/perf/util/session.c | 7 +++ tools/perf/util/symbol_conf.h | 3 +- 11 files changed, 197 insertions(+), 9 deletions(-) Regards Adrian