summaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/browsers/hists.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-09-16 09:19:56 +0200
committerIngo Molnar <mingo@kernel.org>2015-09-16 09:19:56 +0200
commitd71b0ad8d30922ccdd0705318237e6890b4ec1b6 (patch)
tree347c773357c1afc87d65f767258317164bc0e31e /tools/perf/ui/browsers/hists.c
parenta4d71093e759b7cfe0babbc6ae89c8130532f6ad (diff)
parentf6cf87f748ff9480f97ff9c5caf6d6faacf52aa1 (diff)
downloadop-kernel-dev-d71b0ad8d30922ccdd0705318237e6890b4ec1b6.zip
op-kernel-dev-d71b0ad8d30922ccdd0705318237e6890b4ec1b6.tar.gz
Merge branch 'perf/urgent' into perf/core, to resolve a conflict
Conflicts: tools/perf/ui/browsers/hists.c Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/ui/browsers/hists.c')
-rw-r--r--tools/perf/ui/browsers/hists.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c
index 380e908..e1f28f4 100644
--- a/tools/perf/ui/browsers/hists.c
+++ b/tools/perf/ui/browsers/hists.c
@@ -2017,7 +2017,8 @@ skip_annotation:
&options[nr_options], dso);
nr_options += add_map_opt(browser, &actions[nr_options],
&options[nr_options],
- browser->selection->map);
+ browser->selection ?
+ browser->selection->map : NULL);
nr_options += add_socket_opt(browser, &actions[nr_options],
&options[nr_options],
socked_id);
@@ -2027,6 +2028,15 @@ skip_annotation:
&actions[nr_options],
&options[nr_options],
thread, NULL);
+ /*
+ * Note that browser->selection != NULL
+ * when browser->he_selection is not NULL,
+ * so we don't need to check browser->selection
+ * before fetching browser->selection->sym like what
+ * we do before fetching browser->selection->map.
+ *
+ * See hist_browser__show_entry.
+ */
nr_options += add_script_opt(browser,
&actions[nr_options],
&options[nr_options],
OpenPOWER on IntegriCloud