From: kernel test robot <lkp@intel.com>
To: Ciara Loftus <ciara.loftus@intel.com>,
netdev@vger.kernel.org, bpf@vger.kernel.org,
magnus.karlsson@intel.com, bjorn@kernel.org,
weqaar.a.janjua@intel.com
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
daniel@iogearbox.net, Ciara Loftus <ciara.loftus@intel.com>
Subject: Re: [PATCH bpf-next v3 1/6] xsk: add tracepoints for packet drops
Date: Wed, 3 Feb 2021 04:16:12 +0800 [thread overview]
Message-ID: <202102030403.xMGQQUm4-lkp@intel.com> (raw)
In-Reply-To: <20210202133642.8562-2-ciara.loftus@intel.com>
[-- Attachment #1: Type: text/plain, Size: 7117 bytes --]
Hi Ciara,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Ciara-Loftus/AF_XDP-Packet-Drop-Tracing/20210203-020056
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: arm-randconfig-r015-20210202 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 275c6af7d7f1ed63a03d05b4484413e447133269)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/0day-ci/linux/commit/8566dfd5799adb0033d56bc33146947b9469c362
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ciara-Loftus/AF_XDP-Packet-Drop-Tracing/20210203-020056
git checkout 8566dfd5799adb0033d56bc33146947b9469c362
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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/bpf/core.c:1350:12: warning: no previous prototype for function 'bpf_probe_read_kernel' [-Wmissing-prototypes]
u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
^
kernel/bpf/core.c:1350:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
^
static
In file included from kernel/bpf/core.c:2361:
In file included from include/linux/bpf_trace.h:6:
In file included from include/trace/events/xsk.h:73:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:401:
>> include/trace/events/xsk.h:65:34: warning: format specifies type 'unsigned long' but the argument has type 'u64' (aka 'unsigned long long') [-Wformat]
print_val1(__entry->reason), __entry->val1,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
include/trace/trace_events.h:263:17: note: expanded from macro '__entry'
#define __entry field
^
include/trace/trace_events.h:266:43: note: expanded from macro 'TP_printk'
#define TP_printk(fmt, args...) fmt "\n", args
~~~ ^
include/trace/trace_events.h:80:16: note: expanded from macro 'TRACE_EVENT'
PARAMS(print)); \
~~~~~~~^~~~~~~
include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
#define PARAMS(args...) args
^~~~
include/trace/trace_events.h:367:22: note: expanded from macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
In file included from kernel/bpf/core.c:2361:
In file included from include/linux/bpf_trace.h:6:
In file included from include/trace/events/xsk.h:73:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:401:
include/trace/events/xsk.h:66:34: warning: format specifies type 'unsigned long' but the argument has type 'u64' (aka 'unsigned long long') [-Wformat]
print_val2(__entry->reason), __entry->val2,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
include/trace/trace_events.h:263:17: note: expanded from macro '__entry'
#define __entry field
^
include/trace/trace_events.h:266:43: note: expanded from macro 'TP_printk'
#define TP_printk(fmt, args...) fmt "\n", args
~~~ ^
include/trace/trace_events.h:80:16: note: expanded from macro 'TRACE_EVENT'
PARAMS(print)); \
~~~~~~~^~~~~~~
include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
#define PARAMS(args...) args
^~~~
include/trace/trace_events.h:367:22: note: expanded from macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
In file included from kernel/bpf/core.c:2361:
In file included from include/linux/bpf_trace.h:6:
In file included from include/trace/events/xsk.h:73:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:401:
include/trace/events/xsk.h:67:34: warning: format specifies type 'unsigned long' but the argument has type 'u64' (aka 'unsigned long long') [-Wformat]
print_val3(__entry->reason), __entry->val3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
include/trace/trace_events.h:263:17: note: expanded from macro '__entry'
#define __entry field
^
include/trace/trace_events.h:266:43: note: expanded from macro 'TP_printk'
#define TP_printk(fmt, args...) fmt "\n", args
~~~ ^
include/trace/trace_events.h:80:16: note: expanded from macro 'TRACE_EVENT'
PARAMS(print)); \
~~~~~~~^~~~~~~
include/linux/tracepoint.h:97:25: note: expanded from macro 'PARAMS'
#define PARAMS(args...) args
^~~~
include/trace/trace_events.h:367:22: note: expanded from macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
4 warnings generated.
vim +65 include/trace/events/xsk.h
40
41 TP_PROTO(char *name, u16 queue_id, u32 reason, u64 val1, u64 val2, u64 val3),
42
43 TP_ARGS(name, queue_id, reason, val1, val2, val3),
44
45 TP_STRUCT__entry(
46 __field(char *, name)
47 __field(u16, queue_id)
48 __field(u32, reason)
49 __field(u64, val1)
50 __field(u64, val2)
51 __field(u64, val3)
52 ),
53
54 TP_fast_assign(
55 __entry->name = name;
56 __entry->queue_id = queue_id;
57 __entry->reason = reason;
58 __entry->val1 = val1;
59 __entry->val2 = val2;
60 __entry->val3 = val3;
61 ),
62
63 TP_printk("netdev: %s qid %u reason: %s: %s %lu %s %lu %s %lu",
64 __entry->name, __entry->queue_id, print_reason(__entry->reason),
> 65 print_val1(__entry->reason), __entry->val1,
66 print_val2(__entry->reason), __entry->val2,
67 print_val3(__entry->reason), __entry->val3
68 )
69 );
70
---
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: 33435 bytes --]
next prev parent reply other threads:[~2021-02-02 20:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-02 13:36 [PATCH bpf-next v3 0/6] AF_XDP Packet Drop Tracing Ciara Loftus
2021-02-02 13:36 ` [PATCH bpf-next v3 1/6] xsk: add tracepoints for packet drops Ciara Loftus
2021-02-02 20:02 ` kernel test robot
2021-02-02 20:16 ` kernel test robot [this message]
2021-02-02 13:36 ` [PATCH bpf-next v3 2/6] selftests/bpf: restructure setting the packet count Ciara Loftus
2021-02-02 13:36 ` [PATCH bpf-next v3 3/6] selftests/bpf: add framework for xsk selftests Ciara Loftus
2021-02-02 13:36 ` [PATCH bpf-next v3 4/6] selftests/bpf: XSK_TRACE_DROP_PKT_TOO_BIG test Ciara Loftus
2021-02-02 13:36 ` [PATCH bpf-next v3 5/6] selftests/bpf: XSK_TRACE_INVALID_FILLADDR test Ciara Loftus
2021-02-02 13:36 ` [PATCH bpf-next v3 6/6] selftests/bpf: XSK_TRACE_INVALID_DESC_TX test Ciara Loftus
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=202102030403.xMGQQUm4-lkp@intel.com \
--to=lkp@intel.com \
--cc=bjorn@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=ciara.loftus@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=daniel@iogearbox.net \
--cc=kbuild-all@lists.01.org \
--cc=magnus.karlsson@intel.com \
--cc=netdev@vger.kernel.org \
--cc=weqaar.a.janjua@intel.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;
as well as URLs for NNTP newsgroup(s).