rtla/osnoise: Add IPI tracking cmdline option

Later commits will add IPI tracking to osnoise top. To avoid breaking
existing scripts, this new feature will be gated behind a new --ipi option.

Suggested-by: Tomas Glozar <tglozar@redhat.com>
Signed-off-by: Valentin Schneider <vschneid@redhat.com>
Link: https://lore.kernel.org/r/20260902123942.695822-2-vschneid@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
This commit is contained in:
Valentin Schneider 2026-09-02 14:39:30 +02:00 committed by Tomas Glozar
parent 74be338dd7
commit 2ff4464e32
4 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,10 @@ OPTIONS
=======
.. include:: common_osnoise_options.txt
**--ipi**
Track sources of IPIs.
.. include:: common_top_options.txt
.. include:: common_options.txt

View File

@ -78,6 +78,7 @@ struct common_params *osnoise_top_parse_args(int argc, char **argv)
RTLA_OPT_STOP_TOTAL('S', "stop-total", "total sample"),
OSNOISE_OPT_THRESHOLD,
RTLA_OPT_TRACE_OUTPUT("osnoise", opt_osnoise_trace_output_cb),
OSNOISE_OPT_IPI,
OPT_GROUP("Event Configuration:"),
RTLA_OPT_EVENT,

View File

@ -497,6 +497,9 @@ static int opt_filter_cb(const struct option *opt, const char *arg, int unset)
#define OSNOISE_OPT_THRESHOLD RTLA_OPT_LLONG('T', "threshold", &params->threshold, "us", \
"the minimum delta to be considered a noise")
#define OSNOISE_OPT_IPI OPT_BOOLEAN(0, "ipi", &params->common.ipi, \
"track sources of IPIs")
/*
* Callback functions for command line options for osnoise tools
*/

View File

@ -108,6 +108,7 @@ struct common_params {
bool kernel_workload;
bool user_data;
bool aa_only;
bool ipi;
struct actions threshold_actions;
struct actions end_actions;