perf tools: Add cat as fallback pager
authorMichael Lentine <mlentine@google.com>
Tue, 20 May 2014 09:48:49 +0000 (11:48 +0200)
committerJiri Olsa <jolsa@kernel.org>
Wed, 21 May 2014 09:48:33 +0000 (11:48 +0200)
commit21cfc5e10395eba795c0610cf3cf7f0a4f6f33ff
treeb30e4aa479daa730ded93a209bc54fbe627fe37d
parentf21d1815295ee79ce0767cb08d6f3ffa3a3b5cfe
perf tools: Add cat as fallback pager

This patch adds a fallback to cat for the pager. This is useful
on environments, such as Android, where less does not exist.
It is better to default to cat than to abort.

Signed-off-by: Michael Lentine <mlentine@google.com>
Reviewed-by: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1400579330-5043-2-git-send-email-eranian@google.com
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/util/pager.c