Skip to content

Commit

Permalink
feat(sinsp/threadinfo): expose thread cmdline as static fields
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Giovanna <[email protected]>
  • Loading branch information
ekoops committed Dec 11, 2024
1 parent 0fd43cb commit 9f6c91a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libsinsp/test/state.ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<libsinsp::state::table<int64_t>*>(inspector.m_thread_manager.get());
Expand Down
1 change: 1 addition & 0 deletions userspace/libsinsp/threadinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f6c91a

Please sign in to comment.