Files
linux/tools/perf/util
Adrian Hunter bb69c912c4 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: f6986c95af ("perf session: Add instruction tracing options")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240315071334.3478-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2024-03-21 10:41:27 -03:00
..
2023-10-25 13:38:33 -07:00
2023-09-12 17:50:36 -03:00
2022-06-28 12:05:25 -03:00
2024-02-12 12:35:41 -08:00
2023-03-14 08:29:46 -03:00
2022-10-04 08:55:21 -03:00
2023-11-27 10:21:27 -03:00
2023-01-23 10:00:47 -03:00
2023-12-23 22:39:42 -03:00
2023-10-12 10:01:56 -07:00
2024-02-12 12:35:41 -08:00
2023-04-06 21:40:28 -03:00
2023-09-12 17:47:00 -03:00
2023-11-09 13:47:50 -03:00
2023-12-23 22:39:42 -03:00
2023-10-12 10:01:56 -07:00
2022-06-23 11:54:22 -03:00
2024-02-12 12:35:41 -08:00
2023-04-10 19:20:53 -03:00