[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201710190141.KljBueu4%fengguang.wu@intel.com>
Date: Thu, 19 Oct 2017 01:16:44 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: David Ahern <dsahern@...il.com>
Cc: kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 299/301] include/trace/events/tcp.h:12:1: note: in
expansion of macro 'TRACE_EVENT'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: b9f1f1ce866c28e3d9b86202441b220244754a69
commit: 386fd5da401dc6c4b0ab6a54d333609876b699fe [299/301] tcp: Check daddr_cache before use in tracepoint
config: x86_64-kexec (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 386fd5da401dc6c4b0ab6a54d333609876b699fe
# save the attached .config to linux build tree
make ARCH=x86_64
All error/warnings (new ones prefixed by >>):
In file included from include/trace/define_trace.h:95:0,
from include/trace/events/tcp.h:68,
from net/core/net-traces.c:34:
include/trace/events/tcp.h: In function 'trace_event_raw_event_tcp_retransmit_skb':
>> include/net/sock.h:348:36: error: 'struct sock_common' has no member named 'skc_v6_rcv_saddr'; did you mean 'skc_rcv_saddr'?
#define sk_v6_rcv_saddr __sk_common.skc_v6_rcv_saddr
^
include/trace/trace_events.h:718:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:77:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
>> include/trace/events/tcp.h:12:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(tcp_retransmit_skb,
^~~~~~~~~~~
>> include/trace/events/tcp.h:29:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
>> include/trace/events/tcp.h:49:16: note: in expansion of macro 'sk_v6_rcv_saddr'
*pin6 = sk->sk_v6_rcv_saddr;
^~~~~~~~~~~~~~~
>> include/net/sock.h:347:33: error: 'struct sock_common' has no member named 'skc_v6_daddr'; did you mean 'skc_daddr'?
#define sk_v6_daddr __sk_common.skc_v6_daddr
^
include/trace/trace_events.h:718:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:77:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
>> include/trace/events/tcp.h:12:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(tcp_retransmit_skb,
^~~~~~~~~~~
>> include/trace/events/tcp.h:29:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
>> include/trace/events/tcp.h:51:16: note: in expansion of macro 'sk_v6_daddr'
*pin6 = sk->sk_v6_daddr;
^~~~~~~~~~~
In file included from include/trace/define_trace.h:96:0,
from include/trace/events/tcp.h:68,
from net/core/net-traces.c:34:
include/trace/events/tcp.h: In function 'perf_trace_tcp_retransmit_skb':
>> include/net/sock.h:348:36: error: 'struct sock_common' has no member named 'skc_v6_rcv_saddr'; did you mean 'skc_rcv_saddr'?
#define sk_v6_rcv_saddr __sk_common.skc_v6_rcv_saddr
^
include/trace/perf.h:65:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:77:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
>> include/trace/events/tcp.h:12:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(tcp_retransmit_skb,
^~~~~~~~~~~
>> include/trace/events/tcp.h:29:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
>> include/trace/events/tcp.h:49:16: note: in expansion of macro 'sk_v6_rcv_saddr'
*pin6 = sk->sk_v6_rcv_saddr;
^~~~~~~~~~~~~~~
>> include/net/sock.h:347:33: error: 'struct sock_common' has no member named 'skc_v6_daddr'; did you mean 'skc_daddr'?
#define sk_v6_daddr __sk_common.skc_v6_daddr
^
include/trace/perf.h:65:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/trace_events.h:77:9: note: in expansion of macro 'PARAMS'
PARAMS(assign), \
^~~~~~
>> include/trace/events/tcp.h:12:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(tcp_retransmit_skb,
^~~~~~~~~~~
>> include/trace/events/tcp.h:29:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
>> include/trace/events/tcp.h:51:16: note: in expansion of macro 'sk_v6_daddr'
*pin6 = sk->sk_v6_daddr;
^~~~~~~~~~~
vim +/TRACE_EVENT +12 include/trace/events/tcp.h
e086101b Cong Wang 2017-10-13 11
e086101b Cong Wang 2017-10-13 @12 TRACE_EVENT(tcp_retransmit_skb,
e086101b Cong Wang 2017-10-13 13
e086101b Cong Wang 2017-10-13 14 TP_PROTO(struct sock *sk, struct sk_buff *skb),
e086101b Cong Wang 2017-10-13 15
e086101b Cong Wang 2017-10-13 16 TP_ARGS(sk, skb),
e086101b Cong Wang 2017-10-13 17
e086101b Cong Wang 2017-10-13 18 TP_STRUCT__entry(
e086101b Cong Wang 2017-10-13 19 __field(void *, skbaddr)
e086101b Cong Wang 2017-10-13 20 __field(void *, skaddr)
e086101b Cong Wang 2017-10-13 21 __field(__u16, sport)
e086101b Cong Wang 2017-10-13 22 __field(__u16, dport)
e086101b Cong Wang 2017-10-13 23 __array(__u8, saddr, 4)
e086101b Cong Wang 2017-10-13 24 __array(__u8, daddr, 4)
e086101b Cong Wang 2017-10-13 25 __array(__u8, saddr_v6, 16)
e086101b Cong Wang 2017-10-13 26 __array(__u8, daddr_v6, 16)
e086101b Cong Wang 2017-10-13 27 ),
e086101b Cong Wang 2017-10-13 28
e086101b Cong Wang 2017-10-13 @29 TP_fast_assign(
e086101b Cong Wang 2017-10-13 30 struct inet_sock *inet = inet_sk(sk);
e086101b Cong Wang 2017-10-13 31 struct in6_addr *pin6;
e086101b Cong Wang 2017-10-13 32 __be32 *p32;
e086101b Cong Wang 2017-10-13 33
e086101b Cong Wang 2017-10-13 34 __entry->skbaddr = skb;
e086101b Cong Wang 2017-10-13 35 __entry->skaddr = sk;
e086101b Cong Wang 2017-10-13 36
e086101b Cong Wang 2017-10-13 37 __entry->sport = ntohs(inet->inet_sport);
e086101b Cong Wang 2017-10-13 38 __entry->dport = ntohs(inet->inet_dport);
e086101b Cong Wang 2017-10-13 39
e086101b Cong Wang 2017-10-13 40 p32 = (__be32 *) __entry->saddr;
e086101b Cong Wang 2017-10-13 41 *p32 = inet->inet_saddr;
e086101b Cong Wang 2017-10-13 42
e086101b Cong Wang 2017-10-13 43 p32 = (__be32 *) __entry->daddr;
e086101b Cong Wang 2017-10-13 44 *p32 = inet->inet_daddr;
e086101b Cong Wang 2017-10-13 45
386fd5da David Ahern 2017-10-16 46 /* IPv6 socket ? */
386fd5da David Ahern 2017-10-16 47 if (inet6_sk(sk)) {
e086101b Cong Wang 2017-10-13 48 pin6 = (struct in6_addr *)__entry->saddr_v6;
386fd5da David Ahern 2017-10-16 @49 *pin6 = sk->sk_v6_rcv_saddr;
e086101b Cong Wang 2017-10-13 50 pin6 = (struct in6_addr *)__entry->daddr_v6;
386fd5da David Ahern 2017-10-16 @51 *pin6 = sk->sk_v6_daddr;
e086101b Cong Wang 2017-10-13 52 } else {
e086101b Cong Wang 2017-10-13 53 pin6 = (struct in6_addr *)__entry->saddr_v6;
e086101b Cong Wang 2017-10-13 54 ipv6_addr_set_v4mapped(inet->inet_saddr, pin6);
e086101b Cong Wang 2017-10-13 55 pin6 = (struct in6_addr *)__entry->daddr_v6;
e086101b Cong Wang 2017-10-13 56 ipv6_addr_set_v4mapped(inet->inet_daddr, pin6);
e086101b Cong Wang 2017-10-13 57 }
e086101b Cong Wang 2017-10-13 58 ),
e086101b Cong Wang 2017-10-13 59
fb6ff75e David Ahern 2017-10-16 60 TP_printk("sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c",
e086101b Cong Wang 2017-10-13 61 __entry->sport, __entry->dport, __entry->saddr, __entry->daddr,
e086101b Cong Wang 2017-10-13 62 __entry->saddr_v6, __entry->daddr_v6)
e086101b Cong Wang 2017-10-13 63 );
e086101b Cong Wang 2017-10-13 64
:::::: The code at line 12 was first introduced by commit
:::::: e086101b150ae8e99e54ab26101ef3835fa9f48d tcp: add a tracepoint for tcp retransmission
:::::: TO: Cong Wang <xiyou.wangcong@...il.com>
:::::: CC: David S. Miller <davem@...emloft.net>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (26265 bytes)
Powered by blists - more mailing lists