[cgroup:review-cgroup2-cpu-basic-stat 21/23] kernel/cgroup/stat.c:271: undefined reference to `cputime_adjust'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git review-cgroup2-cpu-basic-stat
head:   8acdcade690d62f6b9751a5c8e55f938de779a2d
commit: 74239092337c458c622385cc2f6a4d12bb52d24e [21/23] cgroup: Implement cgroup2 basic CPU usage accounting
config: s390-default_defconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 74239092337c458c622385cc2f6a4d12bb52d24e
        # save the attached .config to linux build tree
        make.cross ARCH=s390 

All errors (new ones prefixed by >>):

   kernel/cgroup/stat.o: In function `cgroup_stat_show_cputime':
>> kernel/cgroup/stat.c:271: undefined reference to `cputime_adjust'

vim +271 kernel/cgroup/stat.c

   257	
   258	void cgroup_stat_show_cputime(struct seq_file *seq, const char *prefix)
   259	{
   260		struct cgroup *cgrp = seq_css(seq)->cgroup;
   261		u64 usage, utime, stime;
   262	
   263		if (!cgroup_parent(cgrp))
   264			return;
   265	
   266		mutex_lock(&cgroup_stat_mutex);
   267	
   268		cgroup_stat_flush_locked(cgrp);
   269	
   270		usage = cgrp->stat.cputime.sum_exec_runtime;
 > 271		cputime_adjust(&cgrp->stat.cputime, &cgrp->stat.prev_cputime,
   272			       &utime, &stime);
   273	
   274		mutex_unlock(&cgroup_stat_mutex);
   275	
   276		do_div(usage, NSEC_PER_USEC);
   277		do_div(utime, NSEC_PER_USEC);
   278		do_div(stime, NSEC_PER_USEC);
   279	
   280		seq_printf(seq, "%susage_usec %llu\n"
   281			   "%suser_usec %llu\n"
   282			   "%ssystem_usec %llu\n",
   283			   prefix, usage, prefix, utime, prefix, stime);
   284	}
   285	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux