Skip to content

Commit

Permalink
feat(sinsp/threadinfo): expose thread uid and gid 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 authored and poiana committed Dec 11, 2024
1 parent 1cb5ce3 commit 0fd43cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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 = 30;
static const int s_threadinfo_static_fields_count = 33;

sinsp inspector;
auto table = static_cast<libsinsp::state::table<int64_t>*>(inspector.m_thread_manager.get());
Expand Down
6 changes: 3 additions & 3 deletions userspace/libsinsp/threadinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ libsinsp::state::static_struct::field_infos sinsp_threadinfo::static_fields() co
define_static_field(ret, this, m_container_id, "container_id");
define_static_field(ret, this, m_flags, "flags");
define_static_field(ret, this, m_fdlimit, "fd_limit");
// m_user
// m_loginuser
// m_group
define_static_field(ret, this, m_uid, "uid");
define_static_field(ret, this, m_gid, "gid");
define_static_field(ret, this, m_loginuid, "loginuid");
// m_cap_permitted
// m_cap_effective
// m_cap_inheritable
Expand Down

0 comments on commit 0fd43cb

Please sign in to comment.