aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2020-02-24 14:01:52 +0000
committerAlexei Starovoitov <[email protected]>2020-02-25 00:20:10 +0000
commit66150d0dde030c5ee68ccd93e4c54a73c47ebebd (patch)
tree0d39c932913bd7bd18238e6cdd60393292c0a0c7 /scripts/bpf_helpers_doc.py
parentbpf: Prepare hashtab locking for PREEMPT_RT (diff)
downloadkernel-66150d0dde030c5ee68ccd93e4c54a73c47ebebd.tar.gz
kernel-66150d0dde030c5ee68ccd93e4c54a73c47ebebd.zip
bpf, lpm: Make locking RT friendly
The LPM trie map cannot be used in contexts like perf, kprobes and tracing as this map type dynamically allocates memory. The memory allocation happens with a raw spinlock held which is a truly spinning lock on a PREEMPT RT enabled kernel which disables preemption and interrupts. As RT does not allow memory allocation from such a section for various reasons, convert the raw spinlock to a regular spinlock. On a RT enabled kernel these locks are substituted by 'sleeping' spinlocks which provide the proper protection but keep the code preemptible. On a non-RT kernel regular spinlocks map to raw spinlocks, i.e. this does not cause any functional change. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions