]> sourceware.org Git - systemtap.git/commit
PR24758: increase stack size for BPF userspace interpreter
authorSerhei Makarov <smakarov@redhat.com>
Wed, 17 Jun 2020 19:48:56 +0000 (15:48 -0400)
committerSerhei Makarov <smakarov@redhat.com>
Wed, 17 Jun 2020 19:51:34 +0000 (15:51 -0400)
commit9a2cd427a6a4c3ecb39c700b1f6b864a686c4ea1
treea56f00a0c117280af9210886f3b30055f05e6060
parent3040d4e8ddb6a9b1d1a57a0185206498670c3f1a
PR24758: increase stack size for BPF userspace interpreter

Requires parametrizing MAX_BPF_STACK by the target.

* bpf-internal.h (MAX_BPF_KERNEL_STACK): new constant.
(MAX_BPF_USER_STACK): new constant.
(MAX_BPF_STACK): change to a macro depending on target.
(program::use_tmp_space): pass target to MAX_BPF_STACK.

* bpf-opt.cxx (alloc_literal_str): pass target to MAX_BPF_STACK.
(spill): pass target to MAX_BPF_STACK.

* stapbpf/bpfinterp.cxx (bpf_interpret): increase stack size
to match MAX_BPF_USER_STACK in bpf-internal.h.
bpf-internal.h
bpf-opt.cxx
stapbpf/bpfinterp.cxx
This page took 0.02517 seconds and 5 git commands to generate.