perf/core: add perf_get_event() to return perf_event given a struct file
authorYonghong Song <yhs@fb.com>
Thu, 24 May 2018 18:21:08 +0000 (11:21 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 25 May 2018 01:18:19 +0000 (18:18 -0700)
commitf8d959a5b188dc81e57a6bac34a1b2986f61e2fd
tree3171bc6566cb8f6077f333953338d1d1d8faac95
parent31ad39239f089ef93bb51f9918618f18f45c78d9
perf/core: add perf_get_event() to return perf_event given a struct file

A new extern function, perf_get_event(), is added to return a perf event
given a struct file. This function will be used in later patches.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/perf_event.h
kernel/events/core.c