Netdev List
 help / color / mirror / Atom feed
* [PATCH bpf-next v4 0/2] bpf stackmap with build_id+offset
@ 2018-03-12 20:39 Song Liu
  2018-03-12 20:39 ` [PATCH bpf-next v4 1/2] bpf: extend stackmap to save binary_build_id+offset instead of address Song Liu
  2018-03-12 20:39 ` [PATCH bpf-next v4 2/2] bpf: add selftest for stackmap with BPF_F_STACK_BUILD_ID Song Liu
  0 siblings, 2 replies; 12+ messages in thread
From: Song Liu @ 2018-03-12 20:39 UTC (permalink / raw)
  To: netdev, ast, peterz, daniel; +Cc: kernel-team, hannes, qinteng, Song Liu

This is v4 of this work. Changes since v3:

1. Add fallback when build_id lookup failed. In this case, status is set
   to BPF_STACK_BUILD_ID_IP, and ip of this entry is saved.
2. Handle cases where vma is only part of the file (vma->vm_pgoff != 0).
   Thanks to Teng for helping me identify this issue!
3. Address feedbacks for previous versions.

Song Liu (2):
  bpf: extend stackmap to save binary_build_id+offset instead of address
  bpf: add selftest for stackmap with BPF_F_STACK_BUILD_ID

 include/uapi/linux/bpf.h                           |  22 ++
 kernel/bpf/stackmap.c                              | 251 +++++++++++++++++++--
 tools/include/uapi/linux/bpf.h                     |  22 ++
 tools/testing/selftests/bpf/Makefile               |  12 +-
 tools/testing/selftests/bpf/test_progs.c           | 164 +++++++++++++-
 .../selftests/bpf/test_stacktrace_build_id.c       |  60 +++++
 tools/testing/selftests/bpf/urandom_read.c         |  22 ++
 7 files changed, 529 insertions(+), 24 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/test_stacktrace_build_id.c
 create mode 100644 tools/testing/selftests/bpf/urandom_read.c

--
2.9.5

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-04-24  0:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-12 20:39 [PATCH bpf-next v4 0/2] bpf stackmap with build_id+offset Song Liu
2018-03-12 20:39 ` [PATCH bpf-next v4 1/2] bpf: extend stackmap to save binary_build_id+offset instead of address Song Liu
2018-03-12 21:00   ` Alexei Starovoitov
2018-03-12 21:12     ` Song Liu
2018-03-12 21:31       ` Alexei Starovoitov
2018-03-12 22:47         ` Song Liu
2018-03-13 21:31           ` Song Liu
2018-03-12 22:01   ` Peter Zijlstra
2018-04-24  0:06     ` Yonghong Song
2018-03-13  9:53   ` [PATCH] bpf: fix semicolon.cocci warnings kbuild test robot
2018-03-13  9:53   ` [PATCH bpf-next v4 1/2] bpf: extend stackmap to save binary_build_id+offset instead of address kbuild test robot
2018-03-12 20:39 ` [PATCH bpf-next v4 2/2] bpf: add selftest for stackmap with BPF_F_STACK_BUILD_ID Song Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox