]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: add support for sparc64 3of3
authorKris Van Hees <kris.van.hees@oracle.com>
Mon, 22 Dec 2014 21:56:13 +0000 (16:56 -0500)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 21 Jul 2015 14:29:50 +0000 (15:29 +0100)
commitda8922d33b98f5f968299562334613d3ac2d3538
treec553cd079d22653423349c8dcc9ff5e5f6910416
parent82d793a6c20e2031e0d67bed8326630e70d53427
dtrace: add support for sparc64 3of3

This commit is the 3rd of 3 commits to add DTrace support to the sparc64
kernel.  This particular commit covers the DTrace implementation code
changes.  It provides an implementation of the DTrace core for sparc64,
SDT, and syscall tracing.

Note that the sparc64 implementation for SDT probe points utilizes a call
to a trampoline function that in turn calls dtrace_probe() rather than
using a trap-based mechanism.  This requires an additional data item to be
associated with each module.  In order to facilitate this in a manner that
is arch-dependent, DTrace specific data other than the list of SDT probes
has been moved to a structure that is maintained by the DTrace module code
and the module struct merely has a generic void *pdata member that can be
populated with a pointer to the actual data.  This commit renames the
num_dtrace_probes member of the module struct to be sdt_probec, since that
is more consistent.

Orabug: 19005031

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Acked-by: Nick Alcock <nick.alcock@oracle.com>
arch/sparc/include/asm/dtrace_cpuinfo.h [new file with mode: 0644]
arch/sparc/include/asm/dtrace_sdt.h [new file with mode: 0644]
arch/sparc/include/asm/dtrace_syscall.h [new file with mode: 0644]
arch/sparc/include/asm/dtrace_util.h [new file with mode: 0644]
arch/sparc/kernel/dtrace_sdt.c [new file with mode: 0644]
arch/sparc/kernel/dtrace_syscall.c [new file with mode: 0644]
arch/sparc/kernel/dtrace_syscall_stubs.S [new file with mode: 0644]
arch/sparc/kernel/dtrace_util.c [new file with mode: 0644]
kernel/dtrace/dtrace_os.c
kernel/dtrace/dtrace_sdt_core.c
scripts/dtrace_sdt.sh