mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Binoy Jayan <binoy.jayan@linaro.org>
Cc: kbuild-all@01.org, Arnd Bergmann <arnd@arndb.de>,
	linaro-kernel@lists.linaro.org,
	Daniel Wagner <daniel.wagner@bmw-carit.de>,
	Carsten Emde <C.Emde@osadl.org>,
	linux-kernel@vger.kernel.org,
	"Steven Rostedt (Red Hat)" <rostedt@goodmis.org>,
	Binoy Jayan <binoy.jayan@linaro.org>
Subject: Re: [PATCH 2/3] tracing: Add trace_irqsoff tracepoints
Date: Mon, 22 Aug 2016 14:00:54 +0800	[thread overview]
Message-ID: <201608221323.dPdIaHmt%fengguang.wu@intel.com> (raw)
In-Reply-To: <1471504166-27665-3-git-send-email-binoy.jayan@linaro.org>

[-- Attachment #1: Type: text/plain, Size: 4396 bytes --]

Hi Binoy,

[auto build test WARNING on tip/perf/core]
[also build test WARNING on v4.8-rc3 next-20160819]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    https://github.com/0day-ci/linux/commits/Binoy-Jayan/tracing-Deference-pointers-without-RCU-checks/20160818-151235
config: x86_64-randconfig-s3-08181449 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/trace/define_trace.h:95:0,
                    from include/trace/events/latency.h:42,
                    from kernel/trace/trace_irqsoff.c:22:
   include/trace/events/latency.h: In function 'trace_raw_output_latency_template':
   include/trace/events/latency.h:24:12: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'cycles_t {aka long long unsigned int}' [-Wformat=]
     TP_printk("cpu=%d, latency=%lu", __entry->cpu, __entry->latency)
               ^
   include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
     trace_seq_printf(s, print);     \
                         ^~~~~
   include/trace/events/latency.h:24:2: note: in expansion of macro 'TP_printk'
     TP_printk("cpu=%d, latency=%lu", __entry->cpu, __entry->latency)
     ^~~~~~~~~
   In file included from include/asm-generic/percpu.h:6:0,
                    from arch/x86/include/asm/percpu.h:552,
                    from arch/x86/include/asm/preempt.h:5,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/uapi/linux/timex.h:56,
                    from include/linux/timex.h:56,
                    from include/linux/sched.h:19,
                    from include/linux/uaccess.h:4,
                    from kernel/trace/trace_irqsoff.c:13:
   At top level:
>> kernel/trace/trace_irqsoff.c:29:32: warning: 'ts_preempt' defined but not used [-Wunused-variable]
    static DEFINE_PER_CPU(cycle_t, ts_preempt);
                                   ^
   include/linux/percpu-defs.h:105:19: note: in definition of macro 'DEFINE_PER_CPU_SECTION'
     __typeof__(type) name
                      ^~~~
>> kernel/trace/trace_irqsoff.c:29:8: note: in expansion of macro 'DEFINE_PER_CPU'
    static DEFINE_PER_CPU(cycle_t, ts_preempt);
           ^~~~~~~~~~~~~~
>> kernel/trace/trace_irqsoff.c:28:32: warning: 'ts_irqs' defined but not used [-Wunused-variable]
    static DEFINE_PER_CPU(cycle_t, ts_irqs);
                                   ^
   include/linux/percpu-defs.h:105:19: note: in definition of macro 'DEFINE_PER_CPU_SECTION'
     __typeof__(type) name
                      ^~~~
   kernel/trace/trace_irqsoff.c:28:8: note: in expansion of macro 'DEFINE_PER_CPU'
    static DEFINE_PER_CPU(cycle_t, ts_irqs);
           ^~~~~~~~~~~~~~

vim +/ts_preempt +29 kernel/trace/trace_irqsoff.c

     7	 * From code in the latency_tracer, that is:
     8	 *
     9	 *  Copyright (C) 2004-2006 Ingo Molnar
    10	 *  Copyright (C) 2004 Nadia Yvette Chambers
    11	 */
    12	#include <linux/kallsyms.h>
  > 13	#include <linux/uaccess.h>
    14	#include <linux/module.h>
    15	#include <linux/ftrace.h>
    16	
    17	#include <trace/events/sched.h>
    18	
    19	#include "trace.h"
    20	
    21	#define CREATE_TRACE_POINTS
    22	#include <trace/events/latency.h>
    23	
    24	static struct trace_array		*irqsoff_trace __read_mostly;
    25	static int				tracer_enabled __read_mostly;
    26	
    27	static DEFINE_PER_CPU(int, tracing_cpu);
  > 28	static DEFINE_PER_CPU(cycle_t, ts_irqs);
  > 29	static DEFINE_PER_CPU(cycle_t, ts_preempt);
    30	static DEFINE_PER_CPU(cycle_t, ts_critical_timings);
    31	static DEFINE_RAW_SPINLOCK(max_trace_lock);
    32	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27602 bytes --]

  parent reply	other threads:[~2016-08-22  6:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-18  7:09 [PATCH 0/3] *** Latency trace events - irqs, preempt, critical timing *** Binoy Jayan
2016-08-18  7:09 ` [PATCH 1/3] tracing: Deference pointers without RCU checks Binoy Jayan
2016-08-18  7:37   ` Daniel Wagner
2016-08-18  7:09 ` [PATCH 2/3] tracing: Add trace_irqsoff tracepoints Binoy Jayan
2016-08-18  8:44   ` Daniel Wagner
2016-08-18 14:21   ` Steven Rostedt
2016-08-22  6:00   ` kbuild test robot [this message]
2016-08-22  7:37   ` kbuild test robot
2016-08-18  7:09 ` [PATCH 3/3] tracing: Histogram for missed timer offsets Binoy Jayan
2016-08-22  6:41   ` kbuild test robot
2016-08-22  8:44   ` kbuild test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201608221323.dPdIaHmt%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=C.Emde@osadl.org \
    --cc=arnd@arndb.de \
    --cc=binoy.jayan@linaro.org \
    --cc=daniel.wagner@bmw-carit.de \
    --cc=kbuild-all@01.org \
    --cc=linaro-kernel@lists.linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®