From patchwork Mon Oct 19 18:40:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 55248 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 33B5522EA2 for ; Mon, 19 Oct 2015 18:57:59 +0000 (UTC) Received: by lbbpp2 with SMTP id pp2sf17331283lbb.0 for ; Mon, 19 Oct 2015 11:57:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=TucyCY8DzISjxig0mHarJ3lurTFkTKfCRgv/TOIQhDY=; b=IAXwvWA2Uu1qdACVgs6RWIrTyIoD3iEuW6uIqsK1sY5ybfnFwQrDVXQzZSwlVRJdWY yCE0cOqpyXrWafS41uH4ZUSH7Lt+ty4XfSp/1nY2nubKOw0Nvd8JQJDRSrQuee61SzHk 866ABJOu4IVJCEuOdEC+IuFGtUwdgqY6jugkWMmI+VPqC84LDmImOy4bFHilTWhsMI8+ VJC0kGMcPuGjI7w7/EJwboHRdkSvHGL1/09Htt79Tky83yVq66VCLl3QZLKEhgN6ORc4 P7SNVdk8bl3lO7xPl1caWUsM7y65kGE740gA94QENNkqwTv566OujHniBRnTAFdutgon BMjA== X-Gm-Message-State: ALoCoQl3BPGnQseLKWd4rTIUGoKskhik4Nd1nyIs2EmrK0UxUQV2TuHqCurKKm1n5XRAd5McxeFI X-Received: by 10.180.210.212 with SMTP id mw20mr4533405wic.3.1445281078111; Mon, 19 Oct 2015 11:57:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.81.208 with SMTP id f199ls641589lfb.101.gmail; Mon, 19 Oct 2015 11:57:57 -0700 (PDT) X-Received: by 10.25.151.205 with SMTP id z196mr10008711lfd.97.1445281077920; Mon, 19 Oct 2015 11:57:57 -0700 (PDT) Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com. [2a00:1450:4010:c07::22b]) by mx.google.com with ESMTPS id b6si1669161lbv.114.2015.10.19.11.57.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2015 11:57:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c07::22b as permitted sender) client-ip=2a00:1450:4010:c07::22b; Received: by lffv3 with SMTP id v3so119523595lff.0 for ; Mon, 19 Oct 2015 11:57:57 -0700 (PDT) X-Received: by 10.25.28.81 with SMTP id c78mr10227635lfc.29.1445281077622; Mon, 19 Oct 2015 11:57:57 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1647103lbq; Mon, 19 Oct 2015 11:57:56 -0700 (PDT) X-Received: by 10.50.1.83 with SMTP id 19mr8127144igk.56.1445281076626; Mon, 19 Oct 2015 11:57:56 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p19si9476807igs.16.2015.10.19.11.57.56; Mon, 19 Oct 2015 11:57:56 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753401AbbJSS5y (ORCPT + 28 others); Mon, 19 Oct 2015 14:57:54 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:35240 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814AbbJSS5x (ORCPT ); Mon, 19 Oct 2015 14:57:53 -0400 Received: by pasz6 with SMTP id z6so37851617pas.2 for ; Mon, 19 Oct 2015 11:57:52 -0700 (PDT) X-Received: by 10.68.249.34 with SMTP id yr2mr36226061pbc.73.1445281072487; Mon, 19 Oct 2015 11:57:52 -0700 (PDT) Received: from yshi-Precision-T5600.corp.ad.wrs.com (unknown-216-82.windriver.com. [147.11.216.82]) by smtp.gmail.com with ESMTPSA id v13sm20975065pbs.51.2015.10.19.11.57.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2015 11:57:51 -0700 (PDT) From: Yang Shi To: tglx@linutronix.de, bigeasy@linutronix.de, rostedt@goodmis.org Cc: linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, linaro-kernel@lists.linaro.org, yang.shi@linaro.org Subject: [PATCH] rt: trace: add rcuidle version macro for preemptirqsoff_hist and hrtimer_interrupt Date: Mon, 19 Oct 2015 11:40:08 -0700 Message-Id: <1445280008-8456-1-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: yang.shi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c07::22b as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , When building rt kernel with IRQSOFF_TRACER enabled but INTERRUPT_OFF_HIST or PREEMPT_OFF_HIST disabled, the below build failure will be triggered: | /home/yshi/linux-rt/kernel/trace/trace_irqsoff.c: In function 'time_hardirqs_on': | /home/yshi/linux-rt/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 | /home/yshi/linux-rt/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.... | /home/yshi/linux-rt/scripts/Makefile.build:403: recipe for target 'kernel/trace' failed Because rcuidle version is just defined by TRACE_EVENT when both PREEMPT_OFF_HIST and PREEMPT_OFF_HIST is selected, otherwise just trace_preemptirqsoff_hist is defined as a preprocessor macro. Added rcuidle version macro when the condition is false, and added rcuidle version macro for trace_hrtimer_interrupt_rcuidle even though it is not called by anyone. Signed-off-by: Yang Shi --- include/trace/events/hist.h | 2 ++ 1 file changed, 2 insertions(+) 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,