diff options
| author | Adrian Hunter <[email protected]> | 2024-03-15 07:13:34 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2024-03-21 13:41:27 +0000 |
| commit | bb69c912c4e8005cf1ee6c63782d2fc28838dee2 (patch) | |
| tree | 128999ae14c3b5ccb897b1fc91f5f2afd75f4e48 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | perf script: Show also errors for --insn-trace option (diff) | |
| download | kernel-bb69c912c4e8005cf1ee6c63782d2fc28838dee2.tar.gz kernel-bb69c912c4e8005cf1ee6c63782d2fc28838dee2.zip | |
perf auxtrace: Fix multiple use of --itrace option
If the --itrace option is used more than once, the options are
combined, but "i" and "y" (sub-)options can be corrupted because
itrace_do_parse_synth_opts() incorrectly overwrites the period type and
period with default values.
For example, with:
--itrace=i0ns --itrace=e
The processing of "--itrace=e", resets the "i" period from 0 nanoseconds
to the default 100 microseconds.
Fix by performing the default setting of period type and period only if
"i" or "y" are present in the currently processed --itrace value.
Fixes: f6986c95af84ff2a ("perf session: Add instruction tracing options")
Signed-off-by: Adrian Hunter <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
