perf tools: Fallback to srcdir/Documentation/tips.txt
authorNamhyung Kim <namhyung@kernel.org>
Sat, 9 Jan 2016 10:16:29 +0000 (19:16 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jan 2016 15:42:08 +0000 (12:42 -0300)
commit34b7b0f95d41d2351a080e774d71085171db90e6
tree065cfa3b53e86cd17ba2b4b13fc0179e58bd9fe4
parent090cff3eae8f02395009972d01b5dfdb95bcc327
perf tools: Fallback to srcdir/Documentation/tips.txt

Some people don't install perf, but just use compiled version in the
source.  Fallback to lookup the source directory for those poor guys. :)

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1452334589-8782-4-git-send-email-namhyung@kernel.org
[ Make perf_tip() return NULL for ENOENT, making the fallback to really take place ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c
tools/perf/util/util.c