From mboxrd@z Thu Jan 1 00:00:00 1970 From: Song Liu Subject: Re: [PATCH net-next 0/6] add a set of tracepoints to tcp stack Date: Fri, 20 Oct 2017 21:32:54 +0000 Message-ID: <38F68953-8C9B-4CB7-AA03-0DF58A24CE0B@fb.com> References: <20171020212046.577888-1-songliubraving@fb.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "alexei.starovoitov@gmail.com" , "liu.song.a23@gmail.com" , Eric Dumazet , "hannes@stressinduktion.org" , "brendan.d.gregg@gmail.com" , "ncardwell@google.com" , David Ahern , Kernel Team , "xiyou.wangcong@gmail.com" To: "netdev@vger.kernel.org" , "davem@davemloft.net" Return-path: Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:56032 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752346AbdJTVdH (ORCPT ); Fri, 20 Oct 2017 17:33:07 -0400 In-Reply-To: <20171020212046.577888-1-songliubraving@fb.com> Content-Language: en-US Content-ID: <9CEFFA400374AB4DAFCA3F7D02F6A3DC@namprd15.prod.outlook.com> Sender: netdev-owner@vger.kernel.org List-ID: CCing key audience of these patches.=20 I am really sorry if I have spammed your inbox multiple times with=20 the same set of patches. I have been struggling to get git-send-email sending email to netdev. The only solution I found is to be reduce CC=20 list. Best Regards, Song > On Oct 20, 2017, at 2:20 PM, Song Liu wrote: >=20 > Resending the patch set as there were something wrong with my email > server. >=20 > These patches add the following tracepoints to tcp stack. >=20 > tcp_send_reset > tcp_receive_reset > tcp_destroy_sock > tcp_set_state >=20 > These tracepoints can be used to track TCP state changes. Such state > changes include but are not limited to: connection establish, > connection termination, tx and rx of RST, various retransmits. >=20 > Currently, we use the following kprobes to trace these events: >=20 > int kprobe__tcp_validate_incoming > int kprobe__tcp_send_active_reset > int kprobe__tcp_v4_send_reset > int kprobe__tcp_v6_send_reset > int kprobe__tcp_v4_destroy_sock > int kprobe__tcp_set_state > int kprobe__tcp_retransmit_skb >=20 > These tracepoints will help us simplify this work. >=20 > Thanks, > Song >=20 > Song Liu (6): > tcp: add trace event class tcp_event_sk_skb > tcp: mark trace event arguments sk and skb as const > tcp: add tracepoint trace_tcp_send_reset > tcp: add tracepoint trace_tcp_receive_reset > tcp: add tracepoint trace_tcp_destroy_sock > tcp: add tracepoint trace_tcp_set_state() >=20 > include/trace/events/tcp.h | 181 ++++++++++++++++++++++++++++++++++++++++= ++++- > net/ipv4/tcp.c | 4 + > net/ipv4/tcp_input.c | 3 + > net/ipv4/tcp_ipv4.c | 8 +- > net/ipv4/tcp_output.c | 5 ++ > net/ipv6/tcp_ipv6.c | 10 ++- > 6 files changed, 204 insertions(+), 7 deletions(-) >=20 > -- > 2.9.5