Skip to content
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

new(userspace): plugin api to dump async events #2152

Merged
merged 8 commits into from
Nov 29, 2024
Merged

Commits on Nov 22, 2024

  1. new(userspace): added new plugin API capability to dump plugin state.

    Also, ASYNCEVENT_E will not be correctly pre-parsed at init time while reading from captures.
    
    Signed-off-by: Federico Di Pierro <[email protected]>
    FedeDP committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    f9a925b View commit details
    Browse the repository at this point in the history
  2. chore(userspace/plugin): bumped plugin API version to 3.10.0

    Signed-off-by: Federico Di Pierro <[email protected]>
    FedeDP committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    dcc53a4 View commit details
    Browse the repository at this point in the history
  3. new(userspace): moved dump API under async capability.

    We now expect `PPME_ASYNCEVENT_E` whose `name` matches one of the
    plugin supported ones (get_async_events() API).
    
    The new API is not required for async capability.
    
    Added also a test.
    
    Signed-off-by: Federico Di Pierro <[email protected]>
    FedeDP committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    b425744 View commit details
    Browse the repository at this point in the history
  4. chore(userspace/libsinsp): disable plugin_dump test on emscripten.

    Other tests using no_driver engine and async plugin are also disabled on it.
    
    Signed-off-by: Federico Di Pierro <[email protected]>
    FedeDP committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    b3601e2 View commit details
    Browse the repository at this point in the history
  5. chore(userspace/libsinsp): fixed comment string.

    Signed-off-by: Federico Di Pierro <[email protected]>
    FedeDP committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    9a8be80 View commit details
    Browse the repository at this point in the history
  6. new(userspace): dump API now takes a `ss_plugin_async_event_handler…

    …_t` callback.
    
    Signed-off-by: Federico Di Pierro <[email protected]>
    FedeDP committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    d01b079 View commit details
    Browse the repository at this point in the history
  7. chore(userspace/libsinsp): call plugin dump API from fdopen too.

    Signed-off-by: Federico Di Pierro <[email protected]>
    FedeDP committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    6b32c70 View commit details
    Browse the repository at this point in the history
  8. fix(userspace/libsinsp): address review comments.

    Signed-off-by: Federico Di Pierro <[email protected]>
    
    Co-authored-by: Jason Dellaluce <[email protected]>
    FedeDP and jasondellaluce committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    7fcd4dc View commit details
    Browse the repository at this point in the history