]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
perf ui: Add ui_progress__finish()
authorNamhyung Kim <namhyung.kim@lge.com>
Tue, 13 Nov 2012 13:30:34 +0000 (22:30 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 14 Nov 2012 19:52:56 +0000 (16:52 -0300)
commita5580f3ecb295a514f9522daf0ef7158f73ec2d6
treeb169a9a701813ee479654bbc83254d90290f889f
parenta753579c3ec096bba9d24e1594a07dbb25aca8e4
perf ui: Add ui_progress__finish()

Sometimes we need to know when the progress bar should disappear.

Checking curr >= total wasn't enough since there're cases not met that
condition for the last call.

So add a new ->finish callback to identify this explicitly.  Currently
only GTK frontend needs it.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1352813436-14173-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/gtk/progress.c
tools/perf/ui/progress.c
tools/perf/ui/progress.h
tools/perf/util/debug.h
tools/perf/util/session.c