net: sock: add trace for socket errors
authorAlexander Aring <aahringo@redhat.com>
Sun, 27 Jun 2021 22:48:22 +0000 (18:48 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jun 2021 18:28:21 +0000 (11:28 -0700)
commite6a3e4434000de5c36d606e5b5da5f7ba49444bd
treee9b4fecafa57b087fc3c3692c9c6ac9bf6d07311
parente3ae2365efc14269170a6326477e669332271ab3
net: sock: add trace for socket errors

This patch will add tracers to trace inet socket errors only. A user
space monitor application can track connection errors indepedent from
socket lifetime and do additional handling. For example a cluster
manager can fence a node if errors occurs in a specific heuristic.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/sock.h
net/core/sock.c