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-point... 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