From: David S. Miller Date: Tue, 29 Jun 2021 18:28:21 +0000 (-0700) Subject: Merge branch 'inet-sk_error-tracers' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c79fa61c94f7a7aa7a185509fca1e1ae5c44ab23;p=linux.git Merge branch 'inet-sk_error-tracers' Alexander Aring says: ==================== net: sock: add tracers for inet socket errors this patch series introduce tracers for sk_error_report socket callback calls. The use-case is that a user space application can monitor them and making an own heuristic about bad peer connections even over a socket lifetime. To make a specific example it could be use in the Linux cluster world to fence a "bad" behaving node. For now it's okay to only trace inet sockets. Other socket families can introduce their own tracers easily. Example output with trace-cmd: -0 [003] 201.799437: inet_sk_error_report: family=AF_INET protocol=IPPROTO_TCP sport=21064 dport=38941 saddr=192.168.122.57 daddr=192.168.122.251 saddrv6=::ffff:192.168.122.57 daddrv6=::ffff:192.168.122.251 error=104 - Alex changes since v2: - change "sk.sk_error_report(&ipc->sk);" to "sk_error_report(&ipc->sk);" in net/qrtr/qrtr.c ==================== Signed-off-by: David S. Miller --- c79fa61c94f7a7aa7a185509fca1e1ae5c44ab23