linux/tools/perf/util/ui
Lin Ming db9a9cbc81 perf hists browser: Fix seg fault when annotate null symbol
In hists browser, press hotkey 'a' to annotate current symbol.

Now it causes segment fault if 'a' is pressed on a null symbol.

Here are 2 small bugs:
- In perf_evsel__hists_browse, the condition check after 'a' is pressed
  is not correct, we should check ->sym instead of ->map.
- In symbol__tui_annotate we must check whether sym is NULL or not
  before getting annotation structure.

This patch fixes above 2 small bugs.

Link: http://lkml.kernel.org/r/1302244286.4106.36.camel@minggr.sh.intel.com
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2011-04-15 12:51:49 -03:00
..
browsers perf hists browser: Fix seg fault when annotate null symbol 2011-04-15 12:51:49 -03:00
browser.c perf ui browser: Introduce ui_browser__show_title 2011-02-25 11:33:31 -03:00
browser.h perf ui browser: Introduce ui_browser__show_title 2011-02-25 11:33:31 -03:00
helpline.c perf ui: Serialize screen updates 2011-02-16 14:47:55 -02:00
helpline.h perf ui browser: Add ui_browser__show counterpart: __hide 2010-08-10 15:44:20 -03:00
libslang.h perf top: Fix TUI compilation 2011-02-01 17:33:06 -02:00
progress.c
progress.h
setup.c perf ui: Serialize screen updates 2011-02-16 14:47:55 -02:00
ui.h perf ui: Serialize screen updates 2011-02-16 14:47:55 -02:00
util.c perf tui: Make ui__warning modal 2011-03-01 10:24:43 -03:00
util.h perf ui: Complete the breakdown of util/newt.c 2010-08-10 16:11:38 -03:00