diff options
author | Yonghong Song <yhs@fb.com> | 2017-10-05 18:19:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-08 00:05:57 +0200 |
commit | 97562633bcbac4a07d605ae628d7655fa71caaf5 (patch) | |
tree | e1bda190d84a5f9d430b90c3b4934e71be441beb /kernel/bpf/arraymap.c | |
parent | ip_tunnel: add mpls over gre support (diff) | |
download | linux-97562633bcbac4a07d605ae628d7655fa71caaf5.tar.xz linux-97562633bcbac4a07d605ae628d7655fa71caaf5.zip |
bpf: perf event change needed for subsequent bpf helpers
This patch does not impact existing functionalities.
It contains the changes in perf event area needed for
subsequent bpf_perf_event_read_value and
bpf_perf_prog_read_value helpers.
Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/bpf/arraymap.c')
-rw-r--r-- | kernel/bpf/arraymap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c index 98c0f00c3f5e..68d866628be0 100644 --- a/kernel/bpf/arraymap.c +++ b/kernel/bpf/arraymap.c @@ -492,7 +492,7 @@ static void *perf_event_fd_array_get_ptr(struct bpf_map *map, ee = ERR_PTR(-EOPNOTSUPP); event = perf_file->private_data; - if (perf_event_read_local(event, &value) == -EOPNOTSUPP) + if (perf_event_read_local(event, &value, NULL, NULL) == -EOPNOTSUPP) goto err_out; ee = bpf_event_entry_gen(perf_file, map_file); |