diff --git a/Documentation/tools/rtla/rtla-osnoise-top.rst b/Documentation/tools/rtla/rtla-osnoise-top.rst index b91c02ac2bbe..b948a813d45c 100644 --- a/Documentation/tools/rtla/rtla-osnoise-top.rst +++ b/Documentation/tools/rtla/rtla-osnoise-top.rst @@ -28,6 +28,10 @@ OPTIONS ======= .. include:: common_osnoise_options.txt +**--ipi** + + Track sources of IPIs. + .. include:: common_top_options.txt .. include:: common_options.txt diff --git a/tools/tracing/rtla/src/cli.c b/tools/tracing/rtla/src/cli.c index fb8c972c0746..8c02b94ce432 100644 --- a/tools/tracing/rtla/src/cli.c +++ b/tools/tracing/rtla/src/cli.c @@ -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, diff --git a/tools/tracing/rtla/src/cli_p.h b/tools/tracing/rtla/src/cli_p.h index 661240d44ad9..f2dd7c610093 100644 --- a/tools/tracing/rtla/src/cli_p.h +++ b/tools/tracing/rtla/src/cli_p.h @@ -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", ¶ms->threshold, "us", \ "the minimum delta to be considered a noise") +#define OSNOISE_OPT_IPI OPT_BOOLEAN(0, "ipi", ¶ms->common.ipi, \ + "track sources of IPIs") + /* * Callback functions for command line options for osnoise tools */ diff --git a/tools/tracing/rtla/src/common.h b/tools/tracing/rtla/src/common.h index a7a9063c302b..87e0d50f2009 100644 --- a/tools/tracing/rtla/src/common.h +++ b/tools/tracing/rtla/src/common.h @@ -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;