developtools_profiler/tools/smaps_show
stesen c665b92e61
add perm for smaps show -v
Signed-off-by: stesen <stesen.ma@huawei.com>
2022-11-28 09:08:45 +00:00
..
src add perm for smaps show -v 2022-11-28 09:08:45 +00:00
.gitignore add smaps tool 2022-05-09 14:47:16 +08:00
Cargo.toml add smaps tool 2022-05-09 14:47:16 +08:00
README.md add smaps tool 2022-05-09 14:47:16 +08:00

small tools to parse smaps information

build

native build:

# build with debug:
cargo build
# or release:
cargo build --release

static-linking Cross-Build for arm32:

#add toolchains:
rustup target add armv7-unknown-linux-musleabihf
rustup target add arm-unknown-linux-musleabihf
#add right linker to ~/.cargo/config:
[target.armv7-unknown-linux-musleabihf]
linker = "arm-linux-gnueabihf-ld"

[target.arm-unknown-linux-musleabihf]
linker = "arm-linux-gnueabihf-ld"

build:

cargo build --target=armv7-unknown-linux-musleabihf
#add --release for release

run

smaps-show -p PID [-v]

or

smaps-show -f FILE_PATH [-v]