Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1787827ybj; Sun, 22 Sep 2019 11:57:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwIrruXqvXc4XfZAFEi5I4fuNo84p2/iC4S/NonPXZ+NlrQr8gqrsFVlnoAHzOfrXfrJ9C X-Received: by 2002:a50:91d0:: with SMTP id h16mr34398694eda.152.1569178626045; Sun, 22 Sep 2019 11:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569178626; cv=none; d=google.com; s=arc-20160816; b=vDLruBmEL4iXM2212YQ0yfq2frwhBgmAU7a+X1pm1sWm7JJqjmEKW2XQQKCUnRAcVm RD2BZWkja1owrUemvoryxRuJsptbMde+U1YeStaopkqi1mB5P/2EddWm1gWx+VR8Xomb qSKMP0AtFO2PG++W7DrJpyDwQC/18ADyMAyBgj6wbscRNwmYAWH8zGtn/utMH3zLPvpN 4weVpaqjLFrx0RHo/ehCzjk402H0wr8oc7HzgKJHaLddlMPFgt9FjX6wKh3W5GHu8SEj FIIs8NI2jaRBHbTFpp4YhAGJHhkrTisjmut3f8Qwvec/PZt0EytacdW4GyV5m6QCmC+F yOnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=k4I8MBOQd1SLynH705AnAimFcGHu3l87VDkx+8YCrzs=; b=leaoMFhQhAFWpQ9H10f5ZhStsUBfMmOhljjIV1uoyjXCwjXoet8PRG883/D861uSZp u3IiWhNRSLEd7Q1JIhPOzPDyCSl9QhMgVDBYvaJITUEnxJ27rguskwutsxGyQAR/H8QH aCNwl6n4ziZ9hOFP3rtSj8CkBN+3QZkkZ+mOXTKV5KE0fCu0H4wzzothhxvWeuthpoL3 zp4QKaWewcNIocO4yoHfc/5QWWOrvPBwfZ6pbsD/KOW/IfG8jFVEP64NSLBbQsUJl5fD 5/ITvQszaYrRQZttaLtA1qLKrAVbFIv0GSotV7zOr3942cIheQD8GjJnAkdamXEv2SPL FjgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si5230867edx.168.2019.09.22.11.56.42; Sun, 22 Sep 2019 11:57:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405646AbfITQWe (ORCPT + 99 others); Fri, 20 Sep 2019 12:22:34 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:52871 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404976AbfITQVT (ORCPT ); Fri, 20 Sep 2019 12:21:19 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iBLeT-00040f-PG; Fri, 20 Sep 2019 18:20:58 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 18B9A1C0E29; Fri, 20 Sep 2019 18:20:57 +0200 (CEST) Date: Fri, 20 Sep 2019 16:20:57 -0000 From: "tip-bot2 for Anju T Sudhakar" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/urgent] perf kvm: Move kvm-stat header file from conditional inclusion to common include section Cc: Anju T Sudhakar , Alexander Shishkin , Jiri Olsa , Madhavan Srinivasan , Michael Ellerman , Namhyung Kim , Peter Zijlstra , linuxppc-dev@lists.ozlabs.org, Arnaldo Carvalho de Melo , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <20190718181749.30612-1-anju@linux.vnet.ibm.com> References: <20190718181749.30612-1-anju@linux.vnet.ibm.com> MIME-Version: 1.0 Message-ID: <156899645704.24167.11929677984675527670.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/urgent branch of tip: Commit-ID: 8067b3da970baa12e6045400fdf009673b8dd3c2 Gitweb: https://git.kernel.org/tip/8067b3da970baa12e6045400fdf009673b8dd3c2 Author: Anju T Sudhakar AuthorDate: Thu, 18 Jul 2019 23:47:47 +05:30 Committer: Arnaldo Carvalho de Melo CommitterDate: Fri, 20 Sep 2019 10:28:26 -03:00 perf kvm: Move kvm-stat header file from conditional inclusion to common include section Move kvm-stat header file to the common include section, and make the definitions in the header file under the conditional inclusion `#ifdef HAVE_KVM_STAT_SUPPORT`. This helps to define other 'perf kvm' related function prototypes in kvm-stat header file, which may not need kvm-stat support. Signed-off-by: Anju T Sudhakar Reviewed-By: Ravi Bangoria Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Namhyung Kim Cc: Peter Zijlstra Cc: linuxppc-dev@lists.ozlabs.org Link: http://lore.kernel.org/lkml/20190718181749.30612-1-anju@linux.vnet.ibm.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-kvm.c | 2 +- tools/perf/util/kvm-stat.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c index ac6d6e0..2b822be 100644 --- a/tools/perf/builtin-kvm.c +++ b/tools/perf/builtin-kvm.c @@ -21,6 +21,7 @@ #include "util/top.h" #include "util/data.h" #include "util/ordered-events.h" +#include "util/kvm-stat.h" #include "ui/ui.h" #include @@ -59,7 +60,6 @@ static const char *get_filename_for_perf_kvm(void) } #ifdef HAVE_KVM_STAT_SUPPORT -#include "util/kvm-stat.h" void exit_event_get_key(struct evsel *evsel, struct perf_sample *sample, diff --git a/tools/perf/util/kvm-stat.h b/tools/perf/util/kvm-stat.h index 4691363..8fd6ec2 100644 --- a/tools/perf/util/kvm-stat.h +++ b/tools/perf/util/kvm-stat.h @@ -2,6 +2,8 @@ #ifndef __PERF_KVM_STAT_H #define __PERF_KVM_STAT_H +#ifdef HAVE_KVM_STAT_SUPPORT + #include "tool.h" #include "stat.h" #include "record.h" @@ -144,5 +146,6 @@ extern const int decode_str_len; extern const char *kvm_exit_reason; extern const char *kvm_entry_trace; extern const char *kvm_exit_trace; +#endif /* HAVE_KVM_STAT_SUPPORT */ #endif /* __PERF_KVM_STAT_H */