Re: [PATCH] tracing: Add an option to show symbols in _text+offset for function profiler
From: kernel test robot <hidden>
Date: 2025-09-19 17:10:03
Also in:
lkml, oe-kbuild-all
Hi Masami, kernel test robot noticed the following build errors: [auto build test ERROR on trace/for-next] [also build test ERROR on linus/master v6.17-rc6 next-20250918] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Masami-Hiramatsu-Google/tracing-Add-an-option-to-show-symbols-in-_text-offset-for-function-profiler/20250919-135733 base: https://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace for-next patch link: https://lore.kernel.org/r/175826135058.101165.7219957344129610147.stgit%40devnote2 patch subject: [PATCH] tracing: Add an option to show symbols in _text+offset for function profiler config: x86_64-buildonly-randconfig-002-20250919 (https://download.01.org/0day-ci/archive/20250920/202509200000.EJ4InVti-lkp@intel.com/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250920/202509200000.EJ4InVti-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot [off-list ref] | Closes: https://lore.kernel.org/oe-kbuild-all/202509200000.EJ4InVti-lkp@intel.com/ (local) All error/warnings (new ones prefixed by >>): In file included from kernel/trace/trace_sched_switch.c:15:
quoted
kernel/trace/trace.h:1422:37: warning: left shift count >= width of type [-Wshift-count-overflow]
1422 | #define C(a, b) TRACE_ITER_##a = (1 << TRACE_ITER_##a##_BIT)
| ^~
kernel/trace/trace.h:1358:17: note: in expansion of macro 'C'
1358 | C(PROF_TEXT_OFFSET, "prof-text-offset"),
| ^
kernel/trace/trace.h:1402:17: note: in expansion of macro 'PROFILER_FLAGS'
1402 | PROFILER_FLAGS
| ^~~~~~~~~~~~~~
kernel/trace/trace.h:1424:29: note: in expansion of macro 'TRACE_FLAGS'
1424 | enum trace_iterator_flags { TRACE_FLAGS };
| ^~~~~~~~~~~
--
In file included from kernel/trace/trace.c:58:quoted
kernel/trace/trace.h:1422:37: warning: left shift count >= width of type [-Wshift-count-overflow]
1422 | #define C(a, b) TRACE_ITER_##a = (1 << TRACE_ITER_##a##_BIT)
| ^~
kernel/trace/trace.h:1358:17: note: in expansion of macro 'C'
1358 | C(PROF_TEXT_OFFSET, "prof-text-offset"),
| ^
kernel/trace/trace.h:1402:17: note: in expansion of macro 'PROFILER_FLAGS'
1402 | PROFILER_FLAGS
| ^~~~~~~~~~~~~~
kernel/trace/trace.h:1424:29: note: in expansion of macro 'TRACE_FLAGS'
1424 | enum trace_iterator_flags { TRACE_FLAGS };
| ^~~~~~~~~~~
In file included from <command-line>:
In function 'tracer_alloc_buffers',
inlined from 'early_trace_init' at kernel/trace/trace.c:11144:2:quoted
include/linux/compiler_types.h:572:45: error: call to '__compiletime_assert_557' declared with attribute error: BUILD_BUG_ON failed: TRACE_ITER_LAST_BIT > TRACE_FLAGS_MAX_SIZE
572 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:553:25: note: in definition of macro '__compiletime_assert'
553 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:572:9: note: in expansion of macro '_compiletime_assert'
572 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
kernel/trace/trace.c:10983:9: note: in expansion of macro 'BUILD_BUG_ON'
10983 | BUILD_BUG_ON(TRACE_ITER_LAST_BIT > TRACE_FLAGS_MAX_SIZE);
| ^~~~~~~~~~~~
vim +1422 kernel/trace/trace.h
a3418a364ec3c8f Steven Rostedt (Red Hat 2015-09-29 1416)
a3418a364ec3c8f Steven Rostedt (Red Hat 2015-09-29 1417) /*
a3418a364ec3c8f Steven Rostedt (Red Hat 2015-09-29 1418) * By redefining C, we can make TRACE_FLAGS a list of masks that
a3418a364ec3c8f Steven Rostedt (Red Hat 2015-09-29 1419) * use the bits as defined above.
a3418a364ec3c8f Steven Rostedt (Red Hat 2015-09-29 1420) */
a3418a364ec3c8f Steven Rostedt (Red Hat 2015-09-29 1421) #undef C
a3418a364ec3c8f Steven Rostedt (Red Hat 2015-09-29 @1422) #define C(a, b) TRACE_ITER_##a = (1 << TRACE_ITER_##a##_BIT)
a3418a364ec3c8f Steven Rostedt (Red Hat 2015-09-29 1423)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki