From patchwork Fri Feb 19 04:25:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Goldstein X-Patchwork-Id: 8356091 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C25B79F38B for ; Fri, 19 Feb 2016 04:29:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BFB2320412 for ; Fri, 19 Feb 2016 04:29:28 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CCBAF20397 for ; Fri, 19 Feb 2016 04:29:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aWce9-0007Tf-FE; Fri, 19 Feb 2016 04:26:25 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aWce7-0007R3-Iv for xen-devel@lists.xen.org; Fri, 19 Feb 2016 04:26:23 +0000 Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id E6/2D-08479-E6996C65; Fri, 19 Feb 2016 04:26:22 +0000 X-Env-Sender: cardoe@cardoe.com X-Msg-Ref: server-6.tower-31.messagelabs.com!1455855981!23497602!1 X-Originating-IP: [209.85.161.170] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 59449 invoked from network); 19 Feb 2016 04:26:21 -0000 Received: from mail-yw0-f170.google.com (HELO mail-yw0-f170.google.com) (209.85.161.170) by server-6.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 19 Feb 2016 04:26:21 -0000 Received: by mail-yw0-f170.google.com with SMTP id g127so58979805ywf.2 for ; Thu, 18 Feb 2016 20:26:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cardoe.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Jv4VCrMGkKzY0JckpHh9b7PNZjZpStJHXrzXhk+mgbM=; b=CtLWx7ElfgIcnibXgJDuvf9OUJK+tXcBkraA6LJNL2lTcyMnhPOcS7H4Fcf5HwOfPa 4r3vzypdNJa8sNtDpowuXVZj9yo38aahszSA0I6RSeZO25baAyD7Mb+dyKYLOPsiozmX ymqTtmfmSB2qQ1ONKl3pNfWv8YWcHrUWgqJ40= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Jv4VCrMGkKzY0JckpHh9b7PNZjZpStJHXrzXhk+mgbM=; b=KPJ396X2AybZ0STxp9/8EEI/3dB6GAwaeBDBEfBU6H5VImtUAnjOPHKpVgP6Jwn5K5 024ibZrndjAIcphs3iVazOL9L7NCgEJ6AoKi8eZZ08L/FrzCDmM+YCMpIKPMBmB5viXA ASavbFN3ErXIh4a9VkpICHeOEr8m2UIMkTLroRWRAONhWL7pNfae3DvGeCCqPdqLpuMY I6vxKQd92tJ1S0cttVuDocQbgEE9B52Ia1s6vJBH3q//Vdi7vo7OGbcvPQl7hRXY6QAf sVuH9PYhzKWX1LaCAcpfFcyIAbf/KssJ8efn7zHJE5jEnaATuBLoryUynB/cmxpZIM3A LKbg== X-Gm-Message-State: AG10YORIqYAvch96BRMzJag++zg3gNJwt7GPxTHtgXZKu7e9bzzU974Pz4zimC0/yeJzSQ== X-Received: by 10.129.51.136 with SMTP id z130mr6342819ywz.327.1455855980946; Thu, 18 Feb 2016 20:26:20 -0800 (PST) Received: from swanson.lan (c-68-46-196-185.hsd1.al.comcast.net. [68.46.196.185]) by smtp.gmail.com with ESMTPSA id z129sm7310089ywb.26.2016.02.18.20.26.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Feb 2016 20:26:19 -0800 (PST) From: Doug Goldstein To: xen-devel@lists.xen.org Date: Thu, 18 Feb 2016 22:25:57 -0600 Message-Id: <1455855957-764-2-git-send-email-cardoe@cardoe.com> X-Mailer: git-send-email 2.4.10 In-Reply-To: <1455855957-764-1-git-send-email-cardoe@cardoe.com> References: <1455855957-764-1-git-send-email-cardoe@cardoe.com> Cc: Keir Fraser , Doug Goldstein , Jan Beulich , Andrew Cooper Subject: [Xen-devel] [PATCH v5 2/2] build: convert xenoprof to Kconfig X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Convert the xenoprof x86 build time option to Kconfig. Signed-off-by: Doug Goldstein Reviewed-by: Andrew Cooper Acked-by: Jan Beulich --- CC: Keir Fraser CC: Jan Beulich CC: Andrew Cooper change since v4: - none change since v3: - move xenoprof entry to the main sources list as suggested by Jan Beulich - combine 'default' and 'bool' into 'def_bool' as suggested by Jan Beulich change since v2: - require EXPERT for XENOPROF as suggested by Jan Beulich change since v1: - fix name of Kconfig entry as suggested by Andrew Cooper --- xen/arch/x86/Makefile | 2 +- xen/arch/x86/Rules.mk | 3 --- xen/common/Kconfig | 13 +++++++++++++ xen/common/Makefile | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile index 434d985..1bcb08b 100644 --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -3,7 +3,7 @@ subdir-y += cpu subdir-y += genapic subdir-y += hvm subdir-y += mm -subdir-$(xenoprof) += oprofile +subdir-$(CONFIG_XENOPROF) += oprofile subdir-y += x86_64 obj-bin-y += alternative.init.o diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk index 94e4efd..14519e3 100644 --- a/xen/arch/x86/Rules.mk +++ b/xen/arch/x86/Rules.mk @@ -3,15 +3,12 @@ HAS_NUMA := y HAS_CORE_PARKING := y -xenoprof := y CFLAGS += -I$(BASEDIR)/include CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default CFLAGS += '-D__OBJECT_LABEL__=$(subst /,$$,$(subst -,_,$(subst $(BASEDIR)/,,$(CURDIR))/$@))' -CFLAGS-$(xenoprof) += -DCONFIG_XENOPROF - # Prevent floating-point variables from creeping into Xen. CFLAGS += -msoft-float diff --git a/xen/common/Kconfig b/xen/common/Kconfig index 6f404b4..49de790 100644 --- a/xen/common/Kconfig +++ b/xen/common/Kconfig @@ -84,6 +84,19 @@ config LATE_HWDOM If unsure, say N. +# Adds support for Xenoprof +config XENOPROF + def_bool y + prompt "Xen Oprofile Support" if EXPERT = "y" + depends on X86 + ---help--- + Xen OProfile (Xenoprof) is a system-wide profiler for Xen virtual + machine environments, capable of profiling the Xen virtual machine + monitor, multiple Linux guest operating systems, and applications + running on them. + + If unsure, say Y. + # Enable/Disable XSM support config XSM bool "Xen Security Modules support" diff --git a/xen/common/Makefile b/xen/common/Makefile index 0d76efe..57f4ed7 100644 --- a/xen/common/Makefile +++ b/xen/common/Makefile @@ -57,13 +57,13 @@ obj-y += vm_event.o obj-y += vmap.o obj-y += vsprintf.o obj-y += wait.o +obj-$(CONFIG_XENOPROF) += xenoprof.o obj-y += xmalloc_tlsf.o obj-bin-$(CONFIG_X86) += $(foreach n,decompress bunzip2 unxz unlzma unlzo unlz4 earlycpio,$(n).init.o) obj-$(perfc) += perfc.o obj-$(crash_debug) += gdbstub.o -obj-$(xenoprof) += xenoprof.o obj-$(CONFIG_COMPAT) += $(addprefix compat/,domain.o kernel.o memory.o multicall.o tmem_xen.o xlat.o)