]> 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, 23 May 2016 15:44:24 +0000 (16:44 +0100)
commit3acb568516269ead26f9916f0d01c9ae553c590c
tree22f6ffc1d9a2e3a5340f8dc3445c6a7ea9c4900c
parentd2f3d53c0470606652755c8afa32eebf154e4763
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