]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ctf: force dtrace_ctf.ko to be loaded whenever dtrace.ko is
authorNick Alcock <nick.alcock@oracle.com>
Fri, 20 Jul 2012 22:00:07 +0000 (23:00 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:40:26 +0000 (22:40 +0100)
commit9a7b61c03fe1f9140a4a2e28adb697558ee404bc
treeac2b87acc0e0eab103fd912ec8b9a4c10890b551
parent2543f047921670fa8464ffb7c632ce89027c6e7d
ctf: force dtrace_ctf.ko to be loaded whenever dtrace.ko is

DTrace userspace makes the simplifying assumption that dtrace_ctf.ko (containing
the CTF for the kernel, for built-in modules, and for shared types, but no code)
is always loaded whenever DTrace is usable.  (The CTF itself is in a non-loaded
section, but having dtrace_ctf.ko in the list of loaded modules means that we
can eliminate an annoying set of dtrace_ctf-related special case.)

We do this by introducing a dummy function dtrace_ctf_forceload() into the
dtrace_ctf module, which DTrace then calls: depmod will then arrange for
dtrace_ctf to be loaded when we need it.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
kernel/dtrace/dtrace_ctf.c