]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tracing/osnoise: Allow arbitrarily long CPU string
authorTomas Glozar <tglozar@redhat.com>
Fri, 25 Apr 2025 09:18:39 +0000 (11:18 +0200)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 8 May 2025 13:36:09 +0000 (09:36 -0400)
commit17f89102fe23d7389085a8820550df688f79888a
treeff10ff4c59bbd0b32361c74e05a33f4bc4dc31da
parenta54665ab7c20081cb6299d79dcab9960752bc741
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>
kernel/trace/trace_osnoise.c