aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-plat.c
diff options
context:
space:
mode:
authorDavide Caratti <[email protected]>2025-06-04 16:06:05 +0000
committerMarc Kleine-Budde <[email protected]>2025-06-10 08:23:56 +0000
commit81807451c2a6af59bbc58adfd0da69870c30d4ab (patch)
treea5f1ec7a866594dbd3bd5b18a63451072d419994 /drivers/usb/cdns3/cdns3-plat.c
parentcan: add drop reasons in the receive path of AF_CAN (diff)
downloadkernel-81807451c2a6af59bbc58adfd0da69870c30d4ab.tar.gz
kernel-81807451c2a6af59bbc58adfd0da69870c30d4ab.zip
can: add drop reasons in CAN protocols receive path
sock_queue_rcv_skb() can fail because of lack of memory resources: use drop reasons and pass the receiving socket to the tracepoint, so that it's possible to better locate/debug such events. Tested with: | # modprobe vcan echo=1 | # ip link add name vcan2 type vcan | # ip link set dev vcan2 up | # ./netlayer/tst-proc 1 & | # bg | # while true ; do perf record -e skb:kfree_skb -aR -- \ | > ./raw/tst-raw-sendto vcan2 ; perf script ; done | [...] | tst-raw-sendto 10942 [000] 506428.431856: skb:kfree_skb: skbaddr=0xffff97cec38b4200 rx_sk=0xffff97cf0f75a800 protocol=12 location=raw_rcv+0x20e reason: SOCKET_RCVBUF Signed-off-by: Davide Caratti <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions