diff --git a/userspace/libsinsp/test/state.ut.cpp b/userspace/libsinsp/test/state.ut.cpp index 7b95e97dd2..56cf8d32d9 100644 --- a/userspace/libsinsp/test/state.ut.cpp +++ b/userspace/libsinsp/test/state.ut.cpp @@ -352,7 +352,7 @@ TEST(table_registry, defs_and_access) { TEST(thread_manager, table_access) { // note: used for regression checks, keep this updated as we make // new fields available - static const int s_threadinfo_static_fields_count = 33; + static const int s_threadinfo_static_fields_count = 34; sinsp inspector; auto table = static_cast*>(inspector.m_thread_manager.get()); diff --git a/userspace/libsinsp/threadinfo.cpp b/userspace/libsinsp/threadinfo.cpp index 274eb9775b..01e21a0ad5 100644 --- a/userspace/libsinsp/threadinfo.cpp +++ b/userspace/libsinsp/threadinfo.cpp @@ -102,6 +102,7 @@ libsinsp::state::static_struct::field_infos sinsp_threadinfo::static_fields() co // m_program_hash // m_program_hash_scripts define_static_field(ret, this, m_tty, "tty"); + define_static_field(ret, this, m_cmd_line, "cmd_line"); // m_category // m_clone_ts // m_lastexec_ts