linux-hardened/tools/perf/util/ui/browsers
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
..
annotate.c perf hists browser: Fix seg fault when annotate null symbol 2011-04-15 12:51:49 -03:00
hists.c perf hists browser: Fix seg fault when annotate null symbol 2011-04-15 12:51:49 -03:00
map.c perf tool: Fix gcc 4.6.0 issues 2011-02-07 12:41:41 -02:00
map.h perf ui: Move map browser to util/ui/browsers/ 2010-08-10 16:10:09 -03:00
top.c perf top browser: Handle empty active symbols list 2011-03-01 10:21:44 -03:00