[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200623070802.2310018-1-songliubraving@fb.com>
Date: Tue, 23 Jun 2020 00:07:59 -0700
From: Song Liu <songliubraving@...com>
To: <bpf@...r.kernel.org>, <netdev@...r.kernel.org>
CC: <ast@...nel.org>, <daniel@...earbox.net>, <kernel-team@...com>,
<john.fastabend@...il.com>, <kpsingh@...omium.org>,
Song Liu <songliubraving@...com>
Subject: [PATCH bpf-next 0/3] bpf: introduce bpf_get_task_stack_trace()
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
Powered by blists - more mailing lists