From: kernel test robot <lkp@intel.com>
To: Luis Machado <luis.machado@arm.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC] sched: Improving scheduler debugging/tracing interfaces
Date: Wed, 2 Apr 2025 23:37:32 +0800 [thread overview]
Message-ID: <202504022329.cc8TsKhN-lkp@intel.com> (raw)
In-Reply-To: <20250402122607.2982523-1-luis.machado@arm.com>
Hi Luis,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:
[auto build test ERROR on 328802738e1cd091d04076317f3c2174125c5916]
url: https://github.com/intel-lab-lkp/linux/commits/Luis-Machado/sched-Improving-scheduler-debugging-tracing-interfaces/20250402-203041
base: 328802738e1cd091d04076317f3c2174125c5916
patch link: https://lore.kernel.org/r/20250402122607.2982523-1-luis.machado%40arm.com
patch subject: [RFC] sched: Improving scheduler debugging/tracing interfaces
config: hexagon-randconfig-001-20250402 (https://download.01.org/0day-ci/archive/20250402/202504022329.cc8TsKhN-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 7eccafc3c84606587a175c0a8c1ebea6e4fb21cd)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250402/202504022329.cc8TsKhN-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504022329.cc8TsKhN-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/sched/core.c:104:26: error: no member named 'avg' in 'struct cfs_rq'
104 | return cfs_rq ? cfs_rq->avg.util_est: 0;
| ~~~~~~ ^
kernel/sched/core.c:110:18: error: no member named 'avg' in 'struct sched_entity'
110 | return se ? se->avg.util_est & ~UTIL_AVG_UNCHANGED : 0;
| ~~ ^
>> kernel/sched/core.c:118:55: error: no member named 'cpu' in 'struct rq'
118 | unsigned long capacity_orig = per_cpu(cpu_scale, rq->cpu);
| ~~ ^
include/linux/percpu-defs.h:272:49: note: expanded from macro 'per_cpu'
272 | #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
| ^~~
include/linux/percpu-defs.h:262:9: note: expanded from macro 'per_cpu_ptr'
262 | (void)(cpu); \
| ^~~
kernel/sched/core.c:119:58: error: no member named 'cpu' in 'struct rq'
119 | unsigned long scale_freq = per_cpu(arch_freq_scale, rq->cpu);
| ~~ ^
include/linux/percpu-defs.h:272:49: note: expanded from macro 'per_cpu'
272 | #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
| ^~~
include/linux/percpu-defs.h:262:9: note: expanded from macro 'per_cpu_ptr'
262 | (void)(cpu); \
| ^~~
kernel/sched/core.c:7707:12: warning: array index -1 is before the beginning of the array [-Warray-bounds]
7707 | preempt_modes[preempt_dynamic_mode] : "undef",
| ^ ~~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:7682:1: note: array 'preempt_modes' declared here
7682 | const char *preempt_modes[] = {
| ^
1 warning and 4 errors generated.
vim +104 kernel/sched/core.c
101
102 static unsigned int cfs_rq_util_est(struct cfs_rq *cfs_rq)
103 {
> 104 return cfs_rq ? cfs_rq->avg.util_est: 0;
105 }
106
107 static unsigned int se_util_est(struct sched_entity *se)
108 {
109
110 return se ? se->avg.util_est & ~UTIL_AVG_UNCHANGED : 0;
111 }
112
113 static unsigned long rq_cpu_current_capacity(struct rq *rq)
114 {
115 if (rq == NULL)
116 return 0;
117
> 118 unsigned long capacity_orig = per_cpu(cpu_scale, rq->cpu);
119 unsigned long scale_freq = per_cpu(arch_freq_scale, rq->cpu);
120 return cap_scale(capacity_orig, scale_freq);
121 }
122
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
parent reply other threads:[~2025-04-02 15:38 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20250402122607.2982523-1-luis.machado@arm.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202504022329.cc8TsKhN-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=luis.machado@arm.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox