• Daniel Bristot de Oliveira's avatar
    tracing/osnoise: Allow multiple instances of the same tracer · 2fac8d64
    Daniel Bristot de Oliveira authored
    Currently, the user can start only one instance of timerlat/osnoise
    tracers and the tracers cannot run in parallel.
    
    As starting point to add more flexibility, let's allow the same tracer to
    run on different trace instances. The workload will start when the first
    trace_array (instance) is registered and stop when the last instance
    is unregistered.
    
    So, while this patch allows the same tracer to run in multiple
    instances (e.g., two instances running osnoise), it still does not allow
    instances of timerlat and osnoise in parallel (e.g., one timerlat and
    osnoise). That is because the osnoise: events have different behavior
    depending on which tracer is enabled (osnoise or timerlat). Enabling
    the parallel usage of these two tracers is in my TODO list.
    
    Link: https://lkml.kernel.org/r/38c8f14b613492a4f3f938d9d3bf0b063b72f0f0.1635702894.git.bristot@kernel.org
    
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Tom Zanussi <zanussi@kernel.org>
    Cc: Masami Hiramatsu <mhiramat@kernel.org>
    Cc: Juri Lelli <juri.lelli@redhat.com>
    Cc: Clark Williams <williams@redhat.com>
    Cc: John Kacur <jkacur@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    Cc: Daniel Bristot de Oliveira <bristot@kernel.org>
    Cc: linux-rt-users@vger.kernel.org
    Cc: linux-trace-devel@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: default avatarDaniel Bristot de Oliveira <bristot@kernel.org>
    Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
    2fac8d64
trace_osnoise.c 57 KB