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

sync 0.17.x branch #1974

Merged

Commits on Jul 23, 2024

  1. cleanup(userspace/libsinsp): small perf improvements.

    Properly keep a reference on m_sinsp_stats_v2 where needed, instead of fetching it every time.
    Moreover, improve perf in `sinsp_utils::ts_to_string`: cache `gmt2local` result instead of fetching it every time as it is an heavy operation.
    
    Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
    FedeDP authored and LucaGuerra committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    c601364 View commit details
    Browse the repository at this point in the history
  2. fix(userspace/libsinsp): allow sinsp_stats_v2_collectors lambdas to…

    … return empty value, to be skipped, when requirements are not met.
    
    For now, this means that metrics that require `m_sinsp_stats_v2` will be automatically skipped when it is disabled.
    
    Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
    FedeDP authored and LucaGuerra committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    12efda5 View commit details
    Browse the repository at this point in the history
  3. chore(userspace/libsinsp): make thiszone thread local.

    Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
    FedeDP authored and LucaGuerra committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    3c16a13 View commit details
    Browse the repository at this point in the history
  4. chore(userspace/libsinsp): revert gmt2local changes.

    Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
    FedeDP authored and LucaGuerra committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    5802fb8 View commit details
    Browse the repository at this point in the history
  5. fix(libsinsp): fix empty buffer read in transformer

    Signed-off-by: Luca Guerra <luca@guerra.sh>
    LucaGuerra committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    81c598b View commit details
    Browse the repository at this point in the history
  6. fix(userspace/libsinsp): solve issues with negate comparisons on ip a…

    …nd ipnet checks
    
    Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
    jasondellaluce authored and LucaGuerra committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    2f91bc4 View commit details
    Browse the repository at this point in the history
  7. new(libsinsp): add debug log for corrupted events

    Signed-off-by: Luca Guerra <luca@guerra.sh>
    LucaGuerra committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    71730dd View commit details
    Browse the repository at this point in the history
  8. update(libsinsp): raise error severity

    Signed-off-by: Luca Guerra <luca@guerra.sh>
    LucaGuerra committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    4b89369 View commit details
    Browse the repository at this point in the history
  9. cleanup(driver): simplify exe_upper_layer extraction

    Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
    Andreagit97 authored and LucaGuerra committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    dba835e View commit details
    Browse the repository at this point in the history
  10. fix(driver): correctly handle upper_dentry in the kmod

    Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
    Co-authored-by: Federico Di Pierro <nierro92@gmail.com>
    2 people authored and LucaGuerra committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    640c038 View commit details
    Browse the repository at this point in the history
  11. fix(driver/kmod): avoid mixed declarations and code error

    Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
    Andreagit97 authored and LucaGuerra committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    e6254d5 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. update(cmake): Build zlib using CMake on Windows

    Build zlib using CMake on Windows instead of nmake. The nmakefile passes
    "-base:0x5A4C0000" to the linker, which is too small on Arm64 and not
    really needed or wanted on any platform these days.
    
    madler/zlib#325
    
    Signed-off-by: Gerald Combs <gerald@wireshark.org>
    geraldcombs authored and LucaGuerra committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    4142e3d View commit details
    Browse the repository at this point in the history
  2. update(cmake): Make sure we link zlib with the correct Windows CRT

    Set CMAKE_POLICY_DEFAULT_CMP0091, CMAKE_MSVC_RUNTIME_LIBRARY,
    and CMAKE_BUILD_TYPE when we configure zlib, similar to our other
    dependencies.
    
    Signed-off-by: Gerald Combs <gerald@wireshark.org>
    geraldcombs authored and LucaGuerra committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    62274fe View commit details
    Browse the repository at this point in the history
  3. fix(ci,test): fixed centos:7 related CI by using vault.centos.org.

    Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
    FedeDP authored and LucaGuerra committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    d1c1b1f View commit details
    Browse the repository at this point in the history
  4. chore(ci): cleanup inputs.arch usage in drivers_ci.

    Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
    FedeDP authored and LucaGuerra committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    9c8dfc1 View commit details
    Browse the repository at this point in the history
  5. update(cmake): Use the correct zlib debug library name on Windows

    The debug versions of zlib have a "d" in their name, e.g. zlibstaticd.lib.
    
    Signed-off-by: Gerald Combs <gerald@wireshark.org>
    geraldcombs authored and LucaGuerra committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    aeaa769 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2024

  1. fix(userspace/libsinsp): Include cri.hpp in container.cpp

    Include cri.hpp in container.cpp in order to avoid
    
    ```
    /usr/bin/ld: /usr/lib/aarch64-linux-gnu/libsinsp.so: undefined reference to `libsinsp::cri::cri_interface<libsinsp::cri::cri_api_v1>::get_cri_runtime_type() const'
    collect2: error: ld returned 1 exit status
    ```
    
    when building with shared libs on Linux.
    
    Signed-off-by: Gerald Combs <gerald@wireshark.org>
    geraldcombs authored and LucaGuerra committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    3f45051 View commit details
    Browse the repository at this point in the history
  2. fix(libsinsp): add missing include map

    Signed-off-by: Luca Guerra <luca@guerra.sh>
    LucaGuerra committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    1003b0f View commit details
    Browse the repository at this point in the history
  3. fix(sinsp): invalid threads shoudln't be in a pid namespace

    Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
    Andreagit97 authored and LucaGuerra committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    f581ec7 View commit details
    Browse the repository at this point in the history
  4. fix(driver/bpf): close maps on cleanup

    Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
    therealbobo authored and LucaGuerra committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    0bc1794 View commit details
    Browse the repository at this point in the history
  5. chore(libscap/engine/bpf): reset bpf_map_fds to -1

    Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
    therealbobo authored and LucaGuerra committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    b8ea9b2 View commit details
    Browse the repository at this point in the history
  6. chore(engine/bpf): close only used fds

    Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
    therealbobo authored and LucaGuerra committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    cf1dec3 View commit details
    Browse the repository at this point in the history