Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752473AbdLJPcX (ORCPT ); Sun, 10 Dec 2017 10:32:23 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35980 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752418AbdLJPcQ (ORCPT ); Sun, 10 Dec 2017 10:32:16 -0500 X-Google-Smtp-Source: AGs4zMbFeLawi9zMSABynxyhdUGrrQBaXy8HD/HELbJrOP/mLnPku7hLavEXnwb0Vi74F22OaXwjxg== From: Yafang Shao To: davem@davemloft.net, songliubraving@fb.com, marcelo.leitner@gmail.com Cc: edumazet@google.com, xiyou.wangcong@gmail.com, mingo@redhat.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, rostedt@goodmis.org, bgregg@netflix.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Yafang Shao Subject: [PATCH net-next 2/3] net:tracepoint: using sock_set_state tracepoint to trace DCCP state transition Date: Sun, 10 Dec 2017 23:31:43 +0800 Message-Id: <1512919904-14166-3-git-send-email-laoar.shao@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1512919904-14166-1-git-send-email-laoar.shao@gmail.com> References: <1512919904-14166-1-git-send-email-laoar.shao@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 625 Lines: 23 With changes in inet_ files, DCCP state transitions are traced with sock_set_state tracepoint. Signed-off-by: Yafang Shao --- net/dccp/proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/dccp/proto.c b/net/dccp/proto.c index b68168f..92b9613 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c @@ -110,7 +110,7 @@ void dccp_set_state(struct sock *sk, const int state) /* Change state AFTER socket is unhashed to avoid closed * socket sitting in hash tables. */ - sk->sk_state = state; + sk_set_state(sk, state); } EXPORT_SYMBOL_GPL(dccp_set_state); -- 1.8.3.1