Skip to content

Commit

Permalink
fix(sinsp): add explicit instantiations for table_accessor::set
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
  • Loading branch information
gnosek committed Dec 13, 2024
1 parent 40302ac commit c4f4c5b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions userspace/libsinsp/state/table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,30 @@ void libsinsp::state::table_accessor::set(sinsp_table_owner* p, libsinsp::state:
input.key_type = m_table->key_info().type_id();
}

template void libsinsp::state::table_accessor::set<int8_t>(sinsp_table_owner* p,
libsinsp::state::table<int8_t>* t);
template void libsinsp::state::table_accessor::set<int16_t>(sinsp_table_owner* p,
libsinsp::state::table<int16_t>* t);
template void libsinsp::state::table_accessor::set<int32_t>(sinsp_table_owner* p,
libsinsp::state::table<int32_t>* t);
template void libsinsp::state::table_accessor::set<int64_t>(sinsp_table_owner* p,
libsinsp::state::table<int64_t>* t);
template void libsinsp::state::table_accessor::set<uint8_t>(sinsp_table_owner* p,
libsinsp::state::table<uint8_t>* t);
template void libsinsp::state::table_accessor::set<uint16_t>(sinsp_table_owner* p,
libsinsp::state::table<uint16_t>* t);
template void libsinsp::state::table_accessor::set<uint32_t>(sinsp_table_owner* p,
libsinsp::state::table<uint32_t>* t);
template void libsinsp::state::table_accessor::set<uint64_t>(sinsp_table_owner* p,
libsinsp::state::table<uint64_t>* t);
template void libsinsp::state::table_accessor::set<std::string>(
sinsp_table_owner* p,
libsinsp::state::table<std::string>* t);
template void libsinsp::state::table_accessor::set<bool>(sinsp_table_owner* p,
libsinsp::state::table<bool>* t);
// Do not instantiate the template for libsinsp::state::base_table* since a table cannot be used
// as a key for another table

void libsinsp::state::table_accessor::unset() {
m_owner_plugin = nullptr;
m_table = nullptr;
Expand Down

0 comments on commit c4f4c5b

Please sign in to comment.