Hi -
Here are all of the commands (ran on the arm32 device):
Code: Select all
[email protected]:/# /usr/local/frc/JRE/bin/java -agentpath:/home/lvuser/.yjp/2022.9-b177/bin/linux-arm-32/libyjpagent.so=help
Error occurred during initialization of VM
Could not find agent library /home/lvuser/.yjp/2022.9-b177/bin/linux-arm-32/libyjpagent.so in absolute path, with error: /home/lvuser/.yjp/2022.9-b177/bin/linux-arm-32/libyjpagent.so: internal error
Code: Select all
[email protected]:/# uname -a
Linux roborio-4904-FRC 4.14.146-rt67 #1 SMP PREEMPT RT Thu Jul 1 17:06:10 UTC 2021 armv7l GNU/Linux
Code: Select all
[email protected]:/# /usr/local/frc/JRE/bin/java -version
openjdk version "11.0.9.11-frc" 2020-10-20
OpenJDK Runtime Environment (build 11.0.9.11-frc+0-2021-11.0.9u11-1)
OpenJDK Client VM (build 11.0.9.11-frc+0-2021-11.0.9u11-1, mixed mode)
Code: Select all
[email protected]:/# /usr/local/frc/JRE/bin/java -agentpath:/home/lvuser/.yjp/2022.9-b177/bin/linux-arm-32/libyjpagent.so -version
Error occurred during initialization of VM
Could not find agent library /home/lvuser/.yjp/2022.9-b177/bin/linux-arm-32/libyjpagent.so in absolute path, with error: /home/lvuser/.yjp/2022.9-b177/bin/linux-arm-32/libyjpagent.so: internal error
Code: Select all
[email protected]:/# ldd -r /home/lvuser/.yjp/2022.9-b177/bin/linux-arm-32/libyjpagent.so
ldd: warning: you do not have execution permission for `/home/lvuser/.yjp/2022.9-b177/bin/linux-arm-32/libyjpagent.so'
not a dynamic executable
Just to confirm, is the -agentpath command supposed to be run on the ARM host or not? We never actually got around to specifying -agentpath on start of the Java application we were trying to profile as simply running a test command firing up the JVM with the flag in general failed with the error message that's shown above. We couldn't find any folder with that structure on the RoboRIO (although it does look like the log folder structure for the client machine, but as I mentioned, we never actually got to properly running it).
Thanks in advance for your help!