]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
README.eu-stacktrace: note env LD_LIBRARY_PATH may be needed
authorSerhei Makarov <serhei@serhei.io>
Fri, 18 Oct 2024 21:06:22 +0000 (17:06 -0400)
committerSerhei Makarov <serhei@serhei.io>
Fri, 18 Oct 2024 21:06:22 +0000 (17:06 -0400)
README.eu-stacktrace

index c36d67b071e445c5e48befeccd88c580cd51b24a..230308f8ece3400f8dc359893f0d857a0dc41666 100644 (file)
@@ -47,9 +47,12 @@ Example build sequence:
 Invoke eu-stacktrace manually with a fifo:
 
     mkfifo /tmp/test.fifo
-    sudo /opt/elfutils/bin/eu-stacktrace </tmp/test.fifo >test.syscap &
+    sudo env LD_LIBRARY_PATH=/opt/elfutils/lib:$LD_LIBRARY_PATH /opt/elfutils/bin/eu-stacktrace </tmp/test.fifo >test.syscap &
     /opt/elfutils/bin/sysprof-cli --sample-method=stack --use-fifo=/tmp/test.fifo test.syscap
 
+(Note 'env LD_LIBRARY_PATH=...' is not needed if elfutils 0.192+ has
+been installed systemwide.)
+
 Then invoke sysprof with eu-stacktrace:
 
     sudo /opt/elfutils/bin/sysprof-cli --use-stacktrace --stacktrace-path=/opt/elfutils/bin/eu-stacktrace