Skip to content

Commit

Permalink
cleanup(scap,sinsp): remove scap_nodriver_engine_params
Browse files Browse the repository at this point in the history
They are handled by the (Linux) platform, not the engine

Signed-off-by: Grzegorz Nosek <[email protected]>
  • Loading branch information
gnosek committed Oct 20, 2023
1 parent 33b3802 commit 4b185c3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
14 changes: 0 additions & 14 deletions userspace/libscap/engine/nodriver/nodriver_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,3 @@ limitations under the License.
#pragma once

#define NODRIVER_ENGINE "nodriver"

#ifdef __cplusplus
extern "C"
{
#endif

struct scap_nodriver_engine_params
{
bool full_proc_scan; //< run a full /proc scan instead of the normal reduced one (no threads, no sockets)
};

#ifdef __cplusplus
};
#endif
5 changes: 0 additions & 5 deletions userspace/libsinsp/sinsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,11 +642,6 @@ void sinsp::open_nodriver(bool full_proc_scan)
{
#ifdef HAS_ENGINE_NODRIVER
scap_open_args oargs = factory_open_args(NODRIVER_ENGINE, SCAP_MODE_NODRIVER);
struct scap_nodriver_engine_params params;
params.full_proc_scan = full_proc_scan;

oargs.engine_params = &params;

struct scap_platform* platform = scap_linux_alloc_platform(::on_new_entry_from_proc, this);
if(platform)
{
Expand Down

0 comments on commit 4b185c3

Please sign in to comment.