]> 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, 23 May 2016 15:44:24 +0000 (16:44 +0100)
commitd2f3d53c0470606652755c8afa32eebf154e4763
tree445e3792aa36b9c7b1bc66d50cc68b95ac1dad6f
parentdaf016df43a40608ca00906c9c42bcbdb48712e3
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