perf browser: Don't show scripts menu for 'perf top'
authorFeng Tang <feng.tang@intel.com>
Wed, 31 Oct 2012 16:00:55 +0000 (00:00 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 31 Oct 2012 18:14:19 +0000 (16:14 -0200)
commitc77d8d7030128e61e206658815b96a6befed9d06
treeb30ae321060abc134d7a85ec21523a544f569d5a
parentdc53eda5a025f3e7503219477a8aefb8842ed74b
perf browser: Don't show scripts menu for 'perf top'

As 'perf top' has no data files to run scripts against. Also add a
is_report_browser() helper function to judge whether the running browser
is for 'perf report'.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1351699257-5102-1-git-send-email-feng.tang@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/hists.c