OSDN Git Service

perf hists browser: Split popup menu actions
authorNamhyung Kim <namhyung@kernel.org>
Wed, 22 Apr 2015 07:18:18 +0000 (16:18 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 May 2015 21:13:19 +0000 (18:13 -0300)
commitbc7cad429bcdda6f112525c17db9577a1be4c8aa
treee82f9b139356ad6c8caf6f750ab1e3f42ffb896d
parentb1a9ceef724341ce05b125d39abf9cfc7059b949
perf hists browser: Split popup menu actions

Currently perf_evsel__hists_browse() function spins on a huge loop and
handles many key actions.  Since it's hard to read and modify, let's
split it out into small helper functions.

This patch introduces do_XXX() functions which corresponds to each goto
label.  This way we can call such functions both from key press actions
and popup menu actions.

No functional change intended.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1429687101-4360-8-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/hists.c