Skip to content

Commit eed8c8d

Browse files
committed
Fix compilation error in go_binary_parse_profiling
Signed-off-by: Dom Del Nano <[email protected]> (cherry picked from commit 7ce56b9)
1 parent ef6e65f commit eed8c8d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/stirling/binaries/go_binary_parse_profiling.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,13 @@ int main(int argc, char** argv) {
6666

6767
auto build_info_s = ReadGoBuildInfo(elf_reader.get());
6868
const auto& [go_version, build_info] = build_info_s.ConsumeValueOrDie();
69-
std::unique_ptr<GoOffsetLocator> go_offset_locator =
70-
std::make_unique<GoOffsetLocator>(dwarf_reader.get(), build_info, go_version);
69+
px::stirling::StructOffsetMap struct_offsets;
70+
px::stirling::FunctionArgMap function_args;
71+
std::unique_ptr<GoOffsetLocator> go_offset_locator = std::make_unique<GoOffsetLocator>(
72+
dwarf_reader.get(), struct_offsets, function_args, build_info, go_version);
7173

7274
struct go_tls_symaddrs_t symaddrs;
73-
auto status = PopulateGoTLSDebugSymbols(elf_reader.get(), go_offset_locator.get(), &symaddrs);
75+
auto status = PopulateGoTLSDebugSymbols(go_offset_locator.get(), &symaddrs);
7476

7577
if (!status.ok()) {
7678
LOG(ERROR) << absl::Substitute("debug symbol parsing failed with: $0", status.msg());

0 commit comments

Comments
 (0)