[PATCH bpf-next 0/3] bpf: introduce bpf_get_task_stack_trace()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This set introduces a new helper bpf_get_task_stack_trace(). The primary
use case is to dump all /proc/*/stack to seq_file via bpf_iter__task.

Song Liu (3):
  bpf: introduce helper bpf_get_task_stack_trace()
  bpf: allow %pB in bpf_seq_printf()
  selftests/bpf: add bpf_iter test with bpf_get_task_stack_trace()

 include/uapi/linux/bpf.h                      | 10 +++-
 kernel/trace/bpf_trace.c                      | 24 ++++++++-
 scripts/bpf_helpers_doc.py                    |  2 +
 tools/include/uapi/linux/bpf.h                | 10 +++-
 .../selftests/bpf/prog_tests/bpf_iter.c       | 17 +++++++
 .../selftests/bpf/progs/bpf_iter_task_stack.c | 50 +++++++++++++++++++
 6 files changed, 110 insertions(+), 3 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/progs/bpf_iter_task_stack.c

--
2.24.1




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux