]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80ce60c5c7273849c7a8e7d300caf8477edbfade
tree8c80a8796a7462d795f95fa8de2410b60df1b942
parente2bace4b69865732be7162b9ec78308fca369046
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