https://sourceware.org/ftp/valgrind/
./configure CC=mips-linux-uclibc-gnu-gcc CXX=mips-linux-uclibc-gnu-g++ AR=mips-linux-uclibc-gnu-ar --host=mips-linux-uclibc-gnu --prefix=/opt/output
把交叉编译好的程序放到/mnt/sd_card/中
export VALGRIND_LIB=/mnt/sd_card/output/libexec/valgrind
/mnt/sd_card/output/libexec/valgrind/valgrind --tool=memcheck --trace-children=yes --log-file=/mnt/sd_card/test.log
报段错误,看来mips芯片上运行valgrind有问题。