From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH 2/5] tracing/hwlat: Implement the mode config option
Date: Fri, 09 Apr 2021 04:52:50 +0800 [thread overview]
Message-ID: <202104090454.c8pZqs7Q-lkp@intel.com> (raw)
In-Reply-To: <c6b6ac9274e417b650c7aa9494bcf4f6ca0a1097.1617889883.git.bristot@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 3556 bytes --]
Hi Daniel,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on tip/perf/core]
[also build test WARNING on trace/for-next linux/master linus/master v5.12-rc6 next-20210408]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Daniel-Bristot-de-Oliveira/hwlat-improvements-and-osnoise-tracer/20210408-221655
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git cface0326a6c2ae5c8f47bd466f07624b3e348a7
config: openrisc-randconfig-r013-20210408 (attached as .config)
compiler: or1k-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
# https://github.com/0day-ci/linux/commit/a09dc6bb34fa0ac2596763b3a0285717799b57ce
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Daniel-Bristot-de-Oliveira/hwlat-improvements-and-osnoise-tracer/20210408-221655
git checkout a09dc6bb34fa0ac2596763b3a0285717799b57ce
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
kernel/trace/trace_hwlat.c: In function 'hwlat_mode_write':
>> kernel/trace/trace_hwlat.c:711:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
711 | int ret;
| ^~~
vim +/ret +711 kernel/trace/trace_hwlat.c
691
692 /**
693 * hwlat_mode_write - Write function for "mode" entry
694 * @filp: The active open file structure
695 * @ubuf: The user buffer that contains the value to write
696 * @cnt: The maximum number of bytes to write to "file"
697 * @ppos: The current position in @file
698 *
699 * This function provides a write implementation for the "mode" interface
700 * to the hardware latency detector. hwlatd has different operation modes.
701 * The "none" sets the allowed cpumask for a single hwlatd thread at the
702 * startup and lets the scheduler handle the migration. The default mode is
703 * the "round-robin" one, in which a single hwlatd thread runs, migrating
704 * among the allowed CPUs in a round-robin fashion.
705 */
706 static ssize_t hwlat_mode_write(struct file *filp, const char __user *ubuf,
707 size_t cnt, loff_t *ppos)
708 {
709 const char *mode;
710 char buf[64];
> 711 int ret;
712 int i;
713
714 if (hwlat_busy)
715 return -EBUSY;
716
717 if (cnt >= sizeof(buf))
718 return -EINVAL;
719
720 if (copy_from_user(buf, ubuf, cnt))
721 return -EFAULT;
722
723 buf[cnt] = 0;
724
725 mode = strstrip(buf);
726
727 ret = -EINVAL;
728
729 for (i = 0; i < MODE_MAX; i++) {
730 if (strcmp(mode, thread_mode_str[i]) == 0) {
731 hwlat_data.thread_mode = i;
732 ret = cnt;
733 }
734 }
735
736 *ppos += cnt;
737
738 return cnt;
739 }
740
---
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: 25278 bytes --]
next prev parent reply other threads:[~2021-04-08 20:52 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-08 14:13 [RFC PATCH 0/5] hwlat improvements and osnoise tracer Daniel Bristot de Oliveira
2021-04-08 14:13 ` [RFC PATCH 1/5] tracing/hwlat: Add a cpus file specific for hwlat_detector Daniel Bristot de Oliveira
2021-04-14 14:10 ` Steven Rostedt
2021-04-15 13:09 ` Daniel Bristot de Oliveira
2021-04-15 13:49 ` Steven Rostedt
2021-04-15 14:33 ` Daniel Bristot de Oliveira
2021-04-08 14:13 ` [RFC PATCH 2/5] tracing/hwlat: Implement the mode config option Daniel Bristot de Oliveira
2021-04-08 20:52 ` kernel test robot [this message]
2021-04-14 14:30 ` Steven Rostedt
2021-04-15 13:16 ` Daniel Bristot de Oliveira
2021-04-15 13:50 ` Steven Rostedt
2021-04-08 14:13 ` [RFC PATCH 3/5] tracing/hwlat: Implement the per-cpu mode Daniel Bristot de Oliveira
2021-04-08 19:39 ` kernel test robot
2021-04-08 21:39 ` kernel test robot
2021-04-08 23:54 ` kernel test robot
2021-04-14 14:41 ` Steven Rostedt
2021-04-15 13:22 ` Daniel Bristot de Oliveira
2021-04-15 15:22 ` Steven Rostedt
2021-04-08 14:13 ` [RFC PATCH 4/5] tracing: Add __print_ns_to_secs() and __print_ns_without_secs() helpers Daniel Bristot de Oliveira
2021-04-08 14:13 ` [RFC PATCH 5/5] tracing: Add the osnoise tracer Daniel Bristot de Oliveira
2021-04-08 15:58 ` Jonathan Corbet
2021-04-09 7:19 ` Daniel Bristot de Oliveira
2021-04-08 23:57 ` kernel test robot
2021-04-14 17:14 ` Steven Rostedt
2021-04-15 13:43 ` Daniel Bristot de Oliveira
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=202104090454.c8pZqs7Q-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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.