1. 30 Mar, 2016 1 commit
  2. 28 Mar, 2016 2 commits
  3. 27 Mar, 2016 6 commits
  4. 26 Mar, 2016 2 commits
    • Vicent Marti's avatar
      offcputime: Resolve stacks using a StackTrace table · e82fb1ba
      Vicent Marti authored
      The manual walking for kernel stacks in the eBPF code has been replaced
      with a `BPF_STACK_TRACE` table; the stack ID is now stored as an integer
      in the main key.
      
      Thanks to the `StackTrace.walk` iterator, the printing code can also be
      significantly simplified for both folded and full stack modes.
      e82fb1ba
    • Vicent Marti's avatar
      memleak: Resolve stacks with a StackTrace table · e25ae03e
      Vicent Marti authored
      Instead of manually walking the (kernel) stack inside the eBPF code,
      create a `BPF_STACK_TRACE` table and store the stack IDs in the alloc
      info struct.
      
      This greatly simplifies the leak detection code: instead of storing the
      full stack trace as a string to de-duplicate the allocation point for
      the different allocations, we can store the `stack_id`. Since we're
      creating stack IDs with `BPF_F_REUSE_STACKID`, the kernel will take care
      of deduplication for us.
      
      Additionally, the `StackDecoder` class has been specialized into a
      `UStackDecoder` and `KStackDecoder` (for userland and kernel stacks,
      respectively). This lets us pass the decode class directly to
      `stack_traces.walk()` to automate symbol resolution.
      
      A new class, `Allocation` has been created to encapsulate what
      previously was a 2-element tuple of `(count, size)`. This
      e25ae03e
  5. 25 Mar, 2016 2 commits
    • Vicent Marti's avatar
      examples: Add `mallocstacks` · 88899060
      Vicent Marti authored
      This simple example script traces all calls to `malloc` in a process and
      prints the callsite using the new `BPF_STACK_TRACE` table API.
      88899060
    • Vicent Marti's avatar
      table: Implement a StackWalker for StackTrace tables · 066eb309
      Vicent Marti authored
      The StackWalker iterator lets us call `stack_trace.walk(id)` to iterate
      through the addresses in any given stack. The constructor of this
      iterator takes an optional `resolver` to convert the addresses in the
      iterator into symbols (or to format them according to the users' needs).
      066eb309
  6. 24 Mar, 2016 2 commits
  7. 23 Mar, 2016 2 commits
  8. 22 Mar, 2016 2 commits
  9. 21 Mar, 2016 8 commits
  10. 20 Mar, 2016 1 commit
  11. 16 Mar, 2016 2 commits
  12. 11 Mar, 2016 2 commits
  13. 10 Mar, 2016 1 commit
  14. 08 Mar, 2016 4 commits
  15. 04 Mar, 2016 3 commits