On Sun, Jan 24, 2021 at 11:54 AM Andrei Matei [off-list ref] wrote:
get_base_addr is generally useful for tests attaching uprobes. This
patch moves it from one particular test to test_progs.{h,c}. The
function will be used by a second test in the next patch.
Signed-off-by: Andrei Matei <redacted>
---
trace_helpers.{c,h} seem more appropriate as a destination
quoted hunk ↗ jump to hunk
.../selftests/bpf/prog_tests/attach_probe.c | 21 ----------------
tools/testing/selftests/bpf/test_progs.c | 25 +++++++++++++++++++
tools/testing/selftests/bpf/test_progs.h | 1 +
3 files changed, 26 insertions(+), 21 deletions(-)
diff --git a/tools/testing/selftests/bpf/prog_tests/attach_probe.c b/tools/testing/selftests/bpf/prog_tests/attach_probe.c
index a0ee87c8e1ea..3bda8acbbafb 100644
--- a/tools/testing/selftests/bpf/prog_tests/attach_probe.c
+++ b/tools/testing/selftests/bpf/prog_tests/attach_probe.c
@@ -2,27 +2,6 @@
#include <test_progs.h>
#include "test_attach_probe.skel.h"
[...]