summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2020-12-03 17:10:00 +0000
committerMark Johnston <markj@FreeBSD.org>2020-12-03 17:10:00 +0000
commit7be2770a426dc7399b63115b1c2c7d8bebdea06a (patch)
tree3532169fb31430851ee5ce83d9d49214afb3d2ee /lib
parent94e3e7d2e8014a981226567e67c82087cc59cca7 (diff)
downloadsrc-test-7be2770a426dc7399b63115b1c2c7d8bebdea06a.tar.gz
src-test-7be2770a426dc7399b63115b1c2c7d8bebdea06a.zip
sdt: Create providers and probes in separate passes when loading sdt.ko
The sdt module's load handler iterates over SDT linker sets for the kernel and all loaded modules to create probes and providers defined by SDT(9). Probes in one module may belong to a provider in a different module, but when a probe is created we assume that the provider is already defined. To maintain this invariant, modify the load handler to perform two separate passes over loaded modules: one to define providers and the other to define probes. The problem manifests when loading linux.ko, which depends on linux_common.ko, which defines providers used by probes defined in linux.ko. Reported by: gallatin MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=368306
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions