net: tcp: Add trace events for TCP congestion window tracing
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 29 Dec 2017 02:45:51 +0000 (11:45 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2018 19:27:29 +0000 (14:27 -0500)
commitc3fde1bd28f7c720d7bc587e85e54706df4f8163
tree88de466d3c6836c14ed99be75d4cc49249540d43
parent4e3b95f1983b2d39dd27349d83ffc520aab3516d
net: tcp: Add trace events for TCP congestion window tracing

This adds an event to trace TCP stat variables with
slightly intrusive trace-event. This uses ftrace/perf
event log buffer to trace those state, no needs to
prepare own ring-buffer, nor custom user apps.

User can use ftrace to trace this event as below;

  # cd /sys/kernel/debug/tracing
  # echo 1 > events/tcp/tcp_probe/enable
  (run workloads)
  # cat trace

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/tcp.h
net/ipv4/tcp_input.c