]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit41105923555ca56658aab2f97a643ebb76fdc221
tree6cc0c0413e16d6ae73f578f14ca3bff1e76e2e26
parent8239d8924060305103181b2122506fb3f5aa2b39
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