From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6895920884018947921==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [android-common:android-3.18 118/129] kernel/trace/Kconfig:319: syntax error Date: Thu, 04 Jun 2020 17:13:00 +0800 Message-ID: <202006041755.o7PLRSjY%lkp@intel.com> List-Id: --===============6895920884018947921== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://android.googlesource.com/kernel/common android-3.18 head: 42844fdbef553cb4996566a9760455df7d1aed66 commit: 42cf3eb3efcefe6f087dde702464a402c7aa7560 [118/129] kbuild: compute = false-positive -Wmaybe-uninitialized cases in Kconfig config: i386-tinyconfig compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010 reproduce (this is a W=3D1 build): git checkout 42cf3eb3efcefe6f087dde702464a402c7aa7560 make W=3D1 ARCH=3Di386 tinyconfig make W=3D1 ARCH=3Di386 = If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Note: the android-common/android-3.18 HEAD 42844fdbef553cb4996566a9760455df= 7d1aed66 builds fine. It only hurts bisectibility. All errors (new ones prefixed by >>, old ones prefixed by <<): init/Kconfig:21: syntax error init/Kconfig:20: invalid option init/Kconfig:28: syntax error init/Kconfig:27: invalid option init/Kconfig:1386: syntax error init/Kconfig:1385: unknown option "imply" >> kernel/trace/Kconfig:319: syntax error kernel/trace/Kconfig:318: unknown option "imply" make[2]: *** [scripts/kconfig/Makefile:33: oldconfig] Error 1 make[1]: *** [Makefile:540: oldconfig] Error 2 make: *** [Makefile:145: sub-make] Error 2 -- init/Kconfig:21: syntax error init/Kconfig:20: invalid option init/Kconfig:28: syntax error init/Kconfig:27: invalid option init/Kconfig:1386: syntax error init/Kconfig:1385: unknown option "imply" >> kernel/trace/Kconfig:319: syntax error kernel/trace/Kconfig:318: unknown option "imply" make[2]: *** [scripts/kconfig/Makefile:85: olddefconfig] Error 1 make[1]: *** [Makefile:540: olddefconfig] Error 2 make: *** [Makefile:145: sub-make] Error 2 -- init/Kconfig:21: syntax error init/Kconfig:20: invalid option init/Kconfig:28: syntax error init/Kconfig:27: invalid option init/Kconfig:1386: syntax error init/Kconfig:1385: unknown option "imply" >> kernel/trace/Kconfig:319: syntax error kernel/trace/Kconfig:318: unknown option "imply" make[2]: *** [scripts/kconfig/Makefile:80: allnoconfig] Error 1 make[2]: Target 'tinyconfig' not remade because of errors. make[1]: *** [Makefile:540: tinyconfig] Error 2 make: *** [Makefile:145: sub-make] Error 2 vim +319 kernel/trace/Kconfig 17d80fd07d35ae Peter Zijlstra 2008-10-21 137 = 606576ce816603 Steven Rostedt 2008-10-06 138 config FUNCTION_TR= ACER 1b29b01887e603 Steven Rostedt 2008-05-12 139 bool "Kernel Func= tion Tracer" 606576ce816603 Steven Rostedt 2008-10-06 140 depends on HAVE_F= UNCTION_TRACER 4d7a077c0c7bfd Steven Rostedt 2009-02-18 141 select KALLSYMS 5e0a0939108768 Steven Rostedt 2009-05-28 142 select GENERIC_TR= ACER 35e8e302e5d6e3 Steven Rostedt 2008-05-12 143 select CONTEXT_SW= ITCH_TRACER 1b29b01887e603 Steven Rostedt 2008-05-12 144 help 1b29b01887e603 Steven Rostedt 2008-05-12 145 Enable the kern= el to trace every kernel function. This is done 1b29b01887e603 Steven Rostedt 2008-05-12 146 by using a comp= iler feature to insert a small, 5-byte No-Operation 40892367bc893f Randy Dunlap 2009-12-21 147 instruction at = the beginning of every kernel function, which NOP 1b29b01887e603 Steven Rostedt 2008-05-12 148 sequence is the= n dynamically patched into a tracer call when 1b29b01887e603 Steven Rostedt 2008-05-12 149 tracing is enab= led by the administrator. If it's runtime disabled 1b29b01887e603 Steven Rostedt 2008-05-12 150 (the bootup def= ault), then the overhead of the instructions is very 1b29b01887e603 Steven Rostedt 2008-05-12 151 small and not m= easurable even in micro-benchmarks. 35e8e302e5d6e3 Steven Rostedt 2008-05-12 152 = fb52607afcd062 Frederic Weisbecker 2008-11-25 153 config FUNCTION_GR= APH_TRACER fb52607afcd062 Frederic Weisbecker 2008-11-25 154 bool "Kernel Func= tion Graph Tracer" fb52607afcd062 Frederic Weisbecker 2008-11-25 155 depends on HAVE_F= UNCTION_GRAPH_TRACER 15e6cb3673ea62 Frederic Weisbecker 2008-11-11 156 depends on FUNCTI= ON_TRACER eb4a03780d4c44 Steven Rostedt 2009-06-18 157 depends on !X86_3= 2 || !CC_OPTIMIZE_FOR_SIZE 764f3b95131a7c Ingo Molnar 2008-12-03 158 default y 15e6cb3673ea62 Frederic Weisbecker 2008-11-11 159 help fb52607afcd062 Frederic Weisbecker 2008-11-25 160 Enable the kern= el to trace a function at both its return fb52607afcd062 Frederic Weisbecker 2008-11-25 161 and its entry. 692105b8ac5bcd Matt LaPlante 2009-01-26 162 Its first purpo= se is to trace the duration of functions and 692105b8ac5bcd Matt LaPlante 2009-01-26 163 draw a call gra= ph for each thread with some information like 692105b8ac5bcd Matt LaPlante 2009-01-26 164 the return valu= e. This is done by setting the current return 692105b8ac5bcd Matt LaPlante 2009-01-26 165 address on the = current task structure into a stack of calls. 15e6cb3673ea62 Frederic Weisbecker 2008-11-11 166 = bac429f037f1a5 Steven Rostedt 2009-03-20 167 = 81d68a96a39844 Steven Rostedt 2008-05-12 168 config IRQSOFF_TRA= CER 81d68a96a39844 Steven Rostedt 2008-05-12 169 bool "Interrupts-= off Latency Tracer" 81d68a96a39844 Steven Rostedt 2008-05-12 170 default n 81d68a96a39844 Steven Rostedt 2008-05-12 171 depends on TRACE_= IRQFLAGS_SUPPORT 592913ecb87a9e John Stultz 2010-07-13 172 depends on !ARCH_= USES_GETTIMEOFFSET 81d68a96a39844 Steven Rostedt 2008-05-12 173 select TRACE_IRQF= LAGS 5e0a0939108768 Steven Rostedt 2009-05-28 174 select GENERIC_TR= ACER 81d68a96a39844 Steven Rostedt 2008-05-12 175 select TRACER_MAX= _TRACE 85bac32c4a52c5 Steven Rostedt 2009-09-04 176 select RING_BUFFE= R_ALLOW_SWAP 22cffc2bb4a50d Steven Rostedt (Red Hat 2013-03-05 177) select TRACER_SNA= PSHOT 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 178) select TRACER_SNA= PSHOT_PER_CPU_SWAP 81d68a96a39844 Steven Rostedt 2008-05-12 179 help 81d68a96a39844 Steven Rostedt 2008-05-12 180 This option mea= sures the time spent in irqs-off critical 81d68a96a39844 Steven Rostedt 2008-05-12 181 sections, with = microsecond accuracy. 81d68a96a39844 Steven Rostedt 2008-05-12 182 = 81d68a96a39844 Steven Rostedt 2008-05-12 183 The default mea= surement method is a maximum search, which is 81d68a96a39844 Steven Rostedt 2008-05-12 184 disabled by def= ault and can be runtime (re-)started 81d68a96a39844 Steven Rostedt 2008-05-12 185 via: 81d68a96a39844 Steven Rostedt 2008-05-12 186 = 156f5a7801195f GeunSik Lim 2009-06-02 187 echo 0 > /s= ys/kernel/debug/tracing/tracing_max_latency 81d68a96a39844 Steven Rostedt 2008-05-12 188 = 40892367bc893f Randy Dunlap 2009-12-21 189 (Note that kern= el size and overhead increase with this option 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 190 enabled. This o= ption and the preempt-off timing option can be 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 191 used together o= r separately.) 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 192 = 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 193 config PREEMPT_TRA= CER 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 194 bool "Preemption-= off Latency Tracer" 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 195 default n 592913ecb87a9e John Stultz 2010-07-13 196 depends on !ARCH_= USES_GETTIMEOFFSET 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 197 depends on PREEMPT 5e0a0939108768 Steven Rostedt 2009-05-28 198 select GENERIC_TR= ACER 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 199 select TRACER_MAX= _TRACE 85bac32c4a52c5 Steven Rostedt 2009-09-04 200 select RING_BUFFE= R_ALLOW_SWAP 22cffc2bb4a50d Steven Rostedt (Red Hat 2013-03-05 201) select TRACER_SNA= PSHOT 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 202) select TRACER_SNA= PSHOT_PER_CPU_SWAP 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 203 help 40892367bc893f Randy Dunlap 2009-12-21 204 This option mea= sures the time spent in preemption-off critical 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 205 sections, with = microsecond accuracy. 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 206 = 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 207 The default mea= surement method is a maximum search, which is 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 208 disabled by def= ault and can be runtime (re-)started 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 209 via: 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 210 = 156f5a7801195f GeunSik Lim 2009-06-02 211 echo 0 > /s= ys/kernel/debug/tracing/tracing_max_latency 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 212 = 40892367bc893f Randy Dunlap 2009-12-21 213 (Note that kern= el size and overhead increase with this option 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 214 enabled. This o= ption and the irqs-off timing option can be 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 215 used together o= r separately.) 6cd8a4bb2f9752 Steven Rostedt 2008-05-12 216 = 352ad25aa4a189 Steven Rostedt 2008-05-12 217 config SCHED_TRACER 352ad25aa4a189 Steven Rostedt 2008-05-12 218 bool "Scheduling = Latency Tracer" 5e0a0939108768 Steven Rostedt 2009-05-28 219 select GENERIC_TR= ACER 352ad25aa4a189 Steven Rostedt 2008-05-12 220 select CONTEXT_SW= ITCH_TRACER 352ad25aa4a189 Steven Rostedt 2008-05-12 221 select TRACER_MAX= _TRACE 22cffc2bb4a50d Steven Rostedt (Red Hat 2013-03-05 222) select TRACER_SNA= PSHOT 352ad25aa4a189 Steven Rostedt 2008-05-12 223 help 352ad25aa4a189 Steven Rostedt 2008-05-12 224 This tracer tra= cks the latency of the highest priority task 352ad25aa4a189 Steven Rostedt 2008-05-12 225 to be scheduled= in, starting from the point it has woken up. 352ad25aa4a189 Steven Rostedt 2008-05-12 226 = 897f17a65389a2 Steven Rostedt 2009-05-28 227 config ENABLE_DEFA= ULT_TRACERS 897f17a65389a2 Steven Rostedt 2009-05-28 228 bool "Trace proce= ss context switches and events" 5e0a0939108768 Steven Rostedt 2009-05-28 229 depends on !GENER= IC_TRACER b77e38aa240c3b Steven Rostedt 2009-02-24 230 select TRACING b77e38aa240c3b Steven Rostedt 2009-02-24 231 help 40892367bc893f Randy Dunlap 2009-12-21 232 This tracer hoo= ks to various trace points in the kernel, b77e38aa240c3b Steven Rostedt 2009-02-24 233 allowing the us= er to pick and choose which trace point they 897f17a65389a2 Steven Rostedt 2009-05-28 234 want to trace. = It also includes the sched_switch tracer plugin. a7abe97fd8e7a6 Steven Rostedt 2009-04-20 235 = ee08c6eccb7d12 Frederic Weisbecker 2009-03-07 236 config FTRACE_SYSC= ALLS ee08c6eccb7d12 Frederic Weisbecker 2009-03-07 237 bool "Trace sysca= lls" 667000011927b4 Josh Stone 2009-08-24 238 depends on HAVE_S= YSCALL_TRACEPOINTS 5e0a0939108768 Steven Rostedt 2009-05-28 239 select GENERIC_TR= ACER 0ea1c4156bf9e2 Frederic Weisbecker 2009-03-15 240 select KALLSYMS ee08c6eccb7d12 Frederic Weisbecker 2009-03-07 241 help ee08c6eccb7d12 Frederic Weisbecker 2009-03-07 242 Basic tracer to= catch the syscall entry and exit events. ee08c6eccb7d12 Frederic Weisbecker 2009-03-07 243 = debdd57f5145f3 Hiraku Toyooka 2012-12-26 244 config TRACER_SNAP= SHOT debdd57f5145f3 Hiraku Toyooka 2012-12-26 245 bool "Create a sn= apshot trace buffer" debdd57f5145f3 Hiraku Toyooka 2012-12-26 246 select TRACER_MAX= _TRACE debdd57f5145f3 Hiraku Toyooka 2012-12-26 247 help debdd57f5145f3 Hiraku Toyooka 2012-12-26 248 Allow tracing u= sers to take snapshot of the current buffer using the debdd57f5145f3 Hiraku Toyooka 2012-12-26 249 ftrace interfac= e, e.g.: debdd57f5145f3 Hiraku Toyooka 2012-12-26 250 = debdd57f5145f3 Hiraku Toyooka 2012-12-26 251 echo 1 > /s= ys/kernel/debug/tracing/snapshot debdd57f5145f3 Hiraku Toyooka 2012-12-26 252 cat snapshot debdd57f5145f3 Hiraku Toyooka 2012-12-26 253 = 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 254) config TRACER_SNAP= SHOT_PER_CPU_SWAP 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 255) bool "Allo= w snapshot to swap per CPU" 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 256) depends on TRACER= _SNAPSHOT 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 257) select RING_BUFFE= R_ALLOW_SWAP 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 258) help 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 259) Allow doing a s= napshot of a single CPU buffer instead of a 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 260) full swap (all = buffers). If this is set, then the following is 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 261) allowed: 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 262) = 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 263) echo 1 > /s= ys/kernel/debug/tracing/per_cpu/cpu2/snapshot 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 264) = 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 265) After which, on= ly the tracing buffer for CPU 2 was swapped with 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 266) the main tracin= g buffer, and the other CPU buffers remain the same. 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 267) = 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 268) When this is en= abled, this adds a little more overhead to the 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 269) trace recording= , as it needs to add some checks to synchronize 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 270) recording with = swaps. But this does not affect the performance 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 271) of the overall = system. This is enabled by default when the preempt 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 272) or irq latency = tracers are enabled, as those need to swap as well 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 273) and already add= s the overhead (plus a lot more). 0b85ffc2930443 Steven Rostedt (Red Hat 2013-03-05 274) = 2ed84eeb8808cf Steven Rostedt 2008-11-12 275 config TRACE_BRANC= H_PROFILING 9ae5b8790037d0 Steven Rostedt 2009-04-20 276 bool 5e0a0939108768 Steven Rostedt 2009-05-28 277 select GENERIC_TR= ACER 9ae5b8790037d0 Steven Rostedt 2009-04-20 278 = 9ae5b8790037d0 Steven Rostedt 2009-04-20 279 choice 9ae5b8790037d0 Steven Rostedt 2009-04-20 280 prompt "Branch Pr= ofiling" 9ae5b8790037d0 Steven Rostedt 2009-04-20 281 default BRANCH_PR= OFILE_NONE 9ae5b8790037d0 Steven Rostedt 2009-04-20 282 help 9ae5b8790037d0 Steven Rostedt 2009-04-20 283 The branch profi= ling is a software profiler. It will add hooks 9ae5b8790037d0 Steven Rostedt 2009-04-20 284 into the C condi= tionals to test which path a branch takes. 9ae5b8790037d0 Steven Rostedt 2009-04-20 285 = 9ae5b8790037d0 Steven Rostedt 2009-04-20 286 The likely/unlik= ely profiler only looks at the conditions that 9ae5b8790037d0 Steven Rostedt 2009-04-20 287 are annotated wi= th a likely or unlikely macro. 9ae5b8790037d0 Steven Rostedt 2009-04-20 288 = 40892367bc893f Randy Dunlap 2009-12-21 289 The "all branch"= profiler will profile every if-statement in the 9ae5b8790037d0 Steven Rostedt 2009-04-20 290 kernel. This pro= filer will also enable the likely/unlikely 40892367bc893f Randy Dunlap 2009-12-21 291 profiler. 9ae5b8790037d0 Steven Rostedt 2009-04-20 292 = 40892367bc893f Randy Dunlap 2009-12-21 293 Either of the ab= ove profilers adds a bit of overhead to the system. 40892367bc893f Randy Dunlap 2009-12-21 294 If unsure, choos= e "No branch profiling". 9ae5b8790037d0 Steven Rostedt 2009-04-20 295 = 9ae5b8790037d0 Steven Rostedt 2009-04-20 296 config BRANCH_PROF= ILE_NONE 9ae5b8790037d0 Steven Rostedt 2009-04-20 297 bool "No branch p= rofiling" 9ae5b8790037d0 Steven Rostedt 2009-04-20 298 help 9ae5b8790037d0 Steven Rostedt 2009-04-20 299 No branch profi= ling. Branch profiling adds a bit of overhead. 9ae5b8790037d0 Steven Rostedt 2009-04-20 300 Only enable it = if you want to analyse the branching behavior. 9ae5b8790037d0 Steven Rostedt 2009-04-20 301 Otherwise keep = it disabled. 9ae5b8790037d0 Steven Rostedt 2009-04-20 302 = 9ae5b8790037d0 Steven Rostedt 2009-04-20 303 config PROFILE_ANN= OTATED_BRANCHES 9ae5b8790037d0 Steven Rostedt 2009-04-20 304 bool "Trace likel= y/unlikely profiler" 9ae5b8790037d0 Steven Rostedt 2009-04-20 305 select TRACE_BRAN= CH_PROFILING 1f0d69a9fc815d Steven Rostedt 2008-11-12 306 help 59bf896406471a Masanari Iida 2012-04-18 307 This tracer pro= files all likely and unlikely macros 1f0d69a9fc815d Steven Rostedt 2008-11-12 308 in the kernel. = It will display the results in: 1f0d69a9fc815d Steven Rostedt 2008-11-12 309 = 13e5befaddcf8d David Rientjes 2011-03-16 310 /sys/kernel/deb= ug/tracing/trace_stat/branch_annotated 1f0d69a9fc815d Steven Rostedt 2008-11-12 311 = 40892367bc893f Randy Dunlap 2009-12-21 312 Note: this will= add a significant overhead; only turn this 1f0d69a9fc815d Steven Rostedt 2008-11-12 313 on if you need = to profile the system's use of these macros. 1f0d69a9fc815d Steven Rostedt 2008-11-12 314 = 2bcd521a684cc9 Steven Rostedt 2008-11-21 315 config PROFILE_ALL= _BRANCHES 2bcd521a684cc9 Steven Rostedt 2008-11-21 316 bool "Profile all= if conditionals" 9ae5b8790037d0 Steven Rostedt 2009-04-20 317 select TRACE_BRAN= CH_PROFILING 42cf3eb3efcefe Masahiro Yamada 2019-02-21 318 imply CC_DISABLE_= WARN_MAYBE_UNINITIALIZED # avoid false positives 2bcd521a684cc9 Steven Rostedt 2008-11-21 @319 help 2bcd521a684cc9 Steven Rostedt 2008-11-21 320 This tracer pro= files all branch conditions. Every if () 2bcd521a684cc9 Steven Rostedt 2008-11-21 321 taken in the ke= rnel is recorded whether it hit or miss. 2bcd521a684cc9 Steven Rostedt 2008-11-21 322 The results wil= l be displayed in: 2bcd521a684cc9 Steven Rostedt 2008-11-21 323 = 13e5befaddcf8d David Rientjes 2011-03-16 324 /sys/kernel/deb= ug/tracing/trace_stat/branch_all 2bcd521a684cc9 Steven Rostedt 2008-11-21 325 = 9ae5b8790037d0 Steven Rostedt 2009-04-20 326 This option als= o enables the likely/unlikely profiler. 9ae5b8790037d0 Steven Rostedt 2009-04-20 327 = 2bcd521a684cc9 Steven Rostedt 2008-11-21 328 This configurat= ion, when enabled, will impose a great overhead 2bcd521a684cc9 Steven Rostedt 2008-11-21 329 on the system. = This should only be enabled when the system 40892367bc893f Randy Dunlap 2009-12-21 330 is to be analyz= ed in much detail. 9ae5b8790037d0 Steven Rostedt 2009-04-20 331 endchoice 2bcd521a684cc9 Steven Rostedt 2008-11-21 332 = :::::: The code at line 319 was first introduced by commit :::::: 2bcd521a684cc94befbe2ce7d5b613c841b0d304 trace: profile all if condi= tionals :::::: TO: Steven Rostedt :::::: CC: Ingo Molnar --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6895920884018947921==--