]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: use perf_events probes
authorTimothy J Fontaine <tj.fontaine@oracle.com>
Wed, 18 May 2016 15:51:20 +0000 (16:51 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 4 Jul 2016 16:14:28 +0000 (17:14 +0100)
commita053707937a4ea4df643641cdfa2959454e9e75c
tree089c0cd70547a24c9586a9d20e1e6727af8df0ad
parentacdb33ef09b04b65d142d6c257f950d248863156
dtrace: use perf_events probes

For every trace point defined, also define an SDT probe. This allows
DTrace to expose probe points maintained by upstream.

[nca: fixed TODOs: added DTRACE_UINTPTR_CAST_EACH so that tracepoints
      that pass structures by value will still compile: we jam the
      structure into a uintptr if it will fit, otherwise passing its
      address in.

      This is only partial, so far: there is no CTF type info for any
      of these new probes, but this is a relatively minor issue that can
      be fixed later.]

Orabug: 23004534
Signed-off-by: Timothy J Fontaine <tj.fontaine@oracle.com>
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Acked-by: Kris Van Hees <kris.van.hees@oracle.com>
include/linux/sdt.h
include/linux/tracepoint.h