[cgroup:review-cgroup2-cpu-on-basic-acct 3/5] kernel/cgroup/stat.c:272: 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-on-basic-acct
head:   8e3456f0a97a8042b0c2485b938d2a62001f0f7c
commit: 041cd640b2f3c5607171c59d8712b503659d21f7 [3/5] 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/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 041cd640b2f3c5607171c59d8712b503659d21f7
        # 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:272: undefined reference to `cputime_adjust'

vim +272 kernel/cgroup/stat.c

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

---
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