Commit 89cd2fd
committed
tracing/osnoise: Allow arbitrarily long CPU string
JIRA: https://issues.redhat.com/browse/RHEL-86520
commit 17f8910
Author: Tomas Glozar <tglozar@redhat.com>
Date: Fri Apr 25 11:18:39 2025 +0200
tracing/osnoise: Allow arbitrarily long CPU string
Allocate kernel memory for processing CPU string
(/sys/kernel/tracing/osnoise/cpus) also in osnoise_cpus_write to allow
the writing of a CPU string of an arbitrary length.
This replaces the 256-byte buffer, which is insufficient with the rising
number of CPUs. For example, if I wanted to measure on every even CPU
on a system with 256 CPUs, the string would be 456 characters long.
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20250425091839.343289-1-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Tomas Glozar <tglozar@redhat.com>1 parent 64c58bb commit 89cd2fd
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2315 | 2315 | | |
2316 | 2316 | | |
2317 | 2317 | | |
2318 | | - | |
| 2318 | + | |
2319 | 2319 | | |
2320 | 2320 | | |
2321 | 2321 | | |
| |||
2333 | 2333 | | |
2334 | 2334 | | |
2335 | 2335 | | |
2336 | | - | |
| 2336 | + | |
2337 | 2337 | | |
2338 | | - | |
2339 | | - | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
2340 | 2341 | | |
2341 | 2342 | | |
2342 | 2343 | | |
| |||
0 commit comments