1. 07 Feb, 2019 2 commits
    • Kirill Smelkov's avatar
      Merge branch 'master' into x/pinglat · a7635872
      Kirill Smelkov authored
      * master: (609 commits)
        docs: references_guide.md: add/fix search examples/tools links (#2186)
        Fix misc file permissions (#2185)
        sync with latest bpf (#2184)
        sync with latest libbpf repo (#2183)
        docs: fix broken link of bpf_log2l(#2176)
        examples/tracing: some minor fixes
        Fix tools/syscount -l (#2180)
        examples/tracing/bitehist.py: add example of linear histogram (#2177)
        cachestat: bring back HITRATIO column
        Fix debuginfo search on Ubuntu
        Add installation instructions for Amazon Linux 1 AMI Sign-Off-By Travis Davies <trdavies@amazon.com>
        [iovisor/bcc] trace: Incorrect symbol offsets when using build_id (#2161) (#2162)
        profile: exclude CPU idle stacks by default (#2166)
        fix cpuunclaimed.py with cfs_rq structure change (#2164)
        tools: rename "deadlock_detector" to "deadlock" (#2152) (#2160)
        use libbpf api in bpf_attach_xdp (#2158)
        support symbol resolution of short-lived process.  (#2144)
        profile.py: return kernel annotations for folded stacks
        use libbpf APIs from libbpf.c (#2156)
        ddos_detector.py to monitor DDOS attacks (#2140)
        ...
      a7635872
    • Kirill Smelkov's avatar
      X pinglat: Fix for recent kernels · 9fd77679
      Kirill Smelkov authored
      Need to include headers for `struct irq_desc` and `struct irq_common_data` that
      irq_desc uses without appropriate include.
      
      kirr@deco:~/src/tools/bpf/bcc/tools$ ./pinglat.py
      /virtual/main.c:33:31: error: incomplete definition of type 'struct irq_desc'
          const char *irqname = desc->action->name;
                                ~~~~^
      include/linux/irqnr.h:9:15: note: forward declaration of 'struct irq_desc'
      extern struct irq_desc *irq_to_desc(unsigned int irq);
                    ^
      1 error generated.
      Traceback (most recent call last):
        File "./pinglat.py", line 129, in <module>
          b = BPF(text=prog)
        File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 320, in __init__
          raise Exception("Failed to compile BPF text")
      Exception: Failed to compile BPF text
      9fd77679
  2. 05 Feb, 2019 3 commits
  3. 04 Feb, 2019 1 commit
  4. 03 Feb, 2019 6 commits
  5. 02 Feb, 2019 2 commits
  6. 01 Feb, 2019 1 commit
    • Anton Blanchard's avatar
      Fix debuginfo search on Ubuntu · 9d5f9721
      Anton Blanchard authored
      bcc on Ubuntu picks up the glibc binary instead of the debuginfo file
      because find_debug_via_debuglink() doesn't handle symbolic or hard
      links when checking if two paths point to the same file.
      
      Add a helper, same_file() which uses the device and inode to check if
      the two paths do point to the same file.
      Signed-off-by: default avatarAnton Blanchard <anton@ozlabs.org>
      9d5f9721
  7. 30 Jan, 2019 1 commit
  8. 29 Jan, 2019 1 commit
  9. 27 Jan, 2019 1 commit
  10. 24 Jan, 2019 2 commits
  11. 23 Jan, 2019 3 commits
  12. 22 Jan, 2019 3 commits
  13. 21 Jan, 2019 2 commits
    • Xiaozhou Liu's avatar
      print_log2_hist(): check and skip possible paddings (#2155) · 3f7b5966
      Xiaozhou Liu authored
      Address issue 2154.
      
      When a struct S is used as key to a BPF_HISTOGRAM, it is assumed that the second
      member of S holds the slot. But when S is converted to python from bpf C,
      a padding may be inserted as a second member. This breaks print_log2_hist().
      
          root@debian:~/bcc/tools# ./softirqs.py -d
          Tracing soft irq event time... Hit Ctrl-C to end.
          ^C
          Traceback (most recent call last):
            File "./softirqs.py", line 144, in <module>
              dist.print_log2_hist(label, "softirq", section_print_fn=vec_to_name)
            File "/usr/local/lib/python2.7/dist-packages/bcc/table.py", line 326, in print_log2_hist
              vals[slot] = v.value
          TypeError: list indices must be integers, not str
      
      Fix it by skipping the possible padding. Future work would be fixing/working
      around in the library where the padding is introduced.
      3f7b5966
    • yonghong-song's avatar
      Merge pull request #2149 from iovisor/yhs_dev · dc1254ed
      yonghong-song authored
      use kernel libbpf in bcc
      dc1254ed
  14. 18 Jan, 2019 3 commits
  15. 17 Jan, 2019 5 commits
  16. 16 Jan, 2019 4 commits