1. 08 3月, 2018 8 次提交
  2. 14 2月, 2018 1 次提交
  3. 22 12月, 2017 1 次提交
  4. 06 11月, 2017 1 次提交
  5. 20 10月, 2017 2 次提交
  6. 25 8月, 2017 1 次提交
  7. 12 7月, 2017 1 次提交
  8. 22 6月, 2017 1 次提交
  9. 09 6月, 2017 1 次提交
  10. 04 4月, 2017 1 次提交
    • A
      tracing/kprobes: expose maxactive for kretprobe in kprobe_events · 696ced4f
      Alban Crequy 提交于
      When a kretprobe is installed on a kernel function, there is a maximum
      limit of how many calls in parallel it can catch (aka "maxactive"). A
      kernel module could call register_kretprobe() and initialize maxactive
      (see example in samples/kprobes/kretprobe_example.c).
      
      But that is not exposed to userspace and it is currently not possible to
      choose maxactive when writing to /sys/kernel/debug/tracing/kprobe_events
      
      The default maxactive can be as low as 1 on single-core with a
      non-preemptive kernel. This is too low and we need to increase it not
      only for recursive functions, but for functions that sleep or resched.
      
      This patch updates the format of the command that can be written to
      kprobe_events so that maxactive can be optionally specified.
      
      I need this for a bpf program attached to the kretprobe of
      inet_csk_accept, which can sleep for a long time.
      
      This patch includes a basic selftest:
      
      > # ./ftracetest -v  test.d/kprobe/
      > === Ftrace unit tests ===
      > [1] Kprobe dynamic event - adding and removing	[PASS]
      > [2] Kprobe dynamic event - busy event check	[PASS]
      > [3] Kprobe dynamic event with arguments	[PASS]
      > [4] Kprobes event arguments with types	[PASS]
      > [5] Kprobe dynamic event with function tracer	[PASS]
      > [6] Kretprobe dynamic event with arguments	[PASS]
      > [7] Kretprobe dynamic event with maxactive	[PASS]
      >
      > # of passed:  7
      > # of failed:  0
      > # of unresolved:  0
      > # of untested:  0
      > # of unsupported:  0
      > # of xfailed:  0
      > # of undefined(test bug):  0
      
      BugLink: https://github.com/iovisor/bcc/issues/1072
      Link: http://lkml.kernel.org/r/1491215782-15490-1-git-send-email-alban@kinvolk.ioAcked-by: NMasami Hiramatsu <mhiramat@kernel.org>
      Signed-off-by: NAlban Crequy <alban@kinvolk.io>
      Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org>
      696ced4f
  11. 24 3月, 2017 1 次提交
  12. 15 3月, 2017 1 次提交
  13. 01 3月, 2017 1 次提交
  14. 23 2月, 2017 1 次提交
  15. 30 11月, 2016 1 次提交
  16. 18 11月, 2016 3 次提交
  17. 16 11月, 2016 1 次提交
  18. 15 11月, 2016 1 次提交
  19. 22 10月, 2016 1 次提交
  20. 03 9月, 2016 2 次提交
  21. 02 9月, 2016 1 次提交
  22. 24 8月, 2016 3 次提交
  23. 20 6月, 2016 1 次提交
  24. 04 5月, 2016 1 次提交
  25. 23 4月, 2016 1 次提交
  26. 20 4月, 2016 2 次提交