summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2016-06-28 10:18:23 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-06-30 09:54:40 (GMT)
commit1ca1cc98bf7418c680415bfce05699f67510a7fd (patch)
treec7f9924f35a3645b99208534b887c84077cfb975 /init
parentee58b57100ca953da7320c285315a95db2f7053d (diff)
downloadlinux-1ca1cc98bf7418c680415bfce05699f67510a7fd.tar.xz
bpf: minor cleanups on fd maps and helpers
Some minor cleanups: i) Remove the unlikely() from fd array map lookups and let the CPU branch predictor do its job, scenarios where there is not always a map entry are very well valid. ii) Move the attribute type check in the bpf_perf_event_read() helper a bit earlier so it's consistent wrt checks with bpf_perf_event_output() helper as well. iii) remove some comments that are self-documenting in kprobe_prog_is_valid_access() and therefore make it consistent to tp_prog_is_valid_access() as well. 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 'init')
0 files changed, 0 insertions, 0 deletions