Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.24 KB

rules-dtrace.md

File metadata and controls

36 lines (25 loc) · 1.24 KB

Bazel rules for working with dtrace.

dtrace_compile

dtrace_compile(name, srcs)

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.

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
srcs dtrace(.d) source files to be compiled. List of labels optional []