Skip to content

Commit

Permalink
separate sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
Solomon Bekele committed Oct 31, 2024
1 parent f7d207f commit 5426406
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 482 deletions.
5 changes: 3 additions & 2 deletions ze/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,13 @@ BUILT_SOURCES = \
$(ZE_PROBES_INCL) \
$(ZE_STATIC_PROBES_INCL)

tracer_ze.c: $(srcdir)/gen_ze.rb $(srcdir)/tracer_ze_helpers.include.c $(srcdir)/ze.h.include $(ZE_MODEL) $(ZE_PROBES_INCL) $(ZE_STATIC_PROBES_INCL)
tracer_ze.c: $(srcdir)/gen_ze.rb $(srcdir)/tracer_ze_helpers.include.c $(srcdir)/sampling_daemon.c $(srcdir)/sampling_daemon.h $(srcdir)/ze.h.include $(ZE_MODEL) $(ZE_PROBES_INCL) $(ZE_STATIC_PROBES_INCL)
SRC_DIR=$(srcdir) $(RUBY) $< > $@

EXTRA_DIST += \
gen_ze.rb \
tracer_ze_helpers.include.c
tracer_ze_helpers.include.c \
sampling_daemon.c

CLEANFILES += tracer_ze.c

Expand Down
2 changes: 1 addition & 1 deletion ze/gen_ze.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def gen_struct_printer(namespace, types)
EOF

puts File::read(File.join(SRC_DIR,"tracer_ze_helpers.include.c"))

puts File::read(File.join(SRC_DIR,"sampling_daemon.c"))
common_block = lambda { |c, provider, types|
params = c.parameters ? c.parameters.collect(&:name) : []
tp_params = if c.parameters
Expand Down
Loading

0 comments on commit 5426406

Please sign in to comment.