perf callchain: Add enum match_result for match_chain()
authorNamhyung Kim <[email protected]>
Tue, 16 Feb 2016 14:08:22 +0000 (23:08 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 19 Feb 2016 22:14:20 +0000 (19:14 -0300)
commit2d713b809d89a3d10c6a85162bf7cce0468e45d9
treecf07b0c8830df64d09d27ab1f5edc45d836faab9
parent8451cbb9b174a9b6e016d7f1bff81ff12dbd1990
perf callchain: Add enum match_result for match_chain()

The append_chain() might return either result of match_chain() or other
(error) code.  But match_chain() can return any value in s64 type so
it's hard to check the error case.  Add new enum match_result and make
match_chain() return non-negative values only so that we can check the
error cases.

Signed-off-by: Namhyung Kim <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/callchain.c