106f6ba60Sopenharmony_cismall tools to parse smaps information 206f6ba60Sopenharmony_ci 306f6ba60Sopenharmony_ci## build 406f6ba60Sopenharmony_ci 506f6ba60Sopenharmony_ci### native build: 606f6ba60Sopenharmony_ci 706f6ba60Sopenharmony_ci```shell 806f6ba60Sopenharmony_ci# build with debug: 906f6ba60Sopenharmony_cicargo build 1006f6ba60Sopenharmony_ci# or release: 1106f6ba60Sopenharmony_cicargo build --release 1206f6ba60Sopenharmony_ci``` 1306f6ba60Sopenharmony_ci 1406f6ba60Sopenharmony_ci#### static-linking Cross-Build for arm32: 1506f6ba60Sopenharmony_ci 1606f6ba60Sopenharmony_ci```shell 1706f6ba60Sopenharmony_ci#add toolchains: 1806f6ba60Sopenharmony_cirustup target add armv7-unknown-linux-musleabihf 1906f6ba60Sopenharmony_cirustup target add arm-unknown-linux-musleabihf 2006f6ba60Sopenharmony_ci``` 2106f6ba60Sopenharmony_ci 2206f6ba60Sopenharmony_ci```shell 2306f6ba60Sopenharmony_ci#add right linker to ~/.cargo/config: 2406f6ba60Sopenharmony_ci[target.armv7-unknown-linux-musleabihf] 2506f6ba60Sopenharmony_cilinker = "arm-linux-gnueabihf-ld" 2606f6ba60Sopenharmony_ci 2706f6ba60Sopenharmony_ci[target.arm-unknown-linux-musleabihf] 2806f6ba60Sopenharmony_cilinker = "arm-linux-gnueabihf-ld" 2906f6ba60Sopenharmony_ci``` 3006f6ba60Sopenharmony_ci 3106f6ba60Sopenharmony_cibuild: 3206f6ba60Sopenharmony_ci 3306f6ba60Sopenharmony_ci```shell 3406f6ba60Sopenharmony_cicargo build --target=armv7-unknown-linux-musleabihf 3506f6ba60Sopenharmony_ci#add --release for release 3606f6ba60Sopenharmony_ci``` 3706f6ba60Sopenharmony_ci 3806f6ba60Sopenharmony_ci## run 3906f6ba60Sopenharmony_ci 4006f6ba60Sopenharmony_ci smaps-show -p PID [-v] 4106f6ba60Sopenharmony_ci 4206f6ba60Sopenharmony_cior 4306f6ba60Sopenharmony_ci```shell 4406f6ba60Sopenharmony_cismaps-show -f FILE_PATH [-v] 4506f6ba60Sopenharmony_ci``` 4606f6ba60Sopenharmony_ci 47