From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masami Hiramatsu Subject: Re: [PATCH -tip v3 3/6] net: sctp: Add SCTP ACK tracking trace event Date: Wed, 20 Dec 2017 10:05:02 +0900 Message-ID: <20171220100502.a8d23392147340437142efb7@kernel.org> References: <151367381480.32364.2659143894655716709.stgit@devbox> <151367390483.32364.4432870291926458046.stgit@devbox> <20171219102024.09a92c75@gandalf.local.home> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Ingo Molnar , Ian McDonald , Vlad Yasevich , Stephen Hemminger , Peter Zijlstra , Thomas Gleixner , LKML , "H . Peter Anvin" , Gerrit Renker , "David S . Miller" , Neil Horman , dccp@vger.kernel.org, netdev@vger.kernel.org, linux-sctp@vger.kernel.org, Stephen Rothwell To: Steven Rostedt Return-path: In-Reply-To: <20171219102024.09a92c75@gandalf.local.home> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Tue, 19 Dec 2017 10:20:24 -0500 Steven Rostedt wrote: > On Tue, 19 Dec 2017 17:58:25 +0900 > Masami Hiramatsu wrote: > > > +TRACE_EVENT(sctp_probe, > > + > > + TP_PROTO(const struct sctp_endpoint *ep, > > + const struct sctp_association *asoc, > > + struct sctp_chunk *chunk), > > + > > + TP_ARGS(ep, asoc, chunk), > > + > > + TP_STRUCT__entry( > > + __field(__u64, asoc) > > + __field(__u32, mark) > > + __field(__u16, bind_port) > > + __field(__u16, peer_port) > > + __field(__u32, pathmtu) > > + __field(__u32, rwnd) > > + __field(__u16, unack_data) > > + ), > > + > > + TP_fast_assign( > > + struct sctp_transport *sp; > > + struct sk_buff *skb = chunk->skb; > > + > > + __entry->asoc = (__u64)asoc; > > + __entry->mark = skb->mark; > > + __entry->bind_port = ep->base.bind_addr.port; > > + __entry->peer_port = asoc->peer.port; > > + __entry->pathmtu = asoc->pathmtu; > > + __entry->rwnd = asoc->peer.rwnd; > > + __entry->unack_data = asoc->unack_data; > > + > > + if (trace_sctp_probe_path_enabled()) { > > + list_for_each_entry(sp, &asoc->peer.transport_addr_list, > > + transports) { > > + trace_sctp_probe_path(sp, asoc); > > + } > > + } > > I thought you were going to move this into the code, like I suggested? Ah, I missed to define sp in the block... Thanks, > > -- Steve > > > + ), > > + > > + TP_printk("asoc=%#llx mark=%#x bind_port=%d peer_port=%d pathmtu=%d " > > + "rwnd=%u unack_data=%d", > > + __entry->asoc, __entry->mark, __entry->bind_port, > > + __entry->peer_port, __entry->pathmtu, __entry->rwnd, > > + __entry->unack_data) > > +); > > + -- Masami Hiramatsu