]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: ensure pdata is large enough
authorKris Van Hees <kris.van.hees@oracle.com>
Sat, 21 May 2016 13:43:55 +0000 (06:43 -0700)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 4 Jul 2016 16:14:29 +0000 (17:14 +0100)
commitf5f3b5b6ace84df2631d769164e985cb7f6fb023
tree0583c8509ac55b6fbe728fd08fbc4c3da053ea4e
parenta053707937a4ea4df643641cdfa2959454e9e75c
dtrace: ensure pdata is large enough

With the sudden (large) increase of SDT probe points, the previously
statically defined default size for the kernel pdata block was not
sufficient.  The code has been modified to calculate the required size
for the pdata block at runtime.

This primarily affects sparc where the pdata also covers the memory
block used for SDT trampolines.  It is now dependent on the actual
number of SDT probes in the kernel.

This does not affect modules because they were already allocating the
needed memory block at load time based on the actual number of probes.

Orabug: 23004534
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Acked-by: Nick Alcock <nick.alcock@oracle.com>
arch/sparc/include/asm/dtrace_arch.h
arch/x86/include/asm/dtrace_arch.h
kernel/dtrace/dtrace_os.c