aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2020-08-18 14:33:51 -0700
committerAlexei Starovoitov <[email protected]>2020-08-18 17:16:15 -0700
commit47b6cb4d0add454859f386337e6079e01ac7db8f (patch)
treeb7c2e6477cdb0fca2e552933bde58fef27bfbd68 /tools/perf/scripts
parent8d708236058601f1b08b0ca2a1cd9fff28034416 (diff)
libbpf: Make kernel feature probing lazy
Turn libbpf's kernel feature probing into lazily-performed checks. This allows to skip performing unnecessary feature checks, if a given BPF application doesn't rely on a particular kernel feature. As we grow number of feature probes, libbpf might perform less unnecessary syscalls and scale better with number of feature probes long-term. By decoupling feature checks from bpf_object, it's also possible to perform feature probing from libbpf static helpers and low-level APIs, if necessary. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions