]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 Jan 2021 20:28:27 +0000 (17:28 -0300)
commit1153da4db11c0b21f7a16acb23685a48e1d9333f
treed6ba9d8fc7fe3f01e9f3a34c5e425af82d39ef2d
parent2c51df8c5ba25cb96577e8264e476bb35f89712f
libperf tests: Fail when failing to get a tracepoint id

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>
tools/lib/perf/tests/test-evlist.c