aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2016-02-16 23:08:22 +0900
committerArnaldo Carvalho de Melo <[email protected]>2016-02-19 19:14:20 -0300
commit2d713b809d89a3d10c6a85162bf7cce0468e45d9 (patch)
treecf07b0c8830df64d09d27ab1f5edc45d836faab9 /tools/perf/util/trace-event-scripting.c
parent8451cbb9b174a9b6e016d7f1bff81ff12dbd1990 (diff)
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]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions