Message ID | 20230925092039.d926184d84d7.Ifc837773384c3539f2cd7559f53ddcf6fafa26f4@changeid |
---|---|
State | Accepted |
Headers | show |
Series | tests: some scheduling and other fixes | expand |
On Mon, 2023-09-25 at 09:20 +0200, Johannes Berg wrote: > From: Johannes Berg <johannes.berg@intel.com> > > Add SKB tracing (which shows now why/where a frame was dropped > in the stack), and also -T for stack trace at each event. Oh, maybe this shouldn't be here, I think not all kernels support -T, though I haven't checked now when it was added. But it was useful for me to figure out where frames are dropped. johannes
diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index f63bb567766c..0d69f303c103 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -132,7 +132,7 @@ class DataCollector(object): def __enter__(self): if self._tracing: output = os.path.abspath(os.path.join(self._logdir, '%s.dat' % (self._testname, ))) - self._trace_cmd = subprocess.Popen(['trace-cmd', 'record', '-o', output, '-e', 'mac80211', '-e', 'cfg80211', '-e', 'printk', 'sh', '-c', 'echo STARTED ; read l'], + self._trace_cmd = subprocess.Popen(['trace-cmd', 'record', '-o', output, '-T', '-e', 'skb', '-e', 'mac80211', '-e', 'cfg80211', '-e', 'printk', 'sh', '-c', 'echo STARTED ; read l'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=open('/dev/null', 'w'),