From: kbuild test robot <lkp@intel.com>
To: Rohit Jain <rohit.k.jain@oracle.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
eas-dev@lists.linaro.org, peterz@infradead.org, mingo@redhat.com,
joelaf@google.com
Subject: Re: [PATCH 1/2] sched: Introduce new flags to sched_setaffinity to support soft affinity.
Date: Thu, 21 Sep 2017 14:34:54 +0800 [thread overview]
Message-ID: <201709211417.PbdbQZWF%fengguang.wu@intel.com> (raw)
In-Reply-To: <1505860632-11275-2-git-send-email-rohit.k.jain@oracle.com>
[-- Attachment #1: Type: text/plain, Size: 4804 bytes --]
Hi Rohit,
[auto build test ERROR on tip/sched/core]
[also build test ERROR on v4.14-rc1 next-20170920]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Rohit-Jain/sched-Introduce-new-flags-to-sched_setaffinity-to-support-soft-affinity/20170921-140313
config: i386-randconfig-x018-201738 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
kernel//trace/trace_hwlat.c: In function 'move_to_next_cpu':
>> kernel//trace/trace_hwlat.c:299:2: error: too few arguments to function 'sched_setaffinity'
sched_setaffinity(0, current_mask);
^~~~~~~~~~~~~~~~~
In file included from include/linux/kthread.h:5:0,
from kernel//trace/trace_hwlat.c:42:
include/linux/sched.h:1636:13: note: declared here
extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask,
^~~~~~~~~~~~~~~~~
kernel//trace/trace_hwlat.c: In function 'start_kthread':
kernel//trace/trace_hwlat.c:372:2: error: too few arguments to function 'sched_setaffinity'
sched_setaffinity(kthread->pid, current_mask);
^~~~~~~~~~~~~~~~~
In file included from include/linux/kthread.h:5:0,
from kernel//trace/trace_hwlat.c:42:
include/linux/sched.h:1636:13: note: declared here
extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask,
^~~~~~~~~~~~~~~~~
vim +/sched_setaffinity +299 kernel//trace/trace_hwlat.c
0330f7aa Steven Rostedt (Red Hat 2016-07-15 269)
f447c196 Steven Rostedt (VMware 2017-01-31 270) static void move_to_next_cpu(void)
0330f7aa Steven Rostedt (Red Hat 2016-07-15 271) {
f447c196 Steven Rostedt (VMware 2017-01-31 272) struct cpumask *current_mask = &save_cpumask;
0330f7aa Steven Rostedt (Red Hat 2016-07-15 273) int next_cpu;
0330f7aa Steven Rostedt (Red Hat 2016-07-15 274)
0330f7aa Steven Rostedt (Red Hat 2016-07-15 275) if (disable_migrate)
0330f7aa Steven Rostedt (Red Hat 2016-07-15 276) return;
0330f7aa Steven Rostedt (Red Hat 2016-07-15 277) /*
0330f7aa Steven Rostedt (Red Hat 2016-07-15 278) * If for some reason the user modifies the CPU affinity
0330f7aa Steven Rostedt (Red Hat 2016-07-15 279) * of this thread, than stop migrating for the duration
0330f7aa Steven Rostedt (Red Hat 2016-07-15 280) * of the current test.
0330f7aa Steven Rostedt (Red Hat 2016-07-15 281) */
0330f7aa Steven Rostedt (Red Hat 2016-07-15 282) if (!cpumask_equal(current_mask, ¤t->cpus_allowed))
0330f7aa Steven Rostedt (Red Hat 2016-07-15 283) goto disable;
0330f7aa Steven Rostedt (Red Hat 2016-07-15 284)
0330f7aa Steven Rostedt (Red Hat 2016-07-15 285) get_online_cpus();
0330f7aa Steven Rostedt (Red Hat 2016-07-15 286) cpumask_and(current_mask, cpu_online_mask, tracing_buffer_mask);
0330f7aa Steven Rostedt (Red Hat 2016-07-15 287) next_cpu = cpumask_next(smp_processor_id(), current_mask);
0330f7aa Steven Rostedt (Red Hat 2016-07-15 288) put_online_cpus();
0330f7aa Steven Rostedt (Red Hat 2016-07-15 289)
0330f7aa Steven Rostedt (Red Hat 2016-07-15 290) if (next_cpu >= nr_cpu_ids)
0330f7aa Steven Rostedt (Red Hat 2016-07-15 291) next_cpu = cpumask_first(current_mask);
0330f7aa Steven Rostedt (Red Hat 2016-07-15 292)
0330f7aa Steven Rostedt (Red Hat 2016-07-15 293) if (next_cpu >= nr_cpu_ids) /* Shouldn't happen! */
0330f7aa Steven Rostedt (Red Hat 2016-07-15 294) goto disable;
0330f7aa Steven Rostedt (Red Hat 2016-07-15 295)
0330f7aa Steven Rostedt (Red Hat 2016-07-15 296) cpumask_clear(current_mask);
0330f7aa Steven Rostedt (Red Hat 2016-07-15 297) cpumask_set_cpu(next_cpu, current_mask);
0330f7aa Steven Rostedt (Red Hat 2016-07-15 298)
0330f7aa Steven Rostedt (Red Hat 2016-07-15 @299) sched_setaffinity(0, current_mask);
0330f7aa Steven Rostedt (Red Hat 2016-07-15 300) return;
0330f7aa Steven Rostedt (Red Hat 2016-07-15 301)
0330f7aa Steven Rostedt (Red Hat 2016-07-15 302) disable:
0330f7aa Steven Rostedt (Red Hat 2016-07-15 303) disable_migrate = true;
0330f7aa Steven Rostedt (Red Hat 2016-07-15 304) }
0330f7aa Steven Rostedt (Red Hat 2016-07-15 305)
:::::: The code at line 299 was first introduced by commit
:::::: 0330f7aa8ee63d0c435c0cb4e47ea06235ee4b7f tracing: Have hwlat trace migrate across tracing_cpumask CPUs
:::::: TO: Steven Rostedt (Red Hat) <rostedt@goodmis.org>
:::::: CC: Steven Rostedt <rostedt@goodmis.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27719 bytes --]
next prev parent reply other threads:[~2017-09-21 6:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-19 22:37 [RFC PATCH 0/2] sched: Introduce CPU soft affinity for processes Rohit Jain
2017-09-19 22:37 ` [PATCH 1/2] sched: Introduce new flags to sched_setaffinity to support soft affinity Rohit Jain
2017-09-21 6:34 ` kbuild test robot [this message]
2017-09-21 10:38 ` kbuild test robot
2017-09-19 22:37 ` [PATCH 2/2] sched: Actual changes after adding SCHED_SOFT_AFFINITY to make it work with the scheduler Rohit Jain
2017-09-21 11:52 ` Peter Zijlstra
2017-09-21 17:30 ` Rohit Jain
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=201709211417.PbdbQZWF%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=eas-dev@lists.linaro.org \
--cc=joelaf@google.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rohit.k.jain@oracle.com \
/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
all inboxes | Powered by JetHome®