| db7f9ec2 | 20-Oct-2021 |
Kevin Laatz <[email protected]> |
usertools/devbind: move idxd device ID to DMA class
The dmadev library is the preferred abstraction for using IDXD devices and will replace the rawdev implementation in future. This patch moves the
usertools/devbind: move idxd device ID to DMA class
The dmadev library is the preferred abstraction for using IDXD devices and will replace the rawdev implementation in future. This patch moves the IDXD device ID to the dmadev class.
Signed-off-by: Kevin Laatz <[email protected]> Reviewed-by: Conor Walsh <[email protected]> Acked-by: Bruce Richardson <[email protected]>
show more ...
|
| b95af194 | 14-Oct-2021 |
Bruce Richardson <[email protected]> |
usertools/telemetry: provide info on available sockets
When a user runs the dpdk-telemetry script and fails to connect because the socket path does not exist, run a scan for possible sockets that co
usertools/telemetry: provide info on available sockets
When a user runs the dpdk-telemetry script and fails to connect because the socket path does not exist, run a scan for possible sockets that could be connected to and inform the user of the command needed to connect to those.
For example:
$ ./dpdk-telemetry.py -i4 Connecting to /run/user/1000/dpdk/rte/dpdk_telemetry.v2:4 Error connecting to /run/user/1000/dpdk/rte/dpdk_telemetry.v2:4
Other DPDK telemetry sockets found: - dpdk_telemetry.v2 # Connect with './dpdk-telemetry.py' - dpdk_telemetry.v2:2 # Connect with './dpdk-telemetry.py -i 2' - dpdk_telemetry.v2:1 # Connect with './dpdk-telemetry.py -i 1'
Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Ciara Power <[email protected]> Reviewed-by: Conor Walsh <[email protected]>
show more ...
|
| 72727e0d | 13-Sep-2021 |
Bruce Richardson <[email protected]> |
usertools: silence prompts for telemetry input pipe
When the input to the script is coming from a device which is not a TTY then we become less verbose and skip the prompts and helpful messages abou
usertools: silence prompts for telemetry input pipe
When the input to the script is coming from a device which is not a TTY then we become less verbose and skip the prompts and helpful messages about what is happening.
Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Ciara Power <[email protected]>
show more ...
|
| 744e9a87 | 13-Sep-2021 |
Bruce Richardson <[email protected]> |
usertools: fix handling EOF for telemetry input pipe
To allow the script to take queries from input pipes e.g. "echo /ethdev/stats,0 | dpdk-telemetry.py", we need to handle the case of EOF correctly
usertools: fix handling EOF for telemetry input pipe
To allow the script to take queries from input pipes e.g. "echo /ethdev/stats,0 | dpdk-telemetry.py", we need to handle the case of EOF correctly without crashing with an exception. Do this by using a try-except block around the input handling.
Fixes: 6a2967c112a3 ("usertools: add new telemetry script") Cc: [email protected]
Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Ciara Power <[email protected]>
show more ...
|
| defd7f5a | 08-Mar-2021 |
Thomas Monjalon <[email protected]> |
usertools: show hugepages requested/set on failure
In case the number of requested hugepages cannot be set, a more detailed error message is printed. The new message does not mention "reserve" becau
usertools: show hugepages requested/set on failure
In case the number of requested hugepages cannot be set, a more detailed error message is printed. The new message does not mention "reserve" because setting can be reserving or clearing. The filename and numbers requested/set are printed to ease debugging.
Signed-off-by: Thomas Monjalon <[email protected]>
show more ...
|
| 01ae049d | 21-Mar-2021 |
Thomas Monjalon <[email protected]> |
usertools: check 0-division with hugepage size
The default page size can be None, and the page size from user request can be 0 kB if lower than 1024. In these cases, a division will fail. In order t
usertools: check 0-division with hugepage size
The default page size can be None, and the page size from user request can be 0 kB if lower than 1024. In these cases, a division will fail. In order to avoid a Python exception, the page size is checked and an error message "Invalid page size" is printed.
A similar error message is printed in set_hugepages() if the size is not supported, except at this stage the message can be completed with "Valid page sizes". Unfortunately the first check is too early to print such information.
A third error message can be printed in a different place (get_memsize) in case of a format issue, e.g. a negative size. The function get_memsize() is also used for total requested size, so the error message "not a valid page size" was potentially wrong. This message is replaced with the more general "is not a valid size".
Signed-off-by: Thomas Monjalon <[email protected]> Acked-by: Stephen Hemminger <[email protected]> Acked-by: Anatoly Burakov <[email protected]>
show more ...
|
| d786e30e | 16-Feb-2021 |
Bruce Richardson <[email protected]> |
usertools: print process name when telemetry connects
When the dpdk-telemetry client connects to a DPDK instance, we can use the PID provided in the initial connection message to query from /proc th
usertools: print process name when telemetry connects
When the dpdk-telemetry client connects to a DPDK instance, we can use the PID provided in the initial connection message to query from /proc the name of the process we are connected to, and display that to the user. We use the "cmdline" procfs entry for the query since that is available on both Linux and FreeBSD (assuming procfs is mounted on the BSD instance).
Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Anatoly Burakov <[email protected]> Acked-by: Kevin Laatz <[email protected]>
show more ...
|