diff options
author | Mathieu Poirier <mathieu.poirier@linaro.org> | 2019-02-12 10:16:08 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-02-14 15:18:06 -0300 |
commit | d3267ad43dd8b3778f9b3deb9a3946c844bdc9dc (patch) | |
tree | ba5a24e586a02ada23cae337a8dbd18a29ff6a4d /tools/perf/scripts/python/check-perf-trace.py | |
parent | fc7ac4138cf5ab76850bca2b9a8f43449c762a37 (diff) |
perf cs-etm: Fix wrong return values in error path
Function cs_etm__mem_access() is supposed to return a u32 but the error
path returns negative values at a couple of places, something that really
throws off the clients using it. Fix the situation by return '0'.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Suzuki K Poulouse <suzuki.poulose@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/20190212171618.25355-4-mathieu.poirier@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions