mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
perf annotate: Add --code-with-type support for TUI
Until now, the --code-with-type option is available only on stdio. But it was an artifical limitation because of an implemention issue. Implement the same logic in annotation_line__write() for stdio2/TUI and remove the limitation and update the man page. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20250816031635.25318-8-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
e38ea8c41e
commit
7dbe89ca3d
@@ -917,11 +917,6 @@ int cmd_annotate(int argc, const char **argv)
|
||||
symbol_conf.annotate_data_sample = true;
|
||||
} else if (annotate_opts.code_with_type) {
|
||||
symbol_conf.annotate_data_member = true;
|
||||
|
||||
if (!annotate.use_stdio) {
|
||||
pr_err("--code-with-type only works with --stdio.\n");
|
||||
goto out_delete;
|
||||
}
|
||||
}
|
||||
|
||||
setup_browser(true);
|
||||
|
||||
Reference in New Issue
Block a user