From patchwork Thu Jul 28 04:52:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Binoy Jayan X-Patchwork-Id: 72928 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp650366qga; Wed, 27 Jul 2016 21:53:04 -0700 (PDT) X-Received: by 10.67.7.98 with SMTP id db2mr55031443pad.156.1469681583985; Wed, 27 Jul 2016 21:53:03 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yv3si10304517pab.56.2016.07.27.21.53.03; Wed, 27 Jul 2016 21:53:03 -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; dkim=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758981AbcG1Ewy (ORCPT + 29 others); Thu, 28 Jul 2016 00:52:54 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:36623 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbcG1Ew3 (ORCPT ); Thu, 28 Jul 2016 00:52:29 -0400 Received: by mail-pf0-f177.google.com with SMTP id h186so17766004pfg.3 for ; Wed, 27 Jul 2016 21:52:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZQSH5En/Sb5uAsTbQKzNedlDycMR4xOg8YPR/8+c8jY=; b=GeFbtviBy7hjVH/Zaqi57WqjptQQlMAV0n5sAcTaYD/ley63hPhGtrUGuC4Sqy5bLc Ms4qMk2oK4N1sV7h9F/ROnumYyqN6L30GUXuSou4EKZT/EUkdxn+GkGtTbTHscdRaG0O cSxGGXRH8LcSbYX4rlPTj/QQI+iyFg73hn/2g= 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=ZQSH5En/Sb5uAsTbQKzNedlDycMR4xOg8YPR/8+c8jY=; b=Rjug3NipRrlze6JFk5aKQsPweuoWKrLDXZtwtsz1N/Z695JiAkjGGuS/fipucuOqTf oH9Xb2XLJmlHysVk097PH48D9gzPfSC1/H0Ro6g7dYVR/yoL78JOBUxLnCWf3jklvxOD ey/d7lyDJLyBFcWPAYbgmgcF3rEQz/9vuVvuVkpxKNSRRLIxO8Z76nkOfU/qMQg+egXP qvQE+Q3OulmMNFeI3O5enYS9WdkHwL6XXaAjMfjKTmW4waglVXCUuXQ2MIcsncLPsHR4 RVcKgAcD1IIgqA7RhgAuVG8S3ihCOMt+f3U1AuRWznwfg01rVFB32n+GVszeQ+zqZ7iI i5cA== X-Gm-Message-State: AEkoouuc9CBsmR4icVsXMMjHflQSponSTXcbs7HB4s83cWmpBOA8e6DXs9+6FeSGt1nLKigU X-Received: by 10.98.89.23 with SMTP id n23mr55887018pfb.34.1469681548753; Wed, 27 Jul 2016 21:52:28 -0700 (PDT) Received: from blr-ubuntu-59.ap.qualcomm.com ([202.46.23.61]) by smtp.gmail.com with ESMTPSA id b7sm12818207pat.27.2016.07.27.21.52.25 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jul 2016 21:52:28 -0700 (PDT) From: Binoy Jayan To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Yang Shi , linaro-kernel@lists.linaro.org, bigeasy@linutronix.de, rostedt@goodmis.org, stable-rt@vger.kernel.org, Thomas Gleixner Subject: [PATCH 2/2] trace: Add missing tracer macros Date: Thu, 28 Jul 2016 10:22:14 +0530 Message-Id: <1469681535-25159-3-git-send-email-binoy.jayan@linaro.org> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1469681535-25159-1-git-send-email-binoy.jayan@linaro.org> References: <1469681535-25159-1-git-send-email-binoy.jayan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Shi When building rt kernel with IRQSOFF_TRACER enabled but INTERRUPT_OFF_HIST or PREEMPT_OFF_HIST disabled, the below build failure will be triggered: | kernel/trace/trace_irqsoff.c: In function 'time_hardirqs_on': | kernel/trace/trace_irqsoff.c:453:2: error: implicit declaration of | function 'trace_preemptirqsoff_hist_rcuidle' | [-Werror=implicit-function-declaration] | trace_preemptirqsoff_hist_rcuidle(IRQS_ON, 0); | ^ | cc1: some warnings being treated as errors | scripts/Makefile.build:258: recipe for target | 'kernel/trace/trace_irqsoff.o' failed | make[4]: *** [kernel/trace/trace_irqsoff.o] Error 1 | make[4]: *** Waiting for unfinished jobs.... | scripts/Makefile.build:403: recipe for target 'kernel/trace' failed These macros are only defined when both PREEMPT_OFF_HIST and PREEMPT_OFF_HIST are enabled, otherwise just trace_preemptirqsoff_hist is defined as a preprocessor macro. Signed-off-by: Yang Shi Cc: linaro-kernel@lists.linaro.org Cc: bigeasy@linutronix.de Cc: rostedt@goodmis.org Cc: stable-rt@vger.kernel.org Link: http://lkml.kernel.org/r/1445280008-8456-1-git-send-email-yang.shi@linaro.org Signed-off-by: Thomas Gleixner --- include/trace/events/hist.h | 2 ++ 1 file changed, 2 insertions(+) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project diff --git a/include/trace/events/hist.h b/include/trace/events/hist.h index 6122e42..37f6eb8 100644 --- a/include/trace/events/hist.h +++ b/include/trace/events/hist.h @@ -9,6 +9,7 @@ #if !defined(CONFIG_PREEMPT_OFF_HIST) && !defined(CONFIG_INTERRUPT_OFF_HIST) #define trace_preemptirqsoff_hist(a, b) +#define trace_preemptirqsoff_hist_rcuidle(a, b) #else TRACE_EVENT(preemptirqsoff_hist, @@ -33,6 +34,7 @@ TRACE_EVENT(preemptirqsoff_hist, #ifndef CONFIG_MISSED_TIMER_OFFSETS_HIST #define trace_hrtimer_interrupt(a, b, c, d) +#define trace_hrtimer_interrupt_rcuidle(a, b, c, d) #else TRACE_EVENT(hrtimer_interrupt,