[jsarha:topic/cros-sof-v4.14-rebase 1501/9999] include/trace/events/sched.h:683:14: error: 'struct cfs_rq' has no member named 'rq'

From: kernel test robot
Date: Fri Sep 02 2022 - 02:03:14 EST


Hi Dietmar,

FYI, the error/warning still remains.

tree: https://github.com/jsarha/linux topic/cros-sof-v4.14-rebase
head: 18a233f3f676a98dde00947535d99ab1a54da340
commit: bc584b9ba0463b430a0875cbc25256f964754701 [1501/9999] ANDROID: trace: Add WALT util signal to trace event sched_load_cfs_rq
config: sparc64-randconfig-c042-20220901 (https://download.01.org/0day-ci/archive/20220902/202209021329.6FZDTS9b-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/jsarha/linux/commit/bc584b9ba0463b430a0875cbc25256f964754701
git remote add jsarha https://github.com/jsarha/linux
git fetch --no-tags jsarha topic/cros-sof-v4.14-rebase
git checkout bc584b9ba0463b430a0875cbc25256f964754701
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bash kernel/sched/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

In file included from include/linux/cpuset.h:13:0,
from kernel/sched/core.c:14:
include/linux/sched/topology.h:196:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^~~~~
In file included from include/trace/define_trace.h:96:0,
from include/trace/events/sched.h:1150,
from kernel/sched/core.c:41:
include/trace/events/sched.h: In function 'trace_event_raw_event_sched_load_cfs_rq':
>> include/trace/events/sched.h:683:14: error: 'struct cfs_rq' has no member named 'rq'
if (&cfs_rq->rq->cfs == cfs_rq) {
^
include/trace/trace_events.h:719:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:658:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_cfs_rq,
^~~~~~~~~~~
include/trace/events/sched.h:674:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/trace/events/sched.h:683:3: note: in expansion of macro 'if'
if (&cfs_rq->rq->cfs == cfs_rq) {
^~
>> include/trace/events/sched.h:683:14: error: 'struct cfs_rq' has no member named 'rq'
if (&cfs_rq->rq->cfs == cfs_rq) {
^
include/trace/trace_events.h:719:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:658:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_cfs_rq,
^~~~~~~~~~~
include/trace/events/sched.h:674:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/trace/events/sched.h:683:3: note: in expansion of macro 'if'
if (&cfs_rq->rq->cfs == cfs_rq) {
^~
>> include/trace/events/sched.h:683:14: error: 'struct cfs_rq' has no member named 'rq'
if (&cfs_rq->rq->cfs == cfs_rq) {
^
include/trace/trace_events.h:719:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:658:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_cfs_rq,
^~~~~~~~~~~
include/trace/events/sched.h:674:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/trace/events/sched.h:683:3: note: in expansion of macro 'if'
if (&cfs_rq->rq->cfs == cfs_rq) {
^~
include/trace/events/sched.h:685:13: error: 'struct cfs_rq' has no member named 'rq'
cfs_rq->rq->prev_runnable_sum);
^
include/trace/trace_events.h:719:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:658:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_cfs_rq,
^~~~~~~~~~~
include/trace/events/sched.h:674:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/trace/events/sched.h:684:4: note: in expansion of macro 'walt_util'
walt_util(__entry->util_walt,
^~~~~~~~~
include/trace/events/sched.h: In function 'trace_event_raw_event_sched_load_se':
include/trace/events/sched.h:758:10: error: 'struct sched_entity' has no member named 'my_q'
if (!se->my_q) {
^
include/trace/trace_events.h:719:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:725:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_se,
^~~~~~~~~~~
include/trace/events/sched.h:743:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/trace/events/sched.h:758:3: note: in expansion of macro 'if'
if (!se->my_q) {
^~
include/trace/events/sched.h:758:10: error: 'struct sched_entity' has no member named 'my_q'
if (!se->my_q) {
^
include/trace/trace_events.h:719:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:725:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_se,
^~~~~~~~~~~
include/trace/events/sched.h:743:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/trace/events/sched.h:758:3: note: in expansion of macro 'if'
if (!se->my_q) {
^~
include/trace/events/sched.h:758:10: error: 'struct sched_entity' has no member named 'my_q'
if (!se->my_q) {
^
include/trace/trace_events.h:719:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:725:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_se,
^~~~~~~~~~~
include/trace/events/sched.h:743:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/trace/events/sched.h:758:3: note: in expansion of macro 'if'
if (!se->my_q) {
^~
In file included from include/trace/define_trace.h:97:0,
from include/trace/events/sched.h:1150,
from kernel/sched/core.c:41:
include/trace/events/sched.h: In function 'perf_trace_sched_load_cfs_rq':
>> include/trace/events/sched.h:683:14: error: 'struct cfs_rq' has no member named 'rq'
if (&cfs_rq->rq->cfs == cfs_rq) {
^
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:658:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_cfs_rq,
^~~~~~~~~~~
include/trace/events/sched.h:674:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/trace/events/sched.h:683:3: note: in expansion of macro 'if'
if (&cfs_rq->rq->cfs == cfs_rq) {
^~
>> include/trace/events/sched.h:683:14: error: 'struct cfs_rq' has no member named 'rq'
if (&cfs_rq->rq->cfs == cfs_rq) {
^
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:658:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_cfs_rq,
^~~~~~~~~~~
include/trace/events/sched.h:674:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/trace/events/sched.h:683:3: note: in expansion of macro 'if'
if (&cfs_rq->rq->cfs == cfs_rq) {
^~
>> include/trace/events/sched.h:683:14: error: 'struct cfs_rq' has no member named 'rq'
if (&cfs_rq->rq->cfs == cfs_rq) {
^
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:658:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_cfs_rq,
^~~~~~~~~~~
include/trace/events/sched.h:674:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/trace/events/sched.h:683:3: note: in expansion of macro 'if'
if (&cfs_rq->rq->cfs == cfs_rq) {
^~
include/trace/events/sched.h:685:13: error: 'struct cfs_rq' has no member named 'rq'
cfs_rq->rq->prev_runnable_sum);
^
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:658:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_cfs_rq,
^~~~~~~~~~~
include/trace/events/sched.h:674:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/trace/events/sched.h:684:4: note: in expansion of macro 'walt_util'
walt_util(__entry->util_walt,
^~~~~~~~~
include/trace/events/sched.h: In function 'perf_trace_sched_load_se':
include/trace/events/sched.h:758:10: error: 'struct sched_entity' has no member named 'my_q'
if (!se->my_q) {
^
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:725:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_se,
^~~~~~~~~~~
include/trace/events/sched.h:743:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/trace/events/sched.h:758:3: note: in expansion of macro 'if'
if (!se->my_q) {
^~
include/trace/events/sched.h:758:10: error: 'struct sched_entity' has no member named 'my_q'
if (!se->my_q) {
^
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:725:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_se,
^~~~~~~~~~~
include/trace/events/sched.h:743:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/trace/events/sched.h:758:3: note: in expansion of macro 'if'
if (!se->my_q) {
^~
include/trace/events/sched.h:758:10: error: 'struct sched_entity' has no member named 'my_q'
if (!se->my_q) {
^
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
include/trace/events/sched.h:725:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_load_se,
^~~~~~~~~~~
include/trace/events/sched.h:743:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/trace/events/sched.h:758:3: note: in expansion of macro 'if'


vim +683 include/trace/events/sched.h

659
660 TP_PROTO(struct cfs_rq *cfs_rq),
661
662 TP_ARGS(cfs_rq),
663
664 TP_STRUCT__entry(
665 __field( int, cpu )
666 __dynamic_array(char, path,
667 __trace_sched_path(cfs_rq, NULL, 0) )
668 __field( unsigned long, load )
669 __field( unsigned long, util )
670 __field( unsigned long, util_pelt )
671 __field( unsigned long, util_walt )
672 ),
673
674 TP_fast_assign(
675 __entry->cpu = __trace_sched_cpu(cfs_rq, NULL);
676 __trace_sched_path(cfs_rq, __get_dynamic_array(path),
677 __get_dynamic_array_len(path));
678 __entry->load = cfs_rq->runnable_load_avg;
679 __entry->util = cfs_rq->avg.util_avg;
680 __entry->util_pelt = cfs_rq->avg.util_avg;
681 __entry->util_walt = 0;
682 #ifdef CONFIG_SCHED_WALT
> 683 if (&cfs_rq->rq->cfs == cfs_rq) {
684 walt_util(__entry->util_walt,
685 cfs_rq->rq->prev_runnable_sum);
686 if (!walt_disabled && sysctl_sched_use_walt_cpu_util)
687 __entry->util = __entry->util_walt;
688 }
689 #endif
690 ),
691
692 TP_printk("cpu=%d path=%s load=%lu util=%lu util_pelt=%lu util_walt=%lu",
693 __entry->cpu, __get_str(path), __entry->load, __entry->util,
694 __entry->util_pelt, __entry->util_walt)
695 );
696

--
0-DAY CI Kernel Test Service
https://01.org/lkp