]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: fix cyclic allocation
authorKris Van Hees <kris.van.hees@oracle.com>
Thu, 3 Nov 2011 17:59:00 +0000 (13:59 -0400)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:39:56 +0000 (22:39 +0100)
commit2303afc56c36874199fe50f7547f95f566e73ddd
treed1cc1edf16f675cd95562d7829dfbbdfaaf7cb24
parent2d67179cb750151ef8725c251d6b07ef9341ef67
dtrace: fix cyclic allocation

Fixed the allocation of cyclics that was the cause of some obscure crashes
during the testsuite execution.  Problem was that cyclics were being allocated
in chunks, with a new array being allocated as (prev-size + chink-size), and
then the old entries being copied over.  However, because the hrtimer struct is
embedded in the cyclic struct, this meant that hrtimer structs were being moved
outside the hrtimer code.

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
kernel/dtrace/dtrace_os.c