]> sourceware.org Git - systemtap.git/commit
stapbpf fix for GCC9 :: use ((nonstring)) attr for map key buffers
authorSerhei Makarov <smakarov@redhat.com>
Mon, 13 May 2019 18:55:30 +0000 (14:55 -0400)
committerSerhei Makarov <smakarov@redhat.com>
Mon, 13 May 2019 21:18:57 +0000 (17:18 -0400)
commit8b868f3dd030c1df799afca6636e5041ac5e190d
tree26afd3e463b073e9bc4672823bbaecb8f61e30a0
parente9822aea5d86fda4bb3a1499646cab35f53ada5a
stapbpf fix for GCC9 :: use ((nonstring)) attr for map key buffers

Newer gcc9 raises suspicions on copying BPF_MAXSTRINGLEN to
BPF_MAXSTRINGLEN_PLUS sized buffer. Tentative fix, worth reviewing
these issues further.

* stapbpf/bpfinterp.cxx (map_get_next_key): add
  __attribute__ ((nonstring)) to signal how buffers will be used.
stapbpf/bpfinterp.cxx
This page took 0.027916 seconds and 5 git commands to generate.