perf utils: Silence "Couldn't synthesize bpf events" warning for EPERM
authorSong Liu <songliubraving@fb.com>
Mon, 4 Feb 2019 19:31:40 +0000 (11:31 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Feb 2019 16:31:11 +0000 (13:31 -0300)
commit39f4a913d6d439178177cae8aa2e9a232160fd51
tree8c80a8796a7462d795f95fa8de2410b60df1b942
parent33937e599449c65dbd69c60d7e2255012427baed
perf utils: Silence "Couldn't synthesize bpf events" warning for EPERM

Synthesizing BPF events is only supported for root. Silent warning msg
when non-root user runs perf-record.

Reported-by: David Carrillo-Cisneros <davidca@fb.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Tested-by: David Carrillo-Cisneros <davidca@fb.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: kernel-team@fb.com
Link: http://lkml.kernel.org/r/20190204193140.719740-1-songliubraving@fb.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/bpf-event.c