net: sctp: Add SCTP ACK tracking trace event
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 29 Dec 2017 02:46:51 +0000 (11:46 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2018 19:27:29 +0000 (14:27 -0500)
commit103d750c88fe6b42dbe7abc4d204027f343ee125
tree6cc0c0413e16d6ae73f578f14ca3bff1e76e2e26
parent6987990c3e16b01f9a4805cb1d1292381e9d6bff
net: sctp: Add SCTP ACK tracking trace event

Add SCTP ACK tracking trace event to trace the changes of SCTP
association state in response to incoming packets.
It is used for debugging SCTP congestion control algorithms,
and will replace sctp_probe module.

Note that this event a bit tricky. Since this consists of 2
events (sctp_probe and sctp_probe_path) so you have to enable
both events as below.

  # cd /sys/kernel/debug/tracing
  # echo 1 > events/sctp/sctp_probe/enable
  # echo 1 > events/sctp/sctp_probe_path/enable

Or, you can enable all the events under sctp.

  # echo 1 > events/sctp/enable

Since sctp_probe_path event is always invoked from sctp_probe
event, you can not see any output if you only enable
sctp_probe_path.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/sctp.h [new file with mode: 0644]
net/sctp/sm_statefuns.c