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/trace/bpf_trace.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/trace/bpf_trace.c')
-rw-r--r-- | kernel/trace/bpf_trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c index dc498b605d5d..95888ae6c263 100644 --- a/kernel/trace/bpf_trace.c +++ b/kernel/trace/bpf_trace.c @@ -275,7 +275,7 @@ BPF_CALL_2(bpf_perf_event_read, struct bpf_map *, map, u64, flags) if (!ee) return -ENOENT; - err = perf_event_read_local(ee->event, &value); + err = perf_event_read_local(ee->event, &value, NULL, NULL); /* * this api is ugly since we miss [-22..-2] range of valid * counter values, but that's uapi |