Skip to content

Commit

Permalink
chore(userspace/libsinsp): call plugin dump API from fdopen too.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Nov 12, 2024
1 parent 2ff9268 commit 5dbd02e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions userspace/libsinsp/dumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ void sinsp_dumper::fdopen(sinsp* inspector, int fd, bool compress) {
inspector->m_container_manager.dump_containers(*this);
inspector->m_usergroup_manager.dump_users_groups(*this);

// ask registered ASYNC plugins for a dump of their state
for(auto& p : inspector->m_plugin_manager->plugins()) {
if(p->caps() & CAP_ASYNC) {
p->dump(*this);

Check warning on line 102 in userspace/libsinsp/dumper.cpp

View check run for this annotation

Codecov / codecov/patch

userspace/libsinsp/dumper.cpp#L102

Added line #L102 was not covered by tests
}
}

m_nevts = 0;
}

Expand Down

0 comments on commit 5dbd02e

Please sign in to comment.