linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] tracing: Fix several deadlock/race issues in timerlat and hwlat tracer
@ 2024-09-24  9:45 Wei Li
  2024-09-24  9:45 ` [PATCH 1/5] tracing/timerlat: Fix duplicated kthread creation due to CPU online/offline Wei Li
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Wei Li @ 2024-09-24  9:45 UTC (permalink / raw)
  To: Steven Rostedt, Masami Hiramatsu, Mathieu Desnoyers,
	Daniel Bristot de Oliveira
  Cc: linux-trace-kernel, xiexiuqi

These issues are found in concurrent CPU-hotplug and tracer-toggling
testing, the test cases are as follows:

Background: *test_hotplug.sh*
```
#!/bin/sh

while true
do
	echo 0 > /sys/devices/system/cpu/cpu1/online
	echo 1 > /sys/devices/system/cpu/cpu1/online
done
```

Test 1: *test_timerlat.sh*
```
#!/bin/sh

while true
do
	echo timerlat > /sys/kernel/debug/tracing/current_tracer
	echo nop > /sys/kernel/debug/tracing/current_tracer
done
```

Test 2: *test_hwlat.sh*
```
#!/bin/sh

echo per-cpu > /sys/kernel/debug/tracing/hwlat_detector/mode
while true
do
	echo hwlat > /sys/kernel/debug/tracing/current_tracer
	echo nop > /sys/kernel/debug/tracing/current_tracer
done
```

Wei Li (5):
  tracing/timerlat: Fix duplicated kthread creation due to CPU
    online/offline
  tracing/timerlat: Drop interface_lock in stop_kthread()
  tracing/timerlat: Fix a race during cpuhp processing
  tracing/hwlat: Fix a race during cpuhp processing
  tracing/hwlat: Fix deadlock in cpuhp processing

 kernel/trace/trace_hwlat.c   |  5 ++++-
 kernel/trace/trace_osnoise.c | 22 +++++++++++++---------
 2 files changed, 17 insertions(+), 10 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-11-14  2:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-24  9:45 [PATCH 0/5] tracing: Fix several deadlock/race issues in timerlat and hwlat tracer Wei Li
2024-09-24  9:45 ` [PATCH 1/5] tracing/timerlat: Fix duplicated kthread creation due to CPU online/offline Wei Li
2024-09-24  9:45 ` [PATCH 2/5] tracing/timerlat: Drop interface_lock in stop_kthread() Wei Li
2024-09-24  9:45 ` [PATCH 3/5] tracing/timerlat: Fix a race during cpuhp processing Wei Li
2024-09-24  9:45 ` [PATCH 4/5] tracing/hwlat: " Wei Li
2024-09-24  9:45 ` [PATCH 5/5] tracing/hwlat: Fix deadlock in " Wei Li
2024-10-03 20:19   ` Steven Rostedt
2024-10-09  7:47     ` liwei (GF)
2024-11-12 23:50       ` Steven Rostedt
2024-11-14  2:06         ` liwei (GF)
2024-09-26 12:57 ` [PATCH 0/5] tracing: Fix several deadlock/race issues in timerlat and hwlat tracer Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).