]> sourceware.org Git - systemtap.git/commit
PR26142: adapt to linux mmap_sem api transition
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 30 Jun 2020 23:04:16 +0000 (19:04 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 30 Jun 2020 23:09:34 +0000 (19:09 -0400)
commit37066e2c3a9d9f48fc01b13ec0493b1c67551275
tree00f0aa2df66de6393348da9216d8fefbc36ecbb0
parent6af5df835df110552fa2209a403d04e3a84d8997
PR26142: adapt to linux mmap_sem api transition

With upstream linux 5.8-bound commit da1c55f1b27, the
mm_struct->mmap_sem field is renamed, and a new <mmap_lock.h> api is
introduced to lock/unlock it.  Adapting only the most recent runtime
parts (task_finder2.c and access_process_vm.h) to the new api by
providing autoconf-driven macro wrappers.  Other
backward-compatibility parts of the stap runtime still use mmap_sem,
but those are only compiled on old kernels, so don't appear to need
this porting.  Tested on 5.8.0-0.rc2.20200626git4a21185cda0f.1.fc33.x86_64
and 5.6.19-300.fc32.x86_64.
buildrun.cxx
runtime/linux/access_process_vm.h
runtime/linux/autoconf-mmap_lock.c [new file with mode: 0644]
runtime/linux/stap_mmap_lock.h [new file with mode: 0644]
runtime/linux/task_finder2.c
This page took 0.026865 seconds and 5 git commands to generate.