mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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:
parent
74be338dd7
commit
2ff4464e32
|
|
@ -28,6 +28,10 @@ OPTIONS
|
|||
=======
|
||||
.. include:: common_osnoise_options.txt
|
||||
|
||||
**--ipi**
|
||||
|
||||
Track sources of IPIs.
|
||||
|
||||
.. include:: common_top_options.txt
|
||||
|
||||
.. include:: common_options.txt
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user