diff options
| author | Daniel Borkmann <daniel@iogearbox.net> | 2016-06-28 12:18:25 +0200 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2022-04-19 00:51:45 +0300 |
| commit | fc6c6256bb108dde5c7f533d6dda2e9044a7283c (patch) | |
| tree | c9aedd0d34176f2aa7ac9d9d8beb8b39a31a6ca5 /lib/syscall.c | |
| parent | 73a23d04435e3adbe87bd5c9abc8e696fd7a0357 (diff) | |
bpf, trace: add BPF_F_CURRENT_CPU flag for bpf_perf_event_read
Follow-up commit to 1e33759c788c ("bpf, trace: add BPF_F_CURRENT_CPU
flag for bpf_perf_event_output") to add the same functionality into
bpf_perf_event_read() helper. The split of index into flags and index
component is also safe here, since such large maps are rejected during
map allocation time.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/syscall.c')
0 files changed, 0 insertions, 0 deletions
