1. 21 Apr, 2017 1 commit
    • Brenden Blanco's avatar
      Fix for verifier failure in wakeuptime · 04b05d5f
      Brenden Blanco authored
      On my system, the manually unrolled stack walker fails the verifier, due
      to what seems to me like an incorrect return statement. Setting bp = 0
      has no effect, seems that the intent was to return 0 instead.
      
      Not sure why others haven't hit this, but the fix contained here seems
      reasonable.
      Signed-off-by: default avatarBrenden Blanco <bblanco@gmail.com>
      04b05d5f
  2. 20 Apr, 2017 6 commits
  3. 19 Apr, 2017 4 commits
  4. 18 Apr, 2017 1 commit
  5. 17 Apr, 2017 1 commit
  6. 16 Apr, 2017 1 commit
  7. 15 Apr, 2017 1 commit
  8. 14 Apr, 2017 2 commits
  9. 13 Apr, 2017 1 commit
    • Sasha Goldshtein's avatar
      cc: Prefer external debuginfo files to the binary itself (#1111) · a359a900
      Sasha Goldshtein authored
      On some distributions, the debuglink section in the binary will
      not have a .debug file extension. As a result, we will try to look
      for the debuginfo file in the binary itself, immediately find it,
      and abort looking for any other alternatives. This is not good,
      because the binary might contain stripped or partial symbols,
      which precludes certain tools from realizing their full potential.
      
      Fix by checking that the debuginfo file we're trying to use is
      not the same as the binary file. In any case, if external debuginfo
      can't be found, we will fall back to the symbols in the original
      binary file, if present, so this should not regress any existing
      scenario.
      a359a900
  10. 12 Apr, 2017 3 commits
  11. 11 Apr, 2017 1 commit
  12. 08 Apr, 2017 4 commits
  13. 06 Apr, 2017 8 commits
  14. 05 Apr, 2017 6 commits
    • Marek Vavruša's avatar
      lua/bpf: cleanup, nicer code dump format · 67bb1502
      Marek Vavruša authored
      67bb1502
    • Marek Vavruša's avatar
      lua/bpf: implement explicit PTR[0] operation · d28957ef
      Marek Vavruša authored
      the BPF maps and pointers were previously
      implicitly dereferenced whenever an operation
      on them required a value and not a pointer.
      the upside is that accessing map element data
      didn’t require an explicit operation, the downside
      is that it wasn’t possible to get the value
      explicitly.
      
      this makes it possible to dereference any pointer
      and materialize the value in the register as long
      as it’s shorter than register width using `ptr[0]`
      element access operator.
      d28957ef
    • Marek Vavruša's avatar
      lua/bpf: implemented emulated LD_ABS64 · fefaf32b
      Marek Vavruša authored
      the DW LD_ABS|IND is prohibited, so it is
      implemented as a double W load with shift.
      this is slow as it also has to undo the ntohl
      semantics of W loads, but makes dissection of
      64bit fields with absolute addressing possible 
      fefaf32b
    • Marek Vavruša's avatar
      lua/bpf: implemented packet direct access · 7addb8ac
      Marek Vavruša authored
      the direct access to packet is implemented as
      a `load_bytes(off, var)` built-in for basic support,
      there is no implicit data loader using it yet
      7addb8ac
    • Marek Vavruša's avatar
      lua/bpf: support for NET_OFF for dissector · 9704add7
      Marek Vavruša authored
      the packet can now use indirect addressing mode
      using NET_OFF to read from network protocol off
      
      it has convenience dissectors for IPv4 and IPv6,
      that can be used like:
      
      ```
      local net = pkt.net_off
      if net.ver == 4 then
          local ip = net.ip
      else
          local ip6 = net.ip6
      end
      ```
      9704add7
    • 4ast's avatar
      Merge pull request #1093 from palmtenor/symfree · f762df56
      4ast authored
      Free demangle_name after use
      f762df56