commit | f8d959a5b188dc81e57a6bac34a1b2986f61e2fd | [log] [tgz] |
---|---|---|
author | Yonghong Song <yhs@fb.com> | Thu May 24 11:21:08 2018 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Thu May 24 18:18:19 2018 -0700 |
tree | 3171bc6566cb8f6077f333953338d1d1d8faac95 | |
parent | 31ad39239f089ef93bb51f9918618f18f45c78d9 [diff] |
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>