Skip to content

Commit

Permalink
Fix dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Applencourt committed Nov 7, 2023
1 parent b1aff68 commit 84b6f18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions ze/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ BTX_ZE_GENERATED = \
EXTRA_DIST = \
$(top_srcdir)/utils/babeltrace_to_metababel_model.rb \
$(top_srcdir)/xprof/btx_interval_model.yaml \
btx_zematching_model.yaml
btx_zematching_model.yaml \
babeltrace_zeprofiling_apis.txt

CLEANFILES = btx_ze_model.yaml

Expand Down Expand Up @@ -288,10 +289,11 @@ BUILT_SOURCES += \
$(BTX_ZE_GENERATED)

nodist_libZEInterval_la_SOURCES = \
$(BTX_HIP_GENERATED) \
$(BTX_ZE_GENERATED) \
xprof_utils.hpp

libZEInterval_la_SOURCES = \
btx_zeinterval_callbacks.cpp \
btx_zeinterval_callbacks.hpp

libZEInterval_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(srcdir)/include -I./ -I./btx_filter_ze
Expand Down Expand Up @@ -373,4 +375,4 @@ CLEANFILES += \
tests/ze_dummy_trace.yaml \
$(DUST_COMMON) \
$(DUST_SPECIFIC) \
$(TRACE_COMMON)
$(TRACE_COMMON)
4 changes: 2 additions & 2 deletions ze/btx_zeinterval_callbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <zeinterval_callbacks.hpp>
#include <btx_zeinterval_callbacks.hpp>

std::string strip_event_class_name(const char *str) {
std::string temp(str);
Expand All @@ -22,7 +22,7 @@ std::string strip_event_class_name(const char *str) {

static void add_memory(data_t *state, hp_t hp, uintptr_t ptr, size_t size,
std::string source) {
std::unordered_map<hp_t, memory_interval_t> *mi;
std::unordered_map<hp_t, memory_interval_t> *mi = nullptr;
if (source == "lttng_ust_ze:zeMemAllocHost_exit")
mi = &state->rangeset_memory_host;
else if (source == "lttng_ust_ze:zeMemAllocDevice_exit")
Expand Down

0 comments on commit 84b6f18

Please sign in to comment.