Re: [PATCH bpf-next 2/3] samples: bpf: count syscalls in xdpsock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 10/2/20 6:36 AM, Ciara Loftus wrote:
Categorise and record syscalls issued in the xdpsock sample app. The
categories recorded are:

   rx_empty_polls:    polls when the rx ring is empty
   fill_fail_polls:   polls when failed to get addr from fill ring
   copy_tx_sendtos:   sendtos issued for tx when copy mode enabled
   tx_wakeup_sendtos: sendtos issued when tx ring needs waking up
   opt_polls:         polls issued since the '-p' flag is set

Print the stats using '-a' on the xdpsock command line.

Signed-off-by: Ciara Loftus <ciara.loftus@xxxxxxxxx>

I am not a xdp expert and cannot really judge whether such additional
stats will be useful or not. Beyond that the patch looks good to me.

Acked-by: Yonghong Song <yhs@xxxxxx>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux