Bazel rules for working with dtrace.

Rules

dtrace_compile

Compiles dtrace files with probes to generate header files to use those probes in C languages. The header files generated will have the same name as the source files but with a .h extension. Headers will be generated in a label scoped workspace relative file structure. For example with a directory structure of

  Workspace
  foo/
    bar.d

and a target named dtrace_gen the header path would be <GENFILES>/dtrace_gen/foo/bar.h.

Example usage (generated)

load("@rules_apple//apple:dtrace.bzl", "dtrace_compile")

dtrace_compile(
    # A unique name for this target.
    name = "",
)

name

A unique name for this target.

srcs

dtrace(.d) source files to be compiled.