On Wed, 25 Jun 2025 04:39:46 -0700 Breno Leitao wrote: > From: Jakub Kicinski <k...@kernel.org> > > bpftrace is very useful for low level driver testing. perf or trace-cmd > would also do for collecting data from tracepoints, but they require > much more post-processing. > > Add a wrapper for running bpftrace and sanitizing its output. > bpftrace has JSON output, which is great, but it prints loose objects > and in a slightly inconvenient format. We have to read the objects > line by line, and while at it return them indexed by the map name.
Could you squash this in? Otherwise pylint can't find it diff --git a/tools/testing/selftests/drivers/net/lib/py/__init__.py b/tools/testing/selftests/drivers/net/lib/py/__init__.py index 9ed1d8f70524..98829a0f7a02 100644 --- a/tools/testing/selftests/drivers/net/lib/py/__init__.py +++ b/tools/testing/selftests/drivers/net/lib/py/__init__.py @@ -14,7 +14,8 @@ KSFT_DIR = (Path(__file__).parent / "../../../..").resolve() from net.lib.py import EthtoolFamily, NetdevFamily, NetshaperFamily, \ NlError, RtnlFamily from net.lib.py import CmdExitFailure - from net.lib.py import bkg, cmd, defer, ethtool, fd_read_timeout, ip, \ + from net.lib.py import bkg, cmd, bpftrace, defer, ethtool, \ + fd_read_timeout, ip, \ rand_port, tool, wait_port_listen from net.lib.py import fd_read_timeout from net.lib.py import KsftSkipEx, KsftFailEx, KsftXfailEx and with that I think it should be possible to make pylint clean on the past patch?