Valgrind: executable is not for this architecture

357 Views Asked by At

I am trying to find memory overhead of my cpp executables generated for x86 and RISC architecture using Valgrind. I have done valgrind successfully for x86 executable, But When I try for RISC architecture on Linux machine it shows the error as shown in the figure. The same issue occurred with gprof as well But I sloved it using qemu user mode. And even tried to execute the executable using qemu first and then tried to do valgrind as shown in figure but not working. What I can do to solve this or what I am doing wrong?

1

There are 1 best solutions below

0
Paul Floyd On BEST ANSWER

Valgrind has no support for RISC V, and I'm not aware of anyone in the Valgrind community working on it. The currently supported architectures are x86/amd64, mips, nanomips, arm, POWER, s390, with mips and arm having 32 and 64bit versions.

For the moment you will need to find and use other tools.