tree:
https://android.googlesource.com/kernel/common android12-5.10
head: e162c572232d9e2020248c9f5b36b47724ce9a12
commit: b79d1815c400c3929bb78a209b6e51a38d6ffcb2 [1/2] ANDROID: psi: Add vendor hooks for
PSI tracing
config: arm64-randconfig-r032-20210421 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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
git remote add android-common
https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout b79d1815c400c3929bb78a209b6e51a38d6ffcb2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/sched/psi.c: In function 'update_triggers':
> kernel/sched/psi.c:538:3: error: implicit declaration of function
'trace_android_vh_psi_event' [-Werror=implicit-function-declaration]
538 | trace_android_vh_psi_event(t);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
> kernel/sched/psi.c:546:2: error: implicit declaration of function
'trace_android_vh_psi_group' [-Werror=implicit-function-declaration]
546 | trace_android_vh_psi_group(group);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
At top level:
kernel/sched/psi.c:1342:30: warning: 'psi_cpu_proc_ops' defined but not used
[-Wunused-const-variable=]
1342 | static const struct proc_ops psi_cpu_proc_ops = {
| ^~~~~~~~~~~~~~~~
kernel/sched/psi.c:1333:30: warning: 'psi_memory_proc_ops' defined but not used
[-Wunused-const-variable=]
1333 | static const struct proc_ops psi_memory_proc_ops = {
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/psi.c:1324:30: warning: 'psi_io_proc_ops' defined but not used
[-Wunused-const-variable=]
1324 | static const struct proc_ops psi_io_proc_ops = {
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/trace_android_vh_psi_event +538 kernel/sched/psi.c
503
504 static u64 update_triggers(struct psi_group *group, u64 now)
505 {
506 struct psi_trigger *t;
507 bool new_stall = false;
508 u64 *total = group->total[PSI_POLL];
509
510 /*
511 * On subsequent updates, calculate growth deltas and let
512 * watchers know when their specified thresholds are exceeded.
513 */
514 list_for_each_entry(t, &group->triggers, node) {
515 u64 growth;
516
517 /* Check for stall activity */
518 if (group->polling_total[t->state] == total[t->state])
519 continue;
520
521 /*
522 * Multiple triggers might be looking at the same state,
523 * remember to update group->polling_total[] once we've
524 * been through all of them. Also remember to extend the
525 * polling time if we see new stall activity.
526 */
527 new_stall = true;
528
529 /* Calculate growth since last update */
530 growth = window_update(&t->win, now, total[t->state]);
531 if (growth < t->threshold)
532 continue;
533
534 /* Limit event signaling to once per window */
535 if (now < t->last_event_time + t->win.size)
536 continue;
537
538 trace_android_vh_psi_event(t);
539
540 /* Generate an event */
541 if (cmpxchg(&t->event, 0, 1) == 0)
542 wake_up_interruptible(&t->event_wait);
543 t->last_event_time = now;
544 }
545
546 trace_android_vh_psi_group(group);
547
548 if (new_stall)
549 memcpy(group->polling_total, total,
550 sizeof(group->polling_total));
551
552 return now + group->poll_min_period;
553 }
554
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org