From: kbuild test robot <lkp@intel.com>
To: "Joel Fernandes (Google)" <joel@joelfernandes.org>
Cc: kbuild-all@lists.01.org, "linux-kernel@vger.kernel.org,
Joel Fernandes " <joel@joelfernandes.org>,
Davidlohr Bueso <dave@stgolabs.net>,
Josh Triplett <josh@joshtriplett.org>,
Lai Jiangshan <jiangshanlai@gmail.com>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
"Paul E. McKenney" <paulmck@kernel.org>,
rcu@vger.kernel.org, Steven Rostedt <rostedt@goodmis.org>,
urezki@gmail.com
Subject: Re: [PATCH linus/master 1/2] rcuperf: Add ability to increase object allocation size
Date: Fri, 6 Mar 2020 10:17:12 +0800 [thread overview]
Message-ID: <202003061054.MAZCLFWW%lkp@intel.com> (raw)
In-Reply-To: <20200305221323.66051-1-joel@joelfernandes.org>
[-- Attachment #1: Type: text/plain, Size: 4681 bytes --]
Hi "Joel,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
url: https://github.com/0day-ci/linux/commits/Joel-Fernandes-Google/rcuperf-Add-ability-to-increase-object-allocation-size/20200306-064829
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 9f65ed5fe41ce08ed1cb1f6a950f9ec694c142ad
config: c6x-allyesconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=c6x
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:7:0,
from include/linux/kernel.h:15,
from kernel//rcu/rcuperf.c:13:
kernel//rcu/rcuperf.c: In function 'kfree_perf_init':
include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:9:20: note: in expansion of macro 'KERN_SOH'
#define KERN_ALERT KERN_SOH "1" /* action must be taken immediately */
^~~~~~~~
>> include/linux/printk.h:300:9: note: in expansion of macro 'KERN_ALERT'
printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~
>> kernel//rcu/rcuperf.c:716:2: note: in expansion of macro 'pr_alert'
pr_alert("kfree object size=%lu\n", kfree_mult * sizeof(struct kfree_obj));
^~~~~~~~
kernel//rcu/rcuperf.c:716:32: note: format string is defined here
pr_alert("kfree object size=%lu\n", kfree_mult * sizeof(struct kfree_obj));
~~^
%u
--
In file included from include/linux/printk.h:7:0,
from include/linux/kernel.h:15,
from kernel/rcu/rcuperf.c:13:
kernel/rcu/rcuperf.c: In function 'kfree_perf_init':
include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:9:20: note: in expansion of macro 'KERN_SOH'
#define KERN_ALERT KERN_SOH "1" /* action must be taken immediately */
^~~~~~~~
>> include/linux/printk.h:300:9: note: in expansion of macro 'KERN_ALERT'
printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~
kernel/rcu/rcuperf.c:716:2: note: in expansion of macro 'pr_alert'
pr_alert("kfree object size=%lu\n", kfree_mult * sizeof(struct kfree_obj));
^~~~~~~~
kernel/rcu/rcuperf.c:716:32: note: format string is defined here
pr_alert("kfree object size=%lu\n", kfree_mult * sizeof(struct kfree_obj));
~~^
%u
vim +/pr_alert +716 kernel//rcu/rcuperf.c
698
699 static int __init
700 kfree_perf_init(void)
701 {
702 long i;
703 int firsterr = 0;
704
705 kfree_nrealthreads = compute_real(kfree_nthreads);
706 /* Start up the kthreads. */
707 if (shutdown) {
708 init_waitqueue_head(&shutdown_wq);
709 firsterr = torture_create_kthread(kfree_perf_shutdown, NULL,
710 shutdown_task);
711 if (firsterr)
712 goto unwind;
713 schedule_timeout_uninterruptible(1);
714 }
715
> 716 pr_alert("kfree object size=%lu\n", kfree_mult * sizeof(struct kfree_obj));
717
718 kfree_reader_tasks = kcalloc(kfree_nrealthreads, sizeof(kfree_reader_tasks[0]),
719 GFP_KERNEL);
720 if (kfree_reader_tasks == NULL) {
721 firsterr = -ENOMEM;
722 goto unwind;
723 }
724
725 for (i = 0; i < kfree_nrealthreads; i++) {
726 firsterr = torture_create_kthread(kfree_perf_thread, (void *)i,
727 kfree_reader_tasks[i]);
728 if (firsterr)
729 goto unwind;
730 }
731
732 while (atomic_read(&n_kfree_perf_thread_started) < kfree_nrealthreads)
733 schedule_timeout_uninterruptible(1);
734
735 torture_init_end();
736 return 0;
737
738 unwind:
739 torture_init_end();
740 kfree_perf_cleanup();
741 return firsterr;
742 }
743
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 51605 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH linus/master 1/2] rcuperf: Add ability to increase object allocation size
Date: Fri, 06 Mar 2020 10:17:12 +0800 [thread overview]
Message-ID: <202003061054.MAZCLFWW%lkp@intel.com> (raw)
In-Reply-To: <20200305221323.66051-1-joel@joelfernandes.org>
[-- Attachment #1: Type: text/plain, Size: 4796 bytes --]
Hi "Joel,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
url: https://github.com/0day-ci/linux/commits/Joel-Fernandes-Google/rcuperf-Add-ability-to-increase-object-allocation-size/20200306-064829
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 9f65ed5fe41ce08ed1cb1f6a950f9ec694c142ad
config: c6x-allyesconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=c6x
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:7:0,
from include/linux/kernel.h:15,
from kernel//rcu/rcuperf.c:13:
kernel//rcu/rcuperf.c: In function 'kfree_perf_init':
include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:9:20: note: in expansion of macro 'KERN_SOH'
#define KERN_ALERT KERN_SOH "1" /* action must be taken immediately */
^~~~~~~~
>> include/linux/printk.h:300:9: note: in expansion of macro 'KERN_ALERT'
printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~
>> kernel//rcu/rcuperf.c:716:2: note: in expansion of macro 'pr_alert'
pr_alert("kfree object size=%lu\n", kfree_mult * sizeof(struct kfree_obj));
^~~~~~~~
kernel//rcu/rcuperf.c:716:32: note: format string is defined here
pr_alert("kfree object size=%lu\n", kfree_mult * sizeof(struct kfree_obj));
~~^
%u
--
In file included from include/linux/printk.h:7:0,
from include/linux/kernel.h:15,
from kernel/rcu/rcuperf.c:13:
kernel/rcu/rcuperf.c: In function 'kfree_perf_init':
include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:9:20: note: in expansion of macro 'KERN_SOH'
#define KERN_ALERT KERN_SOH "1" /* action must be taken immediately */
^~~~~~~~
>> include/linux/printk.h:300:9: note: in expansion of macro 'KERN_ALERT'
printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~
kernel/rcu/rcuperf.c:716:2: note: in expansion of macro 'pr_alert'
pr_alert("kfree object size=%lu\n", kfree_mult * sizeof(struct kfree_obj));
^~~~~~~~
kernel/rcu/rcuperf.c:716:32: note: format string is defined here
pr_alert("kfree object size=%lu\n", kfree_mult * sizeof(struct kfree_obj));
~~^
%u
vim +/pr_alert +716 kernel//rcu/rcuperf.c
698
699 static int __init
700 kfree_perf_init(void)
701 {
702 long i;
703 int firsterr = 0;
704
705 kfree_nrealthreads = compute_real(kfree_nthreads);
706 /* Start up the kthreads. */
707 if (shutdown) {
708 init_waitqueue_head(&shutdown_wq);
709 firsterr = torture_create_kthread(kfree_perf_shutdown, NULL,
710 shutdown_task);
711 if (firsterr)
712 goto unwind;
713 schedule_timeout_uninterruptible(1);
714 }
715
> 716 pr_alert("kfree object size=%lu\n", kfree_mult * sizeof(struct kfree_obj));
717
718 kfree_reader_tasks = kcalloc(kfree_nrealthreads, sizeof(kfree_reader_tasks[0]),
719 GFP_KERNEL);
720 if (kfree_reader_tasks == NULL) {
721 firsterr = -ENOMEM;
722 goto unwind;
723 }
724
725 for (i = 0; i < kfree_nrealthreads; i++) {
726 firsterr = torture_create_kthread(kfree_perf_thread, (void *)i,
727 kfree_reader_tasks[i]);
728 if (firsterr)
729 goto unwind;
730 }
731
732 while (atomic_read(&n_kfree_perf_thread_started) < kfree_nrealthreads)
733 schedule_timeout_uninterruptible(1);
734
735 torture_init_end();
736 return 0;
737
738 unwind:
739 torture_init_end();
740 kfree_perf_cleanup();
741 return firsterr;
742 }
743
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 51605 bytes --]
next prev parent reply other threads:[~2020-03-06 2:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-05 22:13 [PATCH linus/master 1/2] rcuperf: Add ability to increase object allocation size Joel Fernandes (Google)
2020-03-05 22:13 ` [PATCH linus/master 2/2] rcu/tree: Add a shrinker to prevent OOM due to kfree_rcu() batching Joel Fernandes (Google)
2020-03-05 22:17 ` Joel Fernandes
2020-03-05 22:25 ` Joel Fernandes
2020-03-06 2:17 ` kbuild test robot [this message]
2020-03-06 2:17 ` [PATCH linus/master 1/2] rcuperf: Add ability to increase object allocation size kbuild test robot
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=202003061054.MAZCLFWW%lkp@intel.com \
--to=lkp@intel.com \
--cc=dave@stgolabs.net \
--cc=jiangshanlai@gmail.com \
--cc=joel@joelfernandes.org \
--cc=josh@joshtriplett.org \
--cc=kbuild-all@lists.01.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=paulmck@kernel.org \
--cc=rcu@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=urezki@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.