On 9/24/20 12:19 PM, Wolfgang Grandegger wrote: > > Am 24.09.20 um 11:53 schrieb Marc Kleine-Budde: >> On 9/24/20 11:41 AM, Wolfgang Grandegger wrote: >>> Hello, >>> >>> candump can monitor the count of dropped RX messages if the socket >>> buffer if full with the option "-d". Is there also a command to list >>> that drop count of a certain socket, e.g. "ss"? >> >> I haven't tested it, but what about "ss -m" >> >>> -m, --memory >>> Show socket memory usage. The output format is: >>> >>> skmem:(r<rmem_alloc>,rb<rcv_buf>,t<wmem_alloc>,tb<snd_buf>, >>> f<fwd_alloc>,w<wmem_queued>,o<opt_mem>, >>> bl<back_log>,d<sock_drop>) > > Hm, the TCP sockets report such a line but I cannot find my CAN socket > in there opened by "candump": > > # ss -p| grep candump > > "ss" seams not (yet) to support "AF_CAN" sockets :(. Looks like a patch opportunity :D Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: OpenPGP digital signature