summaryrefslogtreecommitdiffstats
path: root/net/dccp/proto.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2017-12-29 11:47:55 +0900
committerDavid S. Miller <davem@davemloft.net>2018-01-02 14:27:30 -0500
commitee549be6f061188f306133e3a66ce3d3c6758811 (patch)
treee7a89d34f4eea551ab552240b4dc531382dd6731 /net/dccp/proto.c
parentfa4475f79251a0539e64c08b8b039be23d107dc9 (diff)
downloadlinux-stable-ee549be6f061188f306133e3a66ce3d3c6758811.tar.gz
linux-stable-ee549be6f061188f306133e3a66ce3d3c6758811.tar.bz2
linux-stable-ee549be6f061188f306133e3a66ce3d3c6758811.zip
net: dccp: Add DCCP sendmsg trace event
Add DCCP sendmsg trace event (dccp/dccp_probe) for replacing dccpprobe. User can trace this event via ftrace or perftools. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r--net/dccp/proto.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index 7a75a1d3568b..fa7e92e08920 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -38,6 +38,9 @@
#include "dccp.h"
#include "feat.h"
+#define CREATE_TRACE_POINTS
+#include "trace.h"
+
DEFINE_SNMP_STAT(struct dccp_mib, dccp_statistics) __read_mostly;
EXPORT_SYMBOL_GPL(dccp_statistics);
@@ -761,6 +764,8 @@ int dccp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
int rc, size;
long timeo;
+ trace_dccp_probe(sk, len);
+
if (len > dp->dccps_mss_cache)
return -EMSGSIZE;