Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1027087iob; Fri, 13 May 2022 20:10:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzojXwx1yLmvRvVYn6qbQMdBGf7SaN7AgENdlN/ORw5dCmcfPuWxgoRMub5U2kKXN9w0w5K X-Received: by 2002:a5d:5749:0:b0:20a:ce36:b29 with SMTP id q9-20020a5d5749000000b0020ace360b29mr6058936wrw.559.1652497814534; Fri, 13 May 2022 20:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652497814; cv=none; d=google.com; s=arc-20160816; b=UyvA4mQNeTjHX5brbvAZN7sWyyYSo9v303tGXr7+ZoR+Bv8iVwjZMU6ty19H108ZPz VdCrP9/vDcJuj+H5o8mhu3YuQjAB2azL1rCDA3QnqO38FE2wVBPllwmFXtWZX3Gb4qIw QaSy3/KjDzfNyJoFJt4jCrjjAvGAkvpyotaILFZiZxdXKCQXzllo59077G5WcU7hGKNl 8AhiUiDY6G6wIXD779+8BNJwY4rfoYEFL+uQBNraIAlxTdcXtAO0aaq6azRod86fgzIk xbt8GvpPqXz+qKbqUQfG7KOUqXVYWoDVi2etZH79cheeynbpMzk673iTqEWTCmTh9PCm NiHw== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bMkIaXA5Te6/qOxWM1zUA9dOenalMHc6ojwwsmmZe5s=; b=Uqek/gaOb7U75sSVk6bUCqYgpLjRbAo9Zm256x4Gq/ohFjGAoCmdxFSUPghObv6xvG 6TDMIQ07s2vInyojMMQoFIsbVOzwAPJVAOpWVJiM2f49Ftu3/xRXV7SzlmwBahQdoqC4 xgztbLskuFwIHGOuyjvD0P6g2wB+b2Ik3zD+p0/pSNixtJGVTZA9Rj1noBhVC3t70iSP l8yh0Jp9IdAeERjcFgWtCmLkBQLWoWwDpa/dympMqy0fz7VrzO/L5duz7lsRqsu481sK /hRiaoe77WuqUrKHMh51CUnXyL0VK7j2s+LGady06M/DA1+94AIGVoe+i7tYYGa44gwn 2OFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=L5ZLJTC4; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id l7-20020a1ced07000000b003948a545dfdsi6690247wmh.97.2022.05.13.20.10.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:10:14 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=L5ZLJTC4; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 9AABF3C8B16; Fri, 13 May 2022 16:51:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378896AbiEMJDV (ORCPT + 99 others); Fri, 13 May 2022 05:03:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378864AbiEMJDI (ORCPT ); Fri, 13 May 2022 05:03:08 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ECFE9B1BA; Fri, 13 May 2022 02:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652432587; x=1683968587; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UGgiD+lsZ3LQDZgfT13E23wHzHRHsuBkOFD7vqgyL6k=; b=L5ZLJTC4e5jqTJZp2HvkQBm3RxlcHlWRsnR4kBndHehoh4YqPZW+Fpqg CDNiyW2mM+4+WGxvXoP72g+XocQvQHBw/e1Rhvktb2ZWoJi1l4YtrAYW4 abauoCU1XIx6TYkGQByOyAf7JzKxlL0uc1/5HTFqCRvf9xawAYxTj2DJP 8qYrqlHmvekyeZltMuWOGvBeYZRzTejbrbfSWMkGtWJYLqiPXd805h0jk RRHemmlmOkpXY8nnO3gepYLb45f4EVgAxjSMlNNf4M9PE0QVufO2FpL6/ g9b8JBSOpUfzwyNAnoet537DK3ONfy6Y/Da62OtCLnm1sqBCURIm0p1rT A==; X-IronPort-AV: E=McAfee;i="6400,9594,10345"; a="330856516" X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="330856516" 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:03:06 -0700 X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="595129699" 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:03:04 -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 5/6] perf kvm report: Add guest_code support Date: Fri, 13 May 2022 12:02:36 +0300 Message-Id: <20220513090237.10444-6-adrian.hunter@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220513090237.10444-1-adrian.hunter@intel.com> References: <20220513090237.10444-1-adrian.hunter@intel.com> 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=-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 Add an option to indicate that guest code can be found in the hypervisor process. Signed-off-by: Adrian Hunter --- tools/perf/Documentation/perf-kvm.txt | 3 +++ tools/perf/builtin-kvm.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/tools/perf/Documentation/perf-kvm.txt b/tools/perf/Documentation/perf-kvm.txt index cf95baef7b61..83c742adf86e 100644 --- a/tools/perf/Documentation/perf-kvm.txt +++ b/tools/perf/Documentation/perf-kvm.txt @@ -94,6 +94,9 @@ OPTIONS kernel module information. Users copy it out from guest os. --guestvmlinux=:: Guest os kernel vmlinux. +--guest-code:: + Indicate that guest code can be found in the hypervisor process, + which is a common case for KVM test programs. -v:: --verbose:: Be more verbose (show counter open errors, etc). diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c index 2fa687f73e5e..3696ae97f149 100644 --- a/tools/perf/builtin-kvm.c +++ b/tools/perf/builtin-kvm.c @@ -1603,6 +1603,8 @@ int cmd_kvm(int argc, const char **argv) "file", "file saving guest os /proc/kallsyms"), OPT_STRING(0, "guestmodules", &symbol_conf.default_guest_modules, "file", "file saving guest os /proc/modules"), + OPT_BOOLEAN(0, "guest-code", &symbol_conf.guest_code, + "Guest code can be found in hypervisor process"), OPT_INCR('v', "verbose", &verbose, "be more verbose (show counter open errors, etc)"), OPT_END() -- 2.25.1