1. 02 Nov, 2021 1 commit
    • Loïc Yhuel's avatar
      Fix incorrect string termination in ConnectionMapping · 203b72c2
      Loïc Yhuel authored and Arjen Hiemstra's avatar Arjen Hiemstra committed
      After readlinkat, the nul character is not written at the correct index.
      When readlinkat truncates the result, the code writes after the end of the array, which
      triggers an assert in libstdc++.
      In the other cases, it leaves an uninitialized char 'u' at the end of the array, but the
      code stops at the ']' of "socket:[...]u".
      (cherry picked from commit 6a60a626)
  2. 05 Sep, 2021 1 commit
    • Alexander Lohnau's avatar
      Run clang-format · a651ea9a
      Alexander Lohnau authored
      If you want git blame to ignore formatting revisions run:
      git config blame.ignoreRevsFile .git-blame-ignore-revs
  3. 21 Jul, 2021 1 commit
    • Arjen Hiemstra's avatar
      Rework ConnectionMapping to reduce CPU usage · 08764663
      Arjen Hiemstra authored
      This moves fetching socket info and mapping that to inodes and pids to
      its own thread that updates on a regular interval of 500ms. This gives
      us more control over how often this update happens and detaches it from
      the packet handling.
      If the address/inode/pid is not known, we simply return an invalid
      result like we would previously for items where we are unable to
      determine the PID. This can in theory lead to missing data from
      processes, if the socket gets constantly recreated in between the 500ms
  4. 29 Jun, 2021 2 commits
  5. 20 Apr, 2021 4 commits