1. 06 Feb, 2018 1 commit
  2. 05 Feb, 2018 5 commits
  3. 04 Feb, 2018 4 commits
  4. 03 Feb, 2018 1 commit
  5. 02 Feb, 2018 3 commits
  6. 01 Feb, 2018 1 commit
  7. 31 Jan, 2018 2 commits
  8. 30 Jan, 2018 1 commit
  9. 29 Jan, 2018 6 commits
  10. 28 Jan, 2018 7 commits
  11. 27 Jan, 2018 2 commits
  12. 25 Jan, 2018 5 commits
    • 4ast's avatar
      Merge pull request #1554 from iovisor/yhs_dev · 08be4432
      4ast authored
      add a probe alias $task in trace.py
      08be4432
    • Yonghong Song's avatar
      add a probe alias $task in trace.py · f92fef26
      Yonghong Song authored
      The $task refers to the current task. In my particular case, I need
      to trace the number of users for file system associated with the current
      task. With the probe alias $task, trace.py can easily trace this event
      
        ......
        trace.py -I 'linux/fs_struct.h' 'mntns_install "users = %d", $task->fs->users'
        PID     TID     COMM            FUNC             -
        176566  176566  python2.7       mntns_install    users = 2
        176566  176566  python2.7       mntns_install    users = 2
        ......
      
      With $task probe alias, kernel tast_struct fields can be used in trace.py
      filter or output easily even if they cannot be accessed through input
      parameters.
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      f92fef26
    • 4ast's avatar
      Merge pull request #1552 from iovisor/yhs_dev · 12f4f6e2
      4ast authored
      use __builtin_memset instead of memset with frontend rewriter
      12f4f6e2
    • 4ast's avatar
      Merge pull request #1551 from iovisor/yhs_dev · 3baf183c
      4ast authored
      fix flaky test py_test_usdt3
      3baf183c
    • Yonghong Song's avatar
      use __builtin_memset instead of memset with frontend rewriter · 1ab5f663
      Yonghong Song authored
      When kernel CONFIG_KASAN is enabled, the function memset becomes
      a global function __memset. The bcc application with probe
      rewrite will incur an error like:
      
        error: <unknown>:0:0: in function tracepoint__task__task_newtask i32
               (%struct.tracepoint__task__task_newtask*): A call to global function
               '__memset' is not supported. Only calls to predefined BPF helpers
               are allowed.
      
      Replace memset function with clang __builtin_memset so that
      the compiler is able to eventually optimize it away.
      Signed-off-by: default avatarYonghong Song <yhs@localhost.localdomain>
      1ab5f663
  13. 24 Jan, 2018 2 commits
    • Yonghong Song's avatar
      fix flaky test py_test_usdt3 · ddfaa999
      Yonghong Song authored
      py_test_usdt3 has shown flakiness recently, and I actually reproduced
      it on FC27. This patch increases the iteration number for
      kprobe_poll and I ran the test for more than 20 times
      without any failure.
      
      Also fix a python3 compability issue. Open the file to write with
      attribute "wb" instead of "w" since the text string is a byte array.
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      ddfaa999
    • 4ast's avatar
      Merge pull request #1549 from iovisor/yhs_dev · 0cf7f748
      4ast authored
      fix a race condition between perf_reader munmap and read
      0cf7f748