[v1] trace/hwlat: stop worker if !is_percpu_thread due to hotplug event

2024-01-31 Thread Andy Chiu
If the task happens to run after cpu hot-plug offline, then it would not be running in a percpu_thread. Instead, it would be re-queued into a UNBOUND workqueue. This would trigger a warning if we enable kernel preemption. Signed-off-by: Andy Chiu --- kernel/trace/trace_hwlat.c | 11 ++-

[v1] trace/osnoise: prevent osnoise hotplog worker running in UNBOUND workqueue

2024-01-31 Thread Andy Chiu
smp_processor_id() should be called with migration disabled. This mean we may safely call smp_processor_id() in percpu thread. However, this is not the case if the work is (re-)queued into unbound workqueue, during cpu-hotplog. So, detect and return early if this work happens to run on an unbound w

How to display a ktime value as trace timestamp in trace output?

2024-01-31 Thread David Howells
Hi Steven, I have a tracepoint in AF_RXRPC that displays information about a timeout I'm going to set. I have the timeout in a ktime_t as an absolute time. Is there a way to display this in the trace output such that it looks like a trace timestamp and can be (roughly) correlated with the displa