perf ui browser annotate: Don't show the source code view status initially
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 8 Apr 2025 22:22:09 +0000 (19:22 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Apr 2025 13:46:32 +0000 (10:46 -0300)
commitbf5ea13bae3515ff1b6481a87e33b3a13f68096c
treecb52178c43ff1ec39a41e476460413d96f66623a
parentc6043d35c0f3eb5bcbeb6309e10c4ae33d203841
perf ui browser annotate: Don't show the source code view status initially

To avoid initial clutter, and not to change the view users that are not
interested in toggling the source code view, just show it when the user
does the first toggle keypress (pressing 's').

I know that there are users that really disable the source code view by
using:

  # perf config annotate.hide_src_code=yes

Tested-by: Ingo Molnar <mingo@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/Z_TYux5fUg2pW-pF@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/annotate.c
tools/perf/util/annotate.c
tools/perf/util/annotate.h