libperf tests: Fail when failing to get a tracepoint id
authorIan Rogers <irogers@google.com>
Thu, 14 Jan 2021 18:02:50 +0000 (10:02 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2021 10:55:04 +0000 (11:55 +0100)
commit90ab323edfcdd054b33db0e63570a8eebb6d5559
treefa90b6cbb67bb46123c4909c3c31f8f96054544d
parent680559480c95e356ec8d002ce19a5c758fea0817
libperf tests: Fail when failing to get a tracepoint id

[ Upstream commit 66dd86b2a2bee129c70f7ff054d3a6a2e5f8eb20 ]

Permissions are necessary to get a tracepoint id. Fail the test when the
read fails.

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20210114180250.3853825-2-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/lib/perf/tests/test-evlist.c