diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-03-27 18:57:58 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-03-27 18:57:58 -0700 |
| commit | 8e324a5c9849e4a8225e38facdcc1a60faa4227a (patch) | |
| tree | caef0ea05db3c80a758b6d6ca797a3a1ebb9ce85 /tools/testing/selftests/ftrace/test.d/dynevent | |
| parent | 68f090f09b7241a2f019191c5c737741f13a5c17 (diff) | |
| parent | 82ef781f24ac26f4aa71f02d7624c439ab8389a7 (diff) | |
| download | lwn-8e324a5c9849e4a8225e38facdcc1a60faa4227a.tar.gz lwn-8e324a5c9849e4a8225e38facdcc1a60faa4227a.zip | |
Merge tag 'linux_kselftest-next-6.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull Kselftest updates from Shuah Khan:
- Fix bugs and clean up code in tracing, ftrace, and user_events tests
- Add missing executables to ftrace gitignore
* tag 'linux_kselftest-next-6.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
selftests/ftrace: add 'poll' binary to gitignore
selftests/ftrace: Use readelf to find entry point in uprobe test
selftests/user_events: Fix failures caused by test code
selftests/tracing: Allow some more tests to run in instances
selftests/ftrace: Clean up triggers after setting them
selftests/tracing: Test only toplevel README file not the instances
Diffstat (limited to 'tools/testing/selftests/ftrace/test.d/dynevent')
| -rw-r--r-- | tools/testing/selftests/ftrace/test.d/dynevent/add_remove_uprobe.tc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_uprobe.tc b/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_uprobe.tc index 86c76679c56e..f2048c244526 100644 --- a/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_uprobe.tc +++ b/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_uprobe.tc @@ -3,14 +3,18 @@ # description: Generic dynamic event - add/remove/test uprobe events # requires: uprobe_events +if ! which readelf > /dev/null 2>&1 ; then + echo "No readelf found. skipped." + exit_unresolved +fi + echo 0 > events/enable echo > dynamic_events REALBIN=`readlink -f /bin/sh` +ENTRYPOINT=`readelf -h ${REALBIN} | grep Entry | sed -e 's/[^0]*//'` -echo 'cat /proc/$$/maps' | /bin/sh | \ - grep "r-xp .*${REALBIN}$" | \ - awk '{printf "p:myevent %s:0x%s\n", $6,$3 }' >> uprobe_events +echo "p:myevent ${REALBIN}:${ENTRYPOINT}" >> uprobe_events grep -q myevent uprobe_events test -d events/uprobes/myevent |
