-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cleanup(scap,sinsp): Clean up proc callback handling code #1471
Commits on Nov 10, 2023
-
doc(scap): remove misleading comment
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 94ac9db - Browse repository at this point
Copy the full SHA 94ac9dbView commit details -
cleanup(scap): avoid allocations in scap_proc_scan_vtable
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for b8cac94 - Browse repository at this point
Copy the full SHA b8cac94View commit details -
cleanup(scap): handle allocations internally in scap_add_fd_to_proc_t…
…able Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 0dc920a - Browse repository at this point
Copy the full SHA 0dc920aView commit details -
cleanup(scap): inline scap_fd_scan_vtable
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for ac864f0 - Browse repository at this point
Copy the full SHA ac864f0View commit details -
cleanup(scap): delay allocations in scap_proc_add_from_proc
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for f93c240 - Browse repository at this point
Copy the full SHA f93c240View commit details -
cleanup(scap): only touch the internal fdlist when proc callback is n…
…ot set (in scap_fd_add_to_proc_table) Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 10fea48 - Browse repository at this point
Copy the full SHA 10fea48View commit details -
cleanup(scap): remove fdinfo alloc/free functions
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 29b5367 - Browse repository at this point
Copy the full SHA 29b5367View commit details -
cleanup(scap): extend proc_callback type for future expansion
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for be1dd84 - Browse repository at this point
Copy the full SHA be1dd84View commit details -
cleanup(scap): introduce default proc callback
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 2aab28a - Browse repository at this point
Copy the full SHA 2aab28aView commit details -
cleanup(scap): introduce helper for initializing the proclist
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 56c8f74 - Browse repository at this point
Copy the full SHA 56c8f74View commit details -
cleanup(scap): use default proc callback instead of NULL checks
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 06e6c3c - Browse repository at this point
Copy the full SHA 06e6c3cView commit details -
cleanup(scap): inline scap_add_fd_to_proc_table
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 1147ab9 - Browse repository at this point
Copy the full SHA 1147ab9View commit details -
cleanup(scap): remove some unused includes
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 2b05f1f - Browse repository at this point
Copy the full SHA 2b05f1fView commit details -
cleanup(scap): flatten scap_proc_scan_vtable a bit
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for b37a50a - Browse repository at this point
Copy the full SHA b37a50aView commit details -
cleanup(scap): remove procinfo from scap_proc_add_from_proc
This is effectively a special-case single-entry proclist Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 84c5ddb - Browse repository at this point
Copy the full SHA 84c5ddbView commit details -
cleanup(scap): remove proclist from scap_proc_read_thread
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 17c3be9 - Browse repository at this point
Copy the full SHA 17c3be9View commit details -
cleanup(scap): remove proclist from vtable->get_proc
It was always unclear (to me) what the proclist is used for, exactly. It turns out it's just a holder for the callback which was ignored in the previous implementation and now is replaced by a completely different temporary proclist. Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 93ed318 - Browse repository at this point
Copy the full SHA 93ed318View commit details -
cleanup(scap): remove scap_t from scap_proc_free
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 7aa434c - Browse repository at this point
Copy the full SHA 7aa434cView commit details -
cleanup(scap): remove scap_t from scap_fd_add
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for a0dfaad - Browse repository at this point
Copy the full SHA a0dfaadView commit details -
cleanup(scap): remove scap_proc_alloc
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for f38a596 - Browse repository at this point
Copy the full SHA f38a596View commit details -
cleanup(scap,sinp): do not allocate scap_threadinfo for scap_proc_get
We don't need a heap-allocated tinfo just to pass it to sinsp_threadinfo::init Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for b5db5a0 - Browse repository at this point
Copy the full SHA b5db5a0View commit details -
cleanup(scap): remove scap_proc_free
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for db81cce - Browse repository at this point
Copy the full SHA db81cceView commit details -
cleanup(scap): remove unused parameter from scap_fd_add
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for 14ef2c4 - Browse repository at this point
Copy the full SHA 14ef2c4View commit details -
cleanup(scap): move scap_alloc_proclist_info to scap_procs.c
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
Configuration menu - View commit details
-
Copy full SHA for d440f43 - Browse repository at this point
Copy the full SHA d440f43View commit details