From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH v3 1/1] mmap_lock: add tracepoints around mmap_lock acquisition
Date: Sat, 20 Jun 2020 03:17:07 +0800 [thread overview]
Message-ID: <202006200350.dqXAc7Tv%lkp@intel.com> (raw)
In-Reply-To: <20200618222225.102337-2-axelrasmussen@google.com>
[-- Attachment #1: Type: text/plain, Size: 11236 bytes --]
Hi Axel,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/locking/core]
[also build test ERROR on tip/perf/core linux/master linus/master v5.8-rc1 next-20200618]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Axel-Rasmussen/Add-rwsem-contended-hook-API-and-mmap_lock-histograms/20200619-062340
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git c935cd62d3fe985d7f0ebea185d2759e8992e96f
config: s390-randconfig-r005-20200619 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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
# install s390 cross compiling tool for clang build
# apt-get install binutils-s390-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
^
In file included from kernel/trace/trace_events_hist.c:22:
In file included from kernel/trace/trace_synth.h:5:
In file included from kernel/trace/trace_dynevent.h:14:
In file included from kernel/trace/trace.h:9:
In file included from include/linux/clocksource.h:21:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
^
In file included from kernel/trace/trace_events_hist.c:22:
In file included from kernel/trace/trace_synth.h:5:
In file included from kernel/trace/trace_dynevent.h:14:
In file included from kernel/trace/trace.h:9:
In file included from include/linux/clocksource.h:21:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0xff000000UL) >> 24)))
^
In file included from kernel/trace/trace_events_hist.c:22:
In file included from kernel/trace/trace_synth.h:5:
In file included from kernel/trace/trace_dynevent.h:14:
In file included from kernel/trace/trace.h:9:
In file included from include/linux/clocksource.h:21:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
__fswab32(x))
^
In file included from kernel/trace/trace_events_hist.c:22:
In file included from kernel/trace/trace_synth.h:5:
In file included from kernel/trace/trace_dynevent.h:14:
In file included from kernel/trace/trace.h:9:
In file included from include/linux/clocksource.h:21:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:46: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew(cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:46: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel(cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
In file included from kernel/trace/trace_events_hist.c:22:
In file included from kernel/trace/trace_synth.h:5:
In file included from kernel/trace/trace_dynevent.h:14:
>> kernel/trace/trace.h:682:30: error: no member named 'trace_recursion' in 'struct task_struct'
unsigned int val = current->trace_recursion;
~~~~~~~ ^
kernel/trace/trace.h:694:11: error: no member named 'trace_recursion' in 'struct task_struct'
current->trace_recursion = val;
~~~~~~~ ^
kernel/trace/trace.h:702:30: error: no member named 'trace_recursion' in 'struct task_struct'
unsigned int val = current->trace_recursion;
~~~~~~~ ^
kernel/trace/trace.h:711:11: error: no member named 'trace_recursion' in 'struct task_struct'
current->trace_recursion = val;
~~~~~~~ ^
>> kernel/trace/trace_events_hist.c:834:3: error: implicit declaration of function 'trace_array_put' [-Werror,-Wimplicit-function-declaration]
trace_array_put(tr);
^
kernel/trace/trace_events_hist.c:834:3: note: did you mean 'trace_array_get'?
kernel/trace/trace.h:384:12: note: 'trace_array_get' declared here
extern int trace_array_get(struct trace_array *tr);
^
kernel/trace/trace_events_hist.c:860:2: error: implicit declaration of function 'trace_array_put' [-Werror,-Wimplicit-function-declaration]
trace_array_put(tr);
^
20 warnings and 6 errors generated.
vim +682 kernel/trace/trace.h
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 679
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 680 static __always_inline int trace_test_and_set_recursion(int start, int max)
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 681 {
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 @682 unsigned int val = current->trace_recursion;
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 683 int bit;
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 684
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 685 /* A previous recursion check was made */
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 686 if ((val & TRACE_CONTEXT_MASK) > max)
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 687 return 0;
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 688
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 689 bit = trace_get_context_bit() + start;
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 690 if (unlikely(val & (1 << bit)))
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 691 return -1;
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 692
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 693 val |= 1 << bit;
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 694 current->trace_recursion = val;
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 695 barrier();
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 696
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 697 return bit;
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 698 }
edc15cafcbfa3d7 Steven Rostedt 2012-11-02 699
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 19303 bytes --]
next prev parent reply other threads:[~2020-06-19 19:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-18 22:22 [RFC PATCH v3 0/1] Add rwsem "contended hook" API and mmap_lock histograms Axel Rasmussen
2020-06-18 22:22 ` [RFC PATCH v3 1/1] mmap_lock: add tracepoints around mmap_lock acquisition Axel Rasmussen
2020-06-19 8:29 ` Peter Zijlstra
2020-06-19 8:30 ` Peter Zijlstra
2020-06-19 16:28 ` Axel Rasmussen
2020-06-25 20:25 ` Axel Rasmussen
2020-06-19 19:17 ` kernel test robot [this message]
2020-09-08 11:41 ` Yafang Shao
2020-09-09 16:25 ` Axel Rasmussen
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=202006200350.dqXAc7Tv%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.