From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753358AbdLTBFL (ORCPT ); Tue, 19 Dec 2017 20:05:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:53420 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751496AbdLTBFH (ORCPT ); Tue, 19 Dec 2017 20:05:07 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 05E8E20671 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=mhiramat@kernel.org Date: Wed, 20 Dec 2017 10:05:02 +0900 From: Masami Hiramatsu To: Steven Rostedt 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 Subject: Re: [PATCH -tip v3 3/6] net: sctp: Add SCTP ACK tracking trace event Message-Id: <20171220100502.a8d23392147340437142efb7@kernel.org> In-Reply-To: <20171219102024.09a92c75@gandalf.local.home> References: <151367381480.32364.2659143894655716709.stgit@devbox> <151367390483.32364.4432870291926458046.stgit@devbox> <20171219102024.09a92c75@gandalf.local.home> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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