1. 27 Apr, 2018 1 commit
  2. 26 Apr, 2018 6 commits
  3. 25 Apr, 2018 4 commits
  4. 24 Apr, 2018 5 commits
  5. 23 Apr, 2018 1 commit
  6. 20 Apr, 2018 2 commits
  7. 19 Apr, 2018 4 commits
  8. 18 Apr, 2018 3 commits
  9. 17 Apr, 2018 3 commits
    • Cong Wang's avatar
      Use better kprobes for runqlat.py · e26019fc
      Cong Wang authored
      e26019fc
    • Yonghong Song's avatar
      fix profile.py with latest net-next · b5fcb51e
      Yonghong Song authored
      The profile.py tries to validate whether the "ip" from the
      context register is a kernel ip address or not by comparing
      "ip" to the kernel PAGE_OFFSET.
      
      On non-x86_64 architectures, PAGE_OFFSET can be directly used.
      On x86_64 architecture, things become more complex.
      With 4.17 (latest linus tree), __PAGE_OFFSET_BASE is gone
      and replaced with __PAGE_OFFSET_BASE_L5 and __PAGE_OFFSET_BASE_L4
      for 5 and 4 level page table respectively.
      Running profile.py will have the following error:
          /virtual/main.c:41:18: error: use of undeclared identifier '__PAGE_OFFSET_BASE'
                  if (ip > __PAGE_OFFSET_BASE) {
                           ^
          1 error generated.
      
      So, for 4.17, __PAGE_OFFSET_BASE_{L4, L5} should be used.
      For 4.16 and some old kernels (e.g., 4.11), which I did not
      check earlier one, __PAGE_OFFSET_BASE should be used.
      For even older kernels like 4.6, PAGE_OFFSET should be used.
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      b5fcb51e
    • 4ast's avatar
      Merge pull request #1686 from iovisor/yhs_dev · f4e1c334
      4ast authored
      fix python3 py_test_histogram failure
      f4e1c334
  10. 16 Apr, 2018 3 commits
    • yonghong-song's avatar
      Merge pull request #1682 from hMcLauchlan/inject-qol · 22ea950f
      yonghong-song authored
      QoL improvements for inject
      22ea950f
    • Yonghong Song's avatar
      fix python3 py_test_histogram failure · 9357f35c
      Yonghong Song authored
      With python3 (specifically 3.6.3), py_test_histogram failed with:
        Traceback (most recent call last):
        File "./test_histogram.py", line 106, in test_multiple_key
          bucket_sort_fn=bucket_sort)
        File "/usr/lib/python3.6/site-packages/bcc/table.py", line 318, in print_log2_hist
          buckets = bucket_sort_fn(buckets)
        File "./test_histogram.py", line 98, in bucket_sort
          buckets.sort()
        AttributeError: 'dict_keys' object has no attribute 'sort'
      
      The reason is for a dictionary tmp, tmp.keys() returns an object
      of keys (a list) instead of the list itself for python3.
      Using list(tmp.keys()) seems working for both python2 and python3.
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      9357f35c
    • 4ast's avatar
      Merge pull request #1687 from iovisor/yhs_dev2 · 6f53be35
      4ast authored
      fix test_libbcc failure with 4.15.
      6f53be35
  11. 15 Apr, 2018 1 commit
    • Yonghong Song's avatar
      fix test_libbcc failure with 4.15. · c40b5fd6
      Yonghong Song authored
      The test sleeps one second and expects the perf counter to
      be one second or more. But in reality (probably esp. in VM
      which I conducted my experiments), I mostly saw counters
      between 0.9s - 1s and occasionally 0.8s - 0.9s.
      
      So be a little bit conservative here when checking the
      result.
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      c40b5fd6
  12. 13 Apr, 2018 4 commits
  13. 11 Apr, 2018 2 commits
  14. 10 Apr, 2018 1 commit