* [bigeasy-staging:preemption 33/35] kernel/trace/trace.c:3639:32: error: missing ')' after "defined"
@ 2019-10-07 19:04 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-10-07 19:04 UTC (permalink / raw
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3412 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/staging.git preemption
head: b7a4ee2ca91aa3cd613a17339dc640bafc3d3212
commit: a096329ee50c200f90db12222e906e76d0ea9203 [33/35] tracing: Use CONFIG_PREEMPTION
config: x86_64-randconfig-s1-201940 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
git checkout a096329ee50c200f90db12222e906e76d0ea9203
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
kernel/trace/trace.c: In function 'print_trace_header':
>> kernel/trace/trace.c:3639:32: error: missing ')' after "defined"
#elif defined(CONFIG_PREEMPT_RT
^
vim +3639 kernel/trace/trace.c
3607
3608 void
3609 print_trace_header(struct seq_file *m, struct trace_iterator *iter)
3610 {
3611 unsigned long sym_flags = (global_trace.trace_flags & TRACE_ITER_SYM_MASK);
3612 struct trace_buffer *buf = iter->trace_buffer;
3613 struct trace_array_cpu *data = per_cpu_ptr(buf->data, buf->cpu);
3614 struct tracer *type = iter->trace;
3615 unsigned long entries;
3616 unsigned long total;
3617 const char *name = "preemption";
3618
3619 name = type->name;
3620
3621 get_total_entries(buf, &total, &entries);
3622
3623 seq_printf(m, "# %s latency trace v1.1.5 on %s\n",
3624 name, UTS_RELEASE);
3625 seq_puts(m, "# -----------------------------------"
3626 "---------------------------------\n");
3627 seq_printf(m, "# latency: %lu us, #%lu/%lu, CPU#%d |"
3628 " (M:%s VP:%d, KP:%d, SP:%d HP:%d",
3629 nsecs_to_usecs(data->saved_latency),
3630 entries,
3631 total,
3632 buf->cpu,
3633 #if defined(CONFIG_PREEMPT_NONE)
3634 "server",
3635 #elif defined(CONFIG_PREEMPT_VOLUNTARY)
3636 "desktop",
3637 #elif defined(CONFIG_PREEMPT)
3638 "preempt",
> 3639 #elif defined(CONFIG_PREEMPT_RT
3640 "preempt_rt",
3641 #else
3642 "unknown",
3643 #endif
3644 /* These are reserved for later use */
3645 0, 0, 0, 0);
3646 #ifdef CONFIG_SMP
3647 seq_printf(m, " #P:%d)\n", num_online_cpus());
3648 #else
3649 seq_puts(m, ")\n");
3650 #endif
3651 seq_puts(m, "# -----------------\n");
3652 seq_printf(m, "# | task: %.16s-%d "
3653 "(uid:%d nice:%ld policy:%ld rt_prio:%ld)\n",
3654 data->comm, data->pid,
3655 from_kuid_munged(seq_user_ns(m), data->uid), data->nice,
3656 data->policy, data->rt_priority);
3657 seq_puts(m, "# -----------------\n");
3658
3659 if (data->critical_start) {
3660 seq_puts(m, "# => started at: ");
3661 seq_print_ip_sym(&iter->seq, data->critical_start, sym_flags);
3662 trace_print_seq(m, &iter->seq);
3663 seq_puts(m, "\n# => ended at: ");
3664 seq_print_ip_sym(&iter->seq, data->critical_end, sym_flags);
3665 trace_print_seq(m, &iter->seq);
3666 seq_puts(m, "\n#\n");
3667 }
3668
3669 seq_puts(m, "#\n");
3670 }
3671
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34124 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-07 19:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-07 19:04 [bigeasy-staging:preemption 33/35] kernel/trace/trace.c:3639:32: error: missing ')' after "defined" kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.